Skip to content

Commit

Permalink
Reverted changes to build RN from source
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Nov 16, 2021
1 parent c2e8fad commit a682b0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
3 changes: 1 addition & 2 deletions tests/ReactTestApp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion

// implementation "com.facebook.react:react-native:+" // From node_modules
implementation project(':ReactAndroid')
implementation "com.facebook.react:react-native:+" // From node_modules

// We need to add realm manually, because it is not in the package.json
implementation project(":realm")
Expand Down
9 changes: 0 additions & 9 deletions tests/ReactTestApp/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ buildscript {
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath('de.undercouch:gradle-download-task:4.0.0')
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -36,12 +35,4 @@ allprojects {
google()
maven { url 'https://www.jitpack.io' }
}

configurations.all {
resolutionStrategy {
dependencySubstitution {
substitute module("com.facebook.react:react-native:+") with project(":ReactAndroid")
}
}
}
}
10 changes: 0 additions & 10 deletions tests/ReactTestApp/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,4 @@ apply from: file("../node_modules/@react-native-community/cli-platform-android/n
include ':realm'
project(':realm').projectDir = new File(settingsDir, '../../../react-native/android')

include ':ReactAndroid'
project(':ReactAndroid').projectDir = new File(
rootProject.projectDir, '../node_modules/react-native/ReactAndroid')

// Includes codegen and its plugin into Gradle project. Required by `:ReactAndroid` project configuration.
include ':packages:react-native-codegen:android'
project(':packages:react-native-codegen:android').projectDir = new File(rootProject.projectDir,
'../node_modules/react-native/packages/react-native-codegen/android')
includeBuild('../node_modules/react-native/packages/react-native-codegen/android')

include ':app'

0 comments on commit a682b0b

Please sign in to comment.