2015-12-10 14:12:45 -08:00
|
|
|
apply plugin: "com.android.application"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets.
|
|
|
|
* These basically call `react-native bundle` with the correct arguments during the Android build
|
|
|
|
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
|
|
|
|
* bundle directly from the development server. Below you can see all the possible configurations
|
|
|
|
* and their defaults. If you decide to add a configuration block, make sure to add it before the
|
|
|
|
* `apply from: "react.gradle"` line.
|
|
|
|
*
|
|
|
|
* project.ext.react = [
|
|
|
|
* // the name of the generated asset file containing your JS bundle
|
|
|
|
* bundleAssetName: "index.android.bundle",
|
|
|
|
*
|
|
|
|
* // the entry file for bundle generation
|
|
|
|
* entryFile: "index.android.js",
|
|
|
|
*
|
|
|
|
* // whether to bundle JS and assets in debug mode
|
|
|
|
* bundleInDebug: false,
|
|
|
|
*
|
|
|
|
* // whether to bundle JS and assets in release mode
|
|
|
|
* bundleInRelease: true,
|
|
|
|
*
|
|
|
|
* // the root of your project, i.e. where "package.json" lives
|
|
|
|
* root: "../../",
|
|
|
|
*
|
|
|
|
* // where to put the JS bundle asset in debug mode
|
|
|
|
* jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
|
|
|
|
*
|
|
|
|
* // where to put the JS bundle asset in release mode
|
|
|
|
* jsBundleDirRelease: "$buildDir/intermediates/assets/release",
|
|
|
|
*
|
|
|
|
* // where to put drawable resources / React Native assets, e.g. the ones you use via
|
|
|
|
* // require('./image.png')), in debug mode
|
|
|
|
* resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
|
|
|
|
*
|
|
|
|
* // where to put drawable resources / React Native assets, e.g. the ones you use via
|
|
|
|
* // require('./image.png')), in release mode
|
|
|
|
* resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
|
|
|
|
*
|
|
|
|
* // by default the gradle tasks are skipped if none of the JS files or assets change; this means
|
|
|
|
* // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
|
|
|
|
* // date; if you have any other folders that you want to ignore for performance reasons (gradle
|
|
|
|
* // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
|
|
|
|
* // for example, you might want to remove it from here.
|
|
|
|
* inputExcludes: ["android/**", "ios/**"]
|
|
|
|
* ]
|
|
|
|
*/
|
|
|
|
|
|
|
|
apply from: "react.gradle"
|
2015-11-23 22:14:50 -08:00
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 23
|
|
|
|
buildToolsVersion "23.0.1"
|
|
|
|
|
|
|
|
defaultConfig {
|
2015-12-10 14:12:45 -08:00
|
|
|
applicationId "com.demo"
|
2015-11-23 22:14:50 -08:00
|
|
|
minSdkVersion 16
|
|
|
|
targetSdkVersion 22
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
ndk {
|
2015-12-10 14:12:45 -08:00
|
|
|
abiFilters "armeabi-v7a", "x86"
|
2015-11-23 22:14:50 -08:00
|
|
|
}
|
2015-12-01 22:27:48 +00:00
|
|
|
}
|
2015-12-10 14:12:45 -08:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false // Set this to true to enable Proguard
|
|
|
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
|
|
}
|
2015-11-23 22:14:50 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2015-12-10 14:12:45 -08:00
|
|
|
compile fileTree(dir: "libs", include: ["*.jar"])
|
|
|
|
compile "com.android.support:appcompat-v7:23.0.1"
|
2015-12-16 08:48:30 +00:00
|
|
|
// compile "com.facebook.react:react-native:0.16.+"
|
|
|
|
compile 'com.facebook.react:ReactAndroid-debug@aar'
|
2015-12-10 14:12:45 -08:00
|
|
|
compile 'com.reacttests:app-debug@aar'
|
2015-12-11 17:45:17 +00:00
|
|
|
compile 'com.github.KeepSafe:ReLinker:1.1'
|
2016-01-13 17:56:38 +00:00
|
|
|
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
2015-12-16 08:48:30 +00:00
|
|
|
|
|
|
|
compile 'com.google.code.findbugs:jsr305:3.0.0'
|
|
|
|
compile 'com.facebook.stetho:stetho-okhttp:1.2.0'
|
|
|
|
compile 'org.webkit:android-jsc:r174650'
|
|
|
|
compile 'com.squareup.okhttp:okhttp-ws:2.5.0'
|
|
|
|
compile 'com.facebook.fresco:fresco:0.8.1'
|
|
|
|
compile 'com.fasterxml.jackson.core:jackson-core:2.2.3'
|
|
|
|
compile 'com.squareup.okhttp:okhttp:2.5.0'
|
|
|
|
compile 'com.facebook.fresco:imagepipeline-okhttp:0.8.1'
|
|
|
|
compile 'com.squareup.okio:okio:1.6.0'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.0.1'
|
|
|
|
compile 'com.facebook.stetho:stetho:1.2.0'
|
|
|
|
// compile 'com.android.suppor:appcompat-v7:23.0.1'
|
|
|
|
}
|