Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Fix code shrinker issues
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Feb 6, 2022
1 parent 74a0998 commit 66159cc
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# adsb-companion
An Android app showing stats ADS-B stats.
# ADS-B Companion

![Build](https://github.com/d4rken/adsbc-companion/actions/workflows/android.yml/badge.svg)
[![Github All Releases](https://img.shields.io/github/downloads/d4rken/companion/total.svg)](https://github.com/d4rken/companion/releases/latest)

An Android app that acts as companion to feeders. It's not about showing information about planes, but about feeders!

Currently only supports data via https://www.adsbexchange.com/

Features:

* Show currently tracked aircraft count per feeder
* Show tracked aircrafts and which feeder can see them

More features to come :).

## Setup

* Setup your feeder
* Install the [ADS-B exchange stats package](https://github.com/adsbxchange/adsbexchange-stats)
* Enter the [short ID you got from the stats package](https://github.com/adsbxchange/adsbexchange-stats) into the app
3 changes: 2 additions & 1 deletion app/proguard/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
-dontobfuscate
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.annotation.Keep
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize

@Parcelize
@Keep
@Parcelize
@JsonClass(generateAdapter = true)
data class AircraftId(val id: String) : Parcelable
2 changes: 1 addition & 1 deletion app/src/main/java/eu/darken/adsbc/feeder/core/ADSBxId.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import androidx.annotation.Keep
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize

@Parcelize
@Keep
@Parcelize
@JsonClass(generateAdapter = true)
data class ADSBxId(val value: String) : Parcelable {

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/eu/darken/adsbc/feeder/core/FeederId.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package eu.darken.adsbc.feeder.core

import android.os.Parcelable
import androidx.annotation.Keep
import kotlinx.parcelize.Parcelize
import java.util.*

@Keep
@Parcelize
data class FeederId(
val value: String = UUID.randomUUID().toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package eu.darken.adsbc.main.ui.settings
import android.os.Bundle
import android.os.Parcelable
import android.view.View
import androidx.annotation.Keep
import androidx.appcompat.widget.Toolbar
import androidx.fragment.app.viewModels
import androidx.preference.Preference
Expand All @@ -26,6 +27,7 @@ class SettingsFragment : Fragment2(R.layout.settings_fragment),

private val screens = ArrayList<Screen>()

@Keep
@Parcelize
data class Screen(
val fragmentClass: String,
Expand Down

0 comments on commit 66159cc

Please sign in to comment.