Skip to content

Commit

Permalink
[antifeature] continue cleaning after blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thermatk committed Feb 27, 2018
1 parent e85f192 commit 1cb65b8
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 228 deletions.
17 changes: 0 additions & 17 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_notification"/>

<application
android:name=".App"
android:allowBackup="false"
Expand Down Expand Up @@ -305,19 +300,7 @@
<service android:name=".provider.tasks.notification.ReadNotificationService"/>
<service android:name=".provider.tasks.git.GithubActionService"/>
<service android:name=".provider.tasks.git.ReactionService"/>
<service android:name=".provider.tasks.slack.SlackInvitationService"/>
<service android:name=".provider.tasks.version.CheckVersionService"/>
<service
android:name=".provider.fcm.PushNotificationService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>

<meta-data
android:name="io.fabric.ApiKey"
android:value="6ed82b6e0756853d7d782a3f547f84f9ecba217e"/>
</application>

</manifest>
8 changes: 0 additions & 8 deletions app/src/main/java/com/fastaccess/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
import com.fastaccess.helper.TypeFaceHelper;
import com.fastaccess.provider.colors.ColorsProvider;
import com.fastaccess.provider.emoji.EmojiManager;
import com.fastaccess.provider.fabric.FabricProvider;
import com.fastaccess.provider.tasks.notification.NotificationSchedulerJobTask;
import com.google.firebase.messaging.FirebaseMessaging;
import com.miguelbcr.io.rx_billing_service.RxBillingService;

import io.requery.Persistable;
import io.requery.android.sqlite.DatabaseSource;
Expand Down Expand Up @@ -44,8 +41,6 @@ public class App extends Application {
}

private void init() {
FabricProvider.INSTANCE.initFabric(this);
RxBillingService.register(this);
deleteDatabase("database.db");
getDataStore();
setupPreference();
Expand All @@ -55,9 +50,6 @@ private void init() {
EmojiManager.load();
ColorsProvider.load();
DeviceNameGetter.getInstance().loadDevice();
try {
FirebaseMessaging.getInstance().subscribeToTopic("FastHub");
} catch (Exception ignored) {}
}

private void setupPreference() {
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/java/com/fastaccess/helper/AppHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import com.fastaccess.App;
import com.fastaccess.BuildConfig;
import com.fastaccess.R;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;

import java.util.Locale;

Expand Down Expand Up @@ -177,8 +175,7 @@ public static boolean isGoogleAvailable(@NonNull Context context) {
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
return applicationInfo != null && applicationInfo.enabled &&
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == ConnectionResult.SUCCESS;
return true;
}

public static boolean isDeviceAnimationEnabled(@NonNull Context context) {
Expand Down
42 changes: 0 additions & 42 deletions app/src/main/java/com/fastaccess/provider/fabric/FabricProvider.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ import com.airbnb.lottie.LottieAnimationView
import com.fastaccess.BuildConfig
import com.fastaccess.R
import com.fastaccess.helper.*
import com.fastaccess.provider.fabric.FabricProvider
import com.fastaccess.ui.base.BaseActivity
import com.fastaccess.ui.modules.main.donation.DonateActivity
import com.miguelbcr.io.rx_billing_service.RxBillingService
import com.miguelbcr.io.rx_billing_service.entities.ProductType
import io.reactivex.Observable
import io.reactivex.disposables.Disposable

Expand Down Expand Up @@ -137,7 +134,6 @@ class PremiumActivity : BaseActivity<PremiumMvp.View, PremiumPresenter>(), Premi
ViewHelper.hideKeyboard(editText)
hideProgress()
successActivationHolder.visibility = View.VISIBLE
FabricProvider.logPurchase(InputHelper.toString(editText))
successActivationView.addAnimatorListener(object : Animator.AnimatorListener {
override fun onAnimationRepeat(p0: Animator?) {}
override fun onAnimationEnd(p0: Animator?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ class ThemeFragment : BaseFragment<ThemeFragmentMvp.View, ThemeFragmentPresenter
if (AppHelper.isGoogleAvailable(context!!)) {
return true
}
showErrorMessage(getString(R.string.common_google_play_services_unsupported_text))
return false
}

Expand Down

0 comments on commit 1cb65b8

Please sign in to comment.