12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- apply plugin: "com.android.application"
-
- project.ext.react = [
- root : "../../../",
- entryFile: "index.js",
- bundleAssetName: "index.android.bundle",
- bundleInAlpha: true,
- bundleInBeta: true
- ]
-
- apply from: "../../../node_modules/react-native/react.gradle"
-
- android {
- compileSdkVersion 28
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- defaultConfig {
- applicationId "com.reactnativenavigation.playground"
- minSdkVersion 21
- targetSdkVersion 28
- versionCode 1
- versionName "1.0"
- ndk {
- abiFilters "armeabi-v7a", "x86"
- }
-
- testBuildType System.getProperty('testBuildType', 'debug')
- testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
- }
- signingConfigs {
- release {
- storeFile file('../playground.keystore')
- storePassword "playground"
- keyAlias "playground"
- keyPassword "playground"
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- }
- }
- packagingOptions {
- pickFirst '**/libjsc.so'
- pickFirst '**/libc++_shared.so'
- }
- }
-
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'com.google.android.material:material:1.0.0'
- implementation 'androidx.appcompat:appcompat:1.1.0'
-
- //noinspection GradleDynamicVersion
- implementation 'com.facebook.react:react-native:+'
- //noinspection GradleDynamicVersion
- implementation 'org.webkit:android-jsc-intl:+'
- implementation project(':react-native-navigation')
-
- androidTestImplementation('com.wix:detox:+') { transitive = true }
- androidTestImplementation 'junit:junit:4.12'
- }
-
-
- task copyDownloadableDepsToLibs(type: Copy) {
- from configurations.compile
- into 'libs'
- }
-
- apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
- applyNativeModulesAppBuildGradle(project)
|