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 Jun 20, 2018
1 parent 66718cc commit b1d88ea
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 234 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,18 +6,13 @@

<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"/>
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
tools:node="remove"/>

<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 @@ -308,19 +303,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
2 changes: 0 additions & 2 deletions app/src/main/java/com/fastaccess/ui/widgets/FontEditText.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import android.util.AttributeSet;
import android.view.inputmethod.EditorInfo;

import com.crashlytics.android.Crashlytics;
import com.fastaccess.helper.TypeFaceHelper;

/**
Expand Down Expand Up @@ -43,7 +42,6 @@ private void init() {
super.setText(text, type);
} catch (Exception e) {
setText("I tried, but your OEM just sucks because they modify the framework components and therefore causing the app to crash!" + ".\nFastHub");
Crashlytics.logException(e);
}
}
}
2 changes: 0 additions & 2 deletions app/src/main/java/com/fastaccess/ui/widgets/FontTextView.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import android.util.AttributeSet;
import android.view.Gravity;

import com.crashlytics.android.Crashlytics;
import com.evernote.android.state.State;
import com.evernote.android.state.StateSaver;
import com.fastaccess.R;
Expand Down Expand Up @@ -65,7 +64,6 @@ public FontTextView(@NonNull Context context, AttributeSet attrs, int defStyleAt
} catch (Exception e) {
setText("I tried, but your OEM just sucks because they modify the framework components and therefore causing the app to crash!" + "" +
".\nFastHub");
Crashlytics.logException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import android.view.View
import android.widget.ArrayAdapter
import android.widget.ListView
import android.widget.TextView
import com.crashlytics.android.Crashlytics
import com.fastaccess.ui.widgets.FontEditText
import java.util.*

Expand Down Expand Up @@ -64,7 +63,6 @@ class MarkdownEditText : FontEditText {
} catch (e: Exception) {
setText("I tried, but your OEM just sucks because they modify the framework components and therefore causing the app to crash!" + "" +
".\nFastHub")
Crashlytics.logException(e)
}

}
Expand Down

0 comments on commit b1d88ea

Please sign in to comment.