Skip to content

Commit f14f337

Browse files
committed
Remove firebase
1 parent 32f3e13 commit f14f337

File tree

5 files changed

+9
-27
lines changed

5 files changed

+9
-27
lines changed

app/build.gradle

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ android {
66
applicationId "com.tomatodev.timerdroid"
77
minSdkVersion 18
88
targetSdkVersion 26
9-
versionCode 1412311
10-
versionName "3.1.1"
9+
versionCode 1412312
10+
versionName "3.1.2"
1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1212
vectorDrawables.useSupportLibrary = true
1313
}
@@ -31,13 +31,7 @@ dependencies {
3131
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
3232
implementation 'com.android.support:support-v4:26.1.0'
3333
implementation 'com.android.support:support-vector-drawable:26.1.0'
34-
implementation 'com.google.firebase:firebase-invites:11.8.0'
35-
implementation 'com.google.firebase:firebase-core:11.8.0'
3634
testImplementation 'junit:junit:4.12'
3735
androidTestImplementation 'com.android.support.test:runner:1.0.1'
3836
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
3937
}
40-
41-
42-
43-
apply plugin: 'com.google.gms.google-services'

app/src/main/java/com/tomatodev/timerdroid/activities/HomeActivity.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import android.view.Menu;
1616
import android.view.MenuItem;
1717

18-
import com.google.android.gms.appinvite.AppInviteInvitation;
19-
import com.google.firebase.analytics.FirebaseAnalytics;
2018
import com.tomatodev.timerdroid.R;
2119
import com.tomatodev.timerdroid.fragments.AboutDialogFragment;
2220
import com.tomatodev.timerdroid.fragments.CategoriesFragment;
@@ -40,8 +38,6 @@ public class HomeActivity extends AppCompatActivity {
4038
*/
4139
private ViewPager mViewPager;
4240

43-
private FirebaseAnalytics mFirebaseAnalytics;
44-
4541
@Override
4642
protected void onCreate(Bundle savedInstanceState) {
4743
super.onCreate(savedInstanceState);
@@ -77,8 +73,6 @@ protected void onCreate(Bundle savedInstanceState) {
7773
break;
7874
}
7975
});
80-
81-
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
8276
}
8377

8478
@Override
@@ -120,10 +114,11 @@ public boolean onOptionsItemSelected(MenuItem item) {
120114
}
121115

122116
private void onInviteClicked() {
123-
Intent intent = new AppInviteInvitation.IntentBuilder(getString(R.string.menu_share))
124-
.setMessage(getString(R.string.menu_share_subject))
125-
.build();
126-
startActivityForResult(intent, 100);
117+
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
118+
shareIntent.setType("text/plain");
119+
shareIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.menu_share_subject));
120+
shareIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.menu_share_url));
121+
startActivity(Intent.createChooser(shareIntent, getResources().getString(R.string.feedback_chooser_title)));
127122
}
128123

129124
/**

app/src/main/java/com/tomatodev/timerdroid/service/TimerService.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
import android.content.Intent;
66
import android.content.SharedPreferences;
77
import android.os.Binder;
8-
import android.os.Bundle;
98
import android.os.IBinder;
109
import android.os.PowerManager;
1110
import android.preference.PreferenceManager;
1211

13-
import com.google.firebase.analytics.FirebaseAnalytics;
1412
import com.tomatodev.timerdroid.R;
1513

1614
import java.util.ArrayList;
@@ -28,8 +26,6 @@ public class TimerService extends Service {
2826
private CustomNotificationManager mNotificationManager;
2927
private PowerManager.WakeLock wl;
3028

31-
private FirebaseAnalytics mFirebaseAnalytics;
32-
3329
public class LocalBinder extends Binder {
3430
public TimerService getService() {
3531
return TimerService.this;
@@ -41,7 +37,6 @@ public TimerService getService() {
4137
@Override
4238
public IBinder onBind(Intent intent) {
4339
this.mNotificationManager = new CustomNotificationManager(this);
44-
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
4540
return binder;
4641
}
4742

@@ -96,8 +91,6 @@ public Integer startTimer(String name, long timeLeft, List<TimerDescription> que
9691
startForeground(CustomNotificationManager.NOTIFICATION_ID_RUNNING, mNotificationManager.getNotificationForService(timers.values()));
9792
}
9893

99-
mFirebaseAnalytics.logEvent("timer_started", new Bundle());
100-
10194
return lastId - 1;
10295
}
10396

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<string name="about_author_label">Author</string>
2121
<string name="about_author" translatable="false">Martin Hoffmann</string>
2222
<string name="about_version_label">Version</string>
23-
<string name="about_version" translatable="false">3.1.1</string>
23+
<string name="about_version" translatable="false">3.1.2</string>
2424
<string name="about_link"><a href="https://github.com/hoffimar/timerdroid">Website</a></string>
2525
<string name="menu_about_button_text">OK</string>
2626

@@ -99,5 +99,6 @@
9999
<string name="no_timers_in_this_category">No timers in this category</string>
100100

101101
<string name="popup_timer_stop">Stop</string>
102+
<string name="menu_share_url" translatable="false">https://play.google.com/store/apps/details?id=com.tomatodev.timerdroid</string>
102103

103104
</resources>

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ buildscript {
1515

1616
// NOTE: Do not place your application dependencies here; they belong
1717
// in the individual module build.gradle files
18-
classpath 'com.google.gms:google-services:3.1.0'
1918
}
2019
}
2120

0 commit comments

Comments
 (0)