From 513b480e39739cb50d9b4a49a9bdd99753d6888a Mon Sep 17 00:00:00 2001 From: mnzaki Date: Mon, 7 Sep 2020 19:16:01 +0200 Subject: [PATCH] fix(android): react-native-interactable pls https://github.com/wix/react-native-interactable/issues/289 --- android/app/build.gradle | 1 + .../app/src/main/java/com/jolocomwallet/MainApplication.java | 2 ++ android/settings.gradle | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/android/app/build.gradle b/android/app/build.gradle index df52be64bd..a8b3ac9eee 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -216,6 +216,7 @@ dependencies { implementation project(':@jolocom_native-core-react-native') implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.facebook.react:react-native:+" // From node_modules + implementation project(path: ":react-native-interactable") if (enableHermes) { def hermesPath = "../../node_modules/hermes-engine/android/"; diff --git a/android/app/src/main/java/com/jolocomwallet/MainApplication.java b/android/app/src/main/java/com/jolocomwallet/MainApplication.java index d3d85dc28e..1f0e9e3bce 100644 --- a/android/app/src/main/java/com/jolocomwallet/MainApplication.java +++ b/android/app/src/main/java/com/jolocomwallet/MainApplication.java @@ -6,6 +6,7 @@ import com.facebook.react.ReactApplication; import io.jolocom.jolocomCore.JolocomCorePackage; +import com.wix.interactable.Interactable; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; @@ -31,6 +32,7 @@ protected List getPackages() { List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); + packages.add(new Interactable()); // https://github.com/crazycodeboy/react-native-splash-screen // this package looks dead, we should move to https://github.com/zoontek/react-native-bootsplash diff --git a/android/settings.gradle b/android/settings.gradle index 3b1e9c295a..48b6756a59 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,5 +1,9 @@ rootProject.name = 'JolocomWallet' include ':@jolocom_native-core-react-native' project(':@jolocom_native-core-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/@jolocom/native-core-react-native/android') + +include ':react-native-interactable' +project(':react-native-interactable').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-interactable/lib/android') + apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app'