Browse Source

Minify disabled for release to avoid potential conflict with androidx api

master
Preyea Regmi 5 years ago
parent
commit
da6c5b88cb
  1. BIN
      .idea/caches/build_file_checksums.ser
  2. 1
      SpinnerDatePickerLib-release/build/.transforms/b832b1d6a10956957f61b0af735e700a.bin
  3. BIN
      SpinnerDatePickerLib-release/build/.transforms/b832b1d6a10956957f61b0af735e700a/classes/classes.dex
  4. 4
      app/build.gradle
  5. 31
      app/src/main/java/com/gmeremit/online/gmeremittance_native/GmeApplication.java
  6. 13
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java

BIN
.idea/caches/build_file_checksums.ser

1
SpinnerDatePickerLib-release/build/.transforms/b832b1d6a10956957f61b0af735e700a.bin

@ -0,0 +1 @@
o/classes

BIN
SpinnerDatePickerLib-release/build/.transforms/b832b1d6a10956957f61b0af735e700a/classes/classes.dex

4
app/build.gradle

@ -56,8 +56,8 @@ android {
buildConfigField 'String', 'API_VERSION', '"v1"'
buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
debuggable false
minifyEnabled true
shrinkResources true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}

31
app/src/main/java/com/gmeremit/online/gmeremittance_native/GmeApplication.java

@ -12,6 +12,9 @@ import androidx.multidex.MultiDexApplication;
import com.crashlytics.android.Crashlytics;
import com.zoyi.channel.plugin.android.ChannelIO;
import java.io.IOException;
import java.net.SocketException;
import io.fabric.sdk.android.Fabric;
import io.reactivex.exceptions.UndeliverableException;
import io.reactivex.plugins.RxJavaPlugins;
@ -40,12 +43,30 @@ public class GmeApplication extends MultiDexApplication {
Fabric.with(this, new Crashlytics());
}
RxJavaPlugins.setErrorHandler(throwable -> {
if (throwable instanceof UndeliverableException && throwable.getCause() instanceof HttpException) {
return; // ignore BleExceptions as they were surely delivered at least once
RxJavaPlugins.setErrorHandler(e -> {
if (e instanceof UndeliverableException) {
e = e.getCause();
}
if ((e instanceof IOException) || (e instanceof SocketException)) {
// fine, irrelevant network problem or API that throws on cancellation
return;
}
if (e instanceof InterruptedException) {
// fine, some blocking code was interrupted by a dispose call
return;
}
// add other custom handlers if needed
throw new RuntimeException("Unexpected Throwable in RxJavaPlugins error handler", throwable);
if ((e instanceof NullPointerException) || (e instanceof IllegalArgumentException)) {
// that's likely a bug in the application
Thread.currentThread().getUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), e);
return;
}
if (e instanceof IllegalStateException) {
// that's a bug in RxJava or in a custom operator
Thread.currentThread().getUncaughtExceptionHandler()
.uncaughtException(Thread.currentThread(), e);
return;
}
});

13
app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java

@ -90,13 +90,12 @@ public class SplashScreenPresenter extends BasePresenter implements SplashScreen
@Override
public boolean checkSafety() {
return true;
// if (hasRootAccess() || !checkIfAppSafe()) {
// view.showPopUpMessage("Access Denied", CustomAlertDialog.AlertType.ALERT, null);
// new Handler().postDelayed(() -> view.exitView(), 1500);
// return false;
// } else
// return true;
if (hasRootAccess() || !checkIfAppSafe()) {
view.showPopUpMessage("Access Denied", CustomAlertDialog.AlertType.ALERT, null);
new Handler().postDelayed(() -> view.exitView(), 1500);
return false;
} else
return true;
}
}
Loading…
Cancel
Save