Skip to content

Commit 4b9b30d

Browse files
committed
2019.1 Release
- fix themes on older devices - remove analytics plugins completely
1 parent 1dd26f6 commit 4b9b30d

File tree

19 files changed

+29
-310
lines changed

19 files changed

+29
-310
lines changed

app/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ android {
3939
minSdkVersion 16
4040
targetSdkVersion 28
4141
multiDexEnabled true
42-
versionCode 18 //Next public release: 19
43-
versionName "2019.1-rc"
42+
versionCode 19 //Next public release: 20
43+
versionName "2019.1"
4444
resConfigs "en"
4545
}
4646

@@ -55,8 +55,6 @@ android {
5555
debug {
5656
versionNameSuffix '-' + getDate() //Append build timestamp to version for debug builds
5757

58-
ext.enableCrashlytics = false //Disable Crashlytics mapping on debug builds
59-
6058
//ONLY FOR TESTING - SLOWS DOWN BUILD TIME
6159
//minifyEnabled true
6260
//useProguard true
@@ -119,6 +117,4 @@ static def getDate() {
119117
def df = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss")
120118
df.setTimeZone(TimeZone.getTimeZone("UTC"))
121119
return df.format(new Date())
122-
}
123-
124-
apply plugin: 'com.google.gms.google-services'
120+
}

app/src/main/java/com/team980/thunderscout/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ private void updateAccountHeader() {
203203

204204
ImageView image = navigationView.getHeaderView(0).findViewById(R.id.account_image);
205205

206-
image.setImageDrawable(AppCompatResources.getDrawable(this, R.drawable.ic_account_circle_72dp)); //TODO better image
206+
image.setImageDrawable(AppCompatResources.getDrawable(this, R.drawable.ic_app_badge_48dp));
207207

208208
((TextView) navigationView.getHeaderView(0).findViewById(R.id.account_name)).setText(sharedPrefs
209209
.getString(getResources().getString(R.string.pref_device_name), Build.MANUFACTURER + " " + Build.MODEL));
210-
((TextView) navigationView.getHeaderView(0).findViewById(R.id.account_id)).setText("Local storage");
210+
((TextView) navigationView.getHeaderView(0).findViewById(R.id.account_id)).setText(BuildConfig.VERSION_NAME);
211211
}
212212

213213
public interface BackPressListener {

app/src/main/java/com/team980/thunderscout/analytics/TeamComparator.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public int compare(TeamWrapper o1, TeamWrapper o2) {
6262
}
6363
},
6464

65-
SORT_STORM_ROCKET_HATCH_AVERAGE("Avg. storm Rocket hatches") {
65+
SORT_STORM_ROCKET_HATCH_AVERAGE("Avg. Storm Rocket hatches") {
6666
public int compare(TeamWrapper o1, TeamWrapper o2) {
6767
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getStormHighRocketHatchCount)
6868
+ ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getStormMidRocketHatchCount)
@@ -73,14 +73,14 @@ public int compare(TeamWrapper o1, TeamWrapper o2) {
7373
}
7474
},
7575

76-
SORT_STORM_CARGO_SHIP_HATCH_AVERAGE("Avg. storm Cargo Ship hatches") {
76+
SORT_STORM_CARGO_SHIP_HATCH_AVERAGE("Avg. Storm Cargo Ship hatches") {
7777
public int compare(TeamWrapper o1, TeamWrapper o2) {
7878
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getStormCargoShipHatchCount),
7979
ScoutDataStatistics.getAverage(o2.getDataList(), ScoutData::getStormCargoShipHatchCount));
8080
}
8181
},
8282

83-
SORT_STORM_ROCKET_CARGO_AVERAGE("Avg. storm Rocket cargo") {
83+
SORT_STORM_ROCKET_CARGO_AVERAGE("Avg. Storm Rocket cargo") {
8484
public int compare(TeamWrapper o1, TeamWrapper o2) {
8585
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getStormHighRocketCargoCount)
8686
+ ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getStormMidRocketCargoCount)
@@ -91,14 +91,14 @@ public int compare(TeamWrapper o1, TeamWrapper o2) {
9191
}
9292
},
9393

94-
SORT_STORM_CARGO_SHIP_CARGO_AVERAGE("Avg. storm Cargo Ship cargo") {
94+
SORT_STORM_CARGO_SHIP_CARGO_AVERAGE("Avg. Storm Cargo Ship cargo") {
9595
public int compare(TeamWrapper o1, TeamWrapper o2) {
9696
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getStormCargoShipCargoCount),
9797
ScoutDataStatistics.getAverage(o2.getDataList(), ScoutData::getStormCargoShipCargoCount));
9898
}
9999
},
100100

101-
SORT_TELEOP_ROCKET_HATCH_AVERAGE("Avg. teleop Rocket hatches") {
101+
SORT_TELEOP_ROCKET_HATCH_AVERAGE("Avg. Teleop Rocket hatches") {
102102
public int compare(TeamWrapper o1, TeamWrapper o2) {
103103
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getTeleopHighRocketHatchCount)
104104
+ ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getTeleopMidRocketHatchCount)
@@ -109,14 +109,14 @@ public int compare(TeamWrapper o1, TeamWrapper o2) {
109109
}
110110
},
111111

112-
SORT_TELEOP_CARGO_SHIP_HATCH_AVERAGE("Avg. teleop Cargo Ship hatches") {
112+
SORT_TELEOP_CARGO_SHIP_HATCH_AVERAGE("Avg. Teleop Cargo Ship hatches") {
113113
public int compare(TeamWrapper o1, TeamWrapper o2) {
114114
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getTeleopCargoShipHatchCount),
115115
ScoutDataStatistics.getAverage(o2.getDataList(), ScoutData::getTeleopCargoShipHatchCount));
116116
}
117117
},
118118

119-
SORT_TELEOP_ROCKET_CARGO_AVERAGE("Avg. teleop Rocket cargo") {
119+
SORT_TELEOP_ROCKET_CARGO_AVERAGE("Avg. Teleop Rocket cargo") {
120120
public int compare(TeamWrapper o1, TeamWrapper o2) {
121121
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getTeleopHighRocketCargoCount)
122122
+ ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getTeleopMidRocketCargoCount)
@@ -127,7 +127,7 @@ public int compare(TeamWrapper o1, TeamWrapper o2) {
127127
}
128128
},
129129

130-
SORT_TELEOP_CARGO_SHIP_CARGO_AVERAGE("Avg. teleop Cargo Ship cargo") {
130+
SORT_TELEOP_CARGO_SHIP_CARGO_AVERAGE("Avg. Teleop Cargo Ship cargo") {
131131
public int compare(TeamWrapper o1, TeamWrapper o2) {
132132
return Double.compare(ScoutDataStatistics.getAverage(o1.getDataList(), ScoutData::getTeleopCargoShipCargoCount),
133133
ScoutDataStatistics.getAverage(o2.getDataList(), ScoutData::getTeleopCargoShipCargoCount));

app/src/main/res/font/allerta.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/src/main/res/font/allerta_stencil.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/src/main/res/font/libre_franklin_semibold.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/src/main/res/font/montserrat.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/src/main/res/font/oswald.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/src/main/res/font/roboto.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/src/main/res/font/roboto_mono.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)