Skip to content

Commit

Permalink
Dep on Hermes only in the bridge lib
Browse files Browse the repository at this point in the history
  • Loading branch information
hypest committed Dec 20, 2019
1 parent 300f8da commit 9be1794
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 0 additions & 8 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,6 @@ dependencies {
implementation "org.wordpress:utils:$wordpressUtilsVersion"
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation "com.facebook.react:react-native:+" // From node_modules

if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
}

// Run this once to be able to run the application with BUCK
Expand Down
9 changes: 5 additions & 4 deletions react-native-gutenberg-bridge/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ group='com.github.wordpress-mobile.gutenberg-mobile'
project.ext.buildGutenbergFromSource = false

def hermesOriginalPath = "../../node_modules/hermes-engine/android/";
def hermesPath = "../../bundle/";
def hermesPath = hermesOriginalPath;

android {
compileSdkVersion 28
Expand Down Expand Up @@ -122,9 +122,6 @@ repositories {
dependencies {
implementation project(':react-native-aztec')

debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")

implementation "org.wordpress:utils:1.22"

// For animated GIF support
Expand All @@ -138,6 +135,8 @@ dependencies {

implementation 'com.facebook.react:react-native:+'
} else {
hermesPath = "../../bundle/";

implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-svg', readHashedVersion('../../package.json', 'react-native-svg', 'dependencies')))
implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-video', readHashedVersion('../../package.json', 'react-native-video', 'dependencies')))
implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-slider', readHashedVersion('../../package.json', '@react-native-community/slider', 'dependencies')))
Expand All @@ -146,6 +145,8 @@ dependencies {
implementation "com.facebook.react:react-native:${rnVersion}"
}

debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
}

if (isJitPack) {
Expand Down

0 comments on commit 9be1794

Please sign in to comment.