1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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
- ndkVersion "20.1.5948944"
-
- 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)
|