|
@@ -2,65 +2,6 @@ apply plugin: "com.android.application"
|
2
|
2
|
|
3
|
3
|
import com.android.build.OutputFile
|
4
|
4
|
|
5
|
|
-/**
|
6
|
|
- * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
|
7
|
|
- * and bundleReleaseJsAndAssets).
|
8
|
|
- * These basically call `react-native bundle` with the correct arguments during the Android build
|
9
|
|
- * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
|
10
|
|
- * bundle directly from the development server. Below you can see all the possible configurations
|
11
|
|
- * and their defaults. If you decide to add a configuration block, make sure to add it before the
|
12
|
|
- * `apply from: "react.gradle"` line.
|
13
|
|
- *
|
14
|
|
- * project.ext.react = [
|
15
|
|
- * // the name of the generated asset file containing your JS bundle
|
16
|
|
- * bundleAssetName: "index.android.bundle",
|
17
|
|
- *
|
18
|
|
- * // the entry file for bundle generation
|
19
|
|
- * entryFile: "index.android.js",
|
20
|
|
- *
|
21
|
|
- * // whether to bundle JS and assets in debug mode
|
22
|
|
- * bundleInDebug: false,
|
23
|
|
- *
|
24
|
|
- * // whether to bundle JS and assets in release mode
|
25
|
|
- * bundleInRelease: true,
|
26
|
|
- *
|
27
|
|
- * // whether to bundle JS and assets in another build variant (if configured).
|
28
|
|
- * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
|
29
|
|
- * // The configuration property can be in the following formats
|
30
|
|
- * // 'bundleIn${productFlavor}${buildType}'
|
31
|
|
- * // 'bundleIn${buildType}'
|
32
|
|
- * // bundleInFreeDebug: true,
|
33
|
|
- * // bundleInPaidRelease: true,
|
34
|
|
- * // bundleInBeta: true,
|
35
|
|
- *
|
36
|
|
- * // the root of your project, i.e. where "package.json" lives
|
37
|
|
- * root: "../../",
|
38
|
|
- *
|
39
|
|
- * // where to put the JS bundle asset in debug mode
|
40
|
|
- * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
|
41
|
|
- *
|
42
|
|
- * // where to put the JS bundle asset in release mode
|
43
|
|
- * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
|
44
|
|
- *
|
45
|
|
- * // where to put drawable resources / React Native assets, e.g. the ones you use via
|
46
|
|
- * // require('./image.png')), in debug mode
|
47
|
|
- * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
|
48
|
|
- *
|
49
|
|
- * // where to put drawable resources / React Native assets, e.g. the ones you use via
|
50
|
|
- * // require('./image.png')), in release mode
|
51
|
|
- * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
|
52
|
|
- *
|
53
|
|
- * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
|
54
|
|
- * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
|
55
|
|
- * // date; if you have any other folders that you want to ignore for performance reasons (gradle
|
56
|
|
- * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
|
57
|
|
- * // for example, you might want to remove it from here.
|
58
|
|
- * inputExcludes: ["android/**", "ios/**"]
|
59
|
|
- * ]
|
60
|
|
- */
|
61
|
|
-
|
62
|
|
-apply from: "react.gradle"
|
63
|
|
-
|
64
|
5
|
/**
|
65
|
6
|
* Set this to true to create two separate APKs instead of one:
|
66
|
7
|
* - An APK that only works on ARM devices
|
|
@@ -78,12 +19,12 @@ def enableProguardInReleaseBuilds = false
|
78
|
19
|
|
79
|
20
|
android {
|
80
|
21
|
compileSdkVersion 23
|
81
|
|
- buildToolsVersion "23.0.1"
|
|
22
|
+ buildToolsVersion "23.0.3"
|
82
|
23
|
|
83
|
24
|
defaultConfig {
|
84
|
25
|
applicationId "com.example"
|
85
|
26
|
minSdkVersion 16
|
86
|
|
- targetSdkVersion 22
|
|
27
|
+ targetSdkVersion 23
|
87
|
28
|
versionCode 1
|
88
|
29
|
versionName "1.0"
|
89
|
30
|
ndk {
|
|
@@ -109,7 +50,7 @@ android {
|
109
|
50
|
variant.outputs.each { output ->
|
110
|
51
|
// For each separate APK per architecture, set a unique version code as described here:
|
111
|
52
|
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
|
112
|
|
- def versionCodes = ["armeabi-v7a":1, "x86":2]
|
|
53
|
+ def versionCodes = ["armeabi-v7a": 1, "x86": 2]
|
113
|
54
|
def abi = output.getFilter(OutputFile.ABI)
|
114
|
55
|
if (abi != null) { // null for the universal-debug, universal-release variants
|
115
|
56
|
output.versionCodeOverride =
|
|
@@ -123,7 +64,5 @@ dependencies {
|
123
|
64
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
124
|
65
|
compile 'com.android.support:appcompat-v7:23.0.1'
|
125
|
66
|
compile 'com.facebook.react:react-native:+'
|
126
|
|
- debugCompile project(path: ':react-native-navigation', configuration: 'libraryDebug')
|
127
|
|
- releaseCompile project(path: ':react-native-navigation', configuration: 'libraryRelease')
|
128
|
|
-// compile project(':react-native-navigation')
|
|
67
|
+ compile project(':react-native-navigation')
|
129
|
68
|
}
|