Skip to content

Commit 031d065

Browse files
committed
Just release 2.0 already
Who cares that the patch notes are too long
1 parent 20df141 commit 031d065

File tree

14 files changed

+52
-291
lines changed

14 files changed

+52
-291
lines changed

CREDITS.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ https://developer.android.com/topic/libraries/support-library/
1414
### Material About Library
1515
https://github.com/daniel-stoneuk/material-about-library
1616

17+
### AboutLibraries
18+
https://github.com/mikepenz/AboutLibraries
19+
1720
### OpenCSV
1821
http://opencsv.sourceforge.net
1922

LICENSE.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License
1+
MIT License
22

3-
Copyright (c) 2016-2017 Luke Myers (FRC Team 980 ThunderBots)
3+
Copyright (c) 2016 - 2018 Luke Myers (FRC Team 980 ThunderBots)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.MD

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
# ThunderScout: Scout with power [![Build Status](https://travis-ci.org/Team980/ThunderScout-Android.svg?branch=master)](https://travis-ci.org/Team980/ThunderScout-Android)
1+
# ThunderScout [![Build Status](https://travis-ci.org/Team980/ThunderScout-Android.svg?branch=master)](https://travis-ci.org/Team980/ThunderScout-Android)
22

3-
ThunderScout is an app for FIRST Robotics Competition teams to facilitate the scouting process at competition events. Created by FRC Team 980 Thunderbots, ThunderScout is made to help you get your job done, simpler and faster.
3+
ThunderScout is designed by FRC Team 980 ThunderBots to help you scout matches quickly and powerfully.
4+
With an intuitively designed scouting flow, robust configuration framework, and intelligent data presentation, ThunderScout can adapt to fit any team's needs.
45

5-
## Designed from the beginning for the user experience
6-
From the scouting process to post-match analysis, ThunderScout has been designed with the end user experience as a top priority.
7-
The development process has integrated user testing and feedback into the design process to guarantee that the interface is simple and easy to understand, and the app's quantatative, objective, and detailed dataset gives you all the information you need to make your decisions.
8-
9-
## Adjustable to fit any scouting team
10-
ThunderScout is robust, modular, and makes no assumptions. It can be configured to suit a wide array of hardware configurations, and data transfer can be scheduled automatically or be triggered at will. With this many different options for configuration, you'll definitely be able to build a scouting system that's a perfect fit for your team.
11-
12-
## Integrates with third party services
13-
ThunderScout has been built from the ground up to seamlessly integrate with third-party services. You can instantly export your data to a CSV file that you can send to your computer and view in whatever program you like, whether it's a spreadsheet viewer, cutting-edge data visualization software, or a custom application built by your team. Integration with multiple online services is also included - with Google Sheets synchronization in development and other integrations soon to follow, ThunderScout will give you all the tools you need to get your data where it needs to go.
14-
15-
## Built with the community in mind
16-
Since the very beginning ThunderScout has been developed with the community at the forefront. An open beta on Chief Delphi, the leading FRC community forum, enabled interested participants to engage with the app early in its development, and feedback was swiftly turned into feature additions and improvements for the following releases. The source code has been publicly available on GitHub since its inception, and contributions to further the capabilities of the app are always welcome. ThunderScout was installed on over a hundred devices during the beta period alone- so why not yours?
17-
18-
## Get the app
19-
ThunderScout is now available to download on [GitHub](https://github.com/Team980/ThunderScout-Android/releases), [Google Play](https://play.google.com/store/apps/details?id=com.team980.thunderscout), and the [Amazon Appstore](https://www.amazon.com/gp/mas/dl/android?p=com.team980.thunderscout).
6+
ThunderScout is available to download on [GitHub](https://github.com/Team980/ThunderScout-Android/releases), [Google Play](https://play.google.com/store/apps/details?id=com.team980.thunderscout), and the [Amazon Appstore](https://www.amazon.com/gp/mas/dl/android?p=com.team980.thunderscout).

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ android {
4040
minSdkVersion 16
4141
targetSdkVersion 27
4242
multiDexEnabled true
43-
versionCode 15 //Next public release: 15
44-
versionName "2.0-pre" //2018 will be when I make the semantic change
43+
versionCode 15 //Next public release: 16
44+
versionName "2.0" //The 2018 dataset will be when I make the semantic change
4545
resConfigs "en"
4646
}
4747

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ public void onCreate() { //This isn't why loading is slow
127127

128128
if (BuildConfig.DEBUG) {
129129
//Disable Firebase Analytics on debug builds
130+
FirebaseAnalytics.getInstance(this).setAnalyticsCollectionEnabled(false);
130131

131132
//Init, but disable, Crashlytics on debug builds
132133
Crashlytics crashlyticsKit = new Crashlytics.Builder()
133134
.core(new CrashlyticsCore.Builder()
134-
.disabled(BuildConfig.DEBUG).build())
135+
.disabled(true).build())
135136
.build();
136137
Fabric.with(this, crashlyticsKit);
137138
} else {
@@ -162,7 +163,7 @@ public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, Strin
162163
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
163164
TileService.requestListeningState(this, new ComponentName(this, BluetoothQuickTileService.class));
164165
}
165-
} else if (key.equals(getResources().getString(R.string.pref_enable_analytics))) {
166+
} else if (key.equals(getResources().getString(R.string.pref_enable_analytics)) && !BuildConfig.DEBUG) {
166167
FirebaseAnalytics.getInstance(this).setAnalyticsCollectionEnabled(sharedPreferences.getBoolean(getResources().getString(R.string.pref_enable_analytics), true));
167168
}
168169
}

app/src/main/java/com/team980/thunderscout/analytics/matches/MatchesFragment.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
package com.team980.thunderscout.analytics.matches;
2626

27-
import android.bluetooth.BluetoothAdapter;
2827
import android.content.BroadcastReceiver;
2928
import android.content.Context;
3029
import android.content.DialogInterface;
@@ -219,16 +218,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
219218
}
220219

221220
if (id == R.id.action_bluetooth_transfer) {
222-
if (!BluetoothAdapter.getDefaultAdapter().isEnabled()) {
223-
new AlertDialog.Builder(getContext())
224-
.setTitle("Bluetooth is disabled")
225-
.setIcon(R.drawable.ic_warning_white_24dp)
226-
.setMessage("Please enable Bluetooth and try again")
227-
.setPositiveButton("OK", null)
228-
.create()
229-
.show();
230-
}
231-
232221
BluetoothDeviceManager bdm = new BluetoothDeviceManager(getContext());
233222
bdm.pickDevice(device -> {
234223
if (device == null) {

app/src/main/java/com/team980/thunderscout/analytics/rankings/RankingsFragment.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
package com.team980.thunderscout.analytics.rankings;
2626

27-
import android.bluetooth.BluetoothAdapter;
2827
import android.content.BroadcastReceiver;
2928
import android.content.Context;
3029
import android.content.DialogInterface;
@@ -301,16 +300,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
301300
}
302301

303302
if (id == R.id.action_bluetooth_transfer) {
304-
if (!BluetoothAdapter.getDefaultAdapter().isEnabled()) {
305-
new AlertDialog.Builder(getContext())
306-
.setTitle("Bluetooth is disabled")
307-
.setIcon(R.drawable.ic_warning_white_24dp)
308-
.setMessage("Please enable Bluetooth and try again")
309-
.setPositiveButton("OK", null)
310-
.create()
311-
.show();
312-
}
313-
314303
BluetoothDeviceManager bdm = new BluetoothDeviceManager(getContext());
315304
bdm.pickDevice(device -> {
316305
if (device == null) {

app/src/main/java/com/team980/thunderscout/home/HomeFragment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ public void refreshFixedCards() {
251251
intent.putExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName());
252252
startActivity(intent);
253253
adapter.dismissCard(card);
254+
sharedPrefs.edit().putBoolean(getResources().getString(R.string.pref_shown_telemetry_card), true).apply();
254255
}));
255256
telemetryCard.addAction(new CardAction("Dismiss", (card, action) -> {
256257
int index = adapter.indexOf(card);

app/src/main/java/com/team980/thunderscout/preferences/SettingsActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import android.support.v7.preference.PreferenceManager;
4040
import android.view.MenuItem;
4141

42+
import com.team980.thunderscout.BuildConfig;
4243
import com.team980.thunderscout.R;
4344

4445
public class SettingsActivity extends AppCompatActivity {
@@ -205,6 +206,12 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
205206
activity.getSupportActionBar().setTitle("General settings");
206207

207208
bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_device_name)));
209+
210+
if (BuildConfig.DEBUG) { //Disable analytics on debug builds
211+
findPreference(getResources().getString(R.string.pref_enable_analytics)).setEnabled(false);
212+
findPreference(getResources().getString(R.string.pref_enable_crashlytics)).setEnabled(false);
213+
//findPreference(getResources().getString(R.string.pref_enable_performance_monitoring)).setEnabled(false);
214+
}
208215
}
209216
}
210217

app/src/main/java/com/team980/thunderscout/preferences/SettingsActivityLegacy.java

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

0 commit comments

Comments
 (0)