Skip to content

Commit

Permalink
fix(android): react-native-interactable pls
Browse files Browse the repository at this point in the history
  • Loading branch information
mnzaki committed Sep 7, 2020
1 parent a6830a2 commit 513b480
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,6 +32,7 @@ protected List<ReactPackage> getPackages() {
List<ReactPackage> 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
Expand Down
4 changes: 4 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 513b480

Please sign in to comment.