Skip to content
This repository was archived by the owner on Feb 27, 2022. It is now read-only.

Commit 7521378

Browse files
author
Elad Gil
committed
testApp work on Android
1 parent a727c9b commit 7521378

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

testApp/android/app/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,10 @@ import com.android.build.OutputFile
7373
*/
7474

7575
project.ext.react = [
76-
entryFile: "index.js"
76+
entryFile: "testApp/index.js"
7777
]
7878

79-
project.ext.react = [
80-
cliPath: "node_modules/haul/bin/cli.js"
81-
]
82-
83-
apply from: "../../node_modules/react-native/react.gradle"
79+
apply from: "../../../node_modules/react-native/react.gradle"
8480

8581
/**
8682
* Set this to true to create two separate APKs instead of one:

testApp/android/app/src/main/java/com/testapp/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected List<ReactPackage> getPackages() {
3030

3131
@Override
3232
protected String getJSMainModuleName() {
33-
return "index";
33+
return "testApp/index";
3434
}
3535
};
3636

testApp/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ allprojects {
2727
jcenter()
2828
maven {
2929
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
30-
url "$rootDir/../node_modules/react-native/android"
30+
url "$rootDir/../../node_modules/react-native/android"
3131
}
3232
}
3333
}

testApp/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
rootProject.name = 'testApp'
22
include ':react-native-background-downloader'
3-
project(':react-native-background-downloader').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-downloader/android')
3+
project(':react-native-background-downloader').projectDir = new File(rootProject.projectDir, '../../android')
44

55
include ':app'

0 commit comments

Comments
 (0)