Skip to content

Commit

Permalink
Migrate to use AndroidX
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Pombeiro committed Sep 9, 2019
1 parent 24e1d99 commit 25a0d30
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,8 @@ dependencies {
implementation jscFlavor
}

implementation 'com.android.support:multidex:1.0.2'
implementation 'androidx.multidex:multidex:2.0.1' // only needed if minSdkVersion is less than 21 (https://developer.android.com/studio/build/multidex)
implementation project(':react-native-dialogs')
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
// Force using exact RN version instead of relying on gradle dependency resolution
// https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution
// NOTE: Uncomment if building RN from a fork
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</service>
<service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" />
<provider
android:name="android.support.v4.content.FileProvider"
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import android.content.Context;
import android.annotation.TargetApi;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import android.app.AlertDialog;
import android.app.ActivityManager;
import android.content.DialogInterface;
Expand All @@ -13,7 +13,7 @@
import android.os.Build;
import android.os.Looper;
import android.preference.PreferenceManager;
import android.support.v4.app.ActivityCompat;
import androidx.core.app.ActivityCompat;
import android.util.Log;
import android.view.WindowManager;
import android.content.Intent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package im.status.ethereum;

import android.support.multidex.MultiDexApplication;
import androidx.multidex.MultiDexApplication;
import android.util.Log;
import com.facebook.react.PackageList;
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import android.os.Build;
import android.os.Environment;
import android.preference.PreferenceManager;
import android.support.v4.content.FileProvider;
import androidx.core.content.FileProvider;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;
Expand Down
3 changes: 3 additions & 0 deletions nix/mobile/android/maven-and-npm-deps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ let
'nodeExecutableAndArgs: ["node"' \
'nodeExecutableAndArgs: ["${nodejs}/bin/node"'
# Patch dependencies which are not yet ported to AndroidX
npx jetify
set $prevSet
runHook postPatch
Expand Down

0 comments on commit 25a0d30

Please sign in to comment.