apply plugin: "com.android.application" project.ext.react = [ root : "../../../", entryFile: "playground/index.js" ] apply from: "../../../node_modules/react-native/react.gradle" android { compileSdkVersion 26 buildToolsVersion "27.0.3" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.reactnativenavigation.playground" minSdkVersion 19 targetSdkVersion 25 versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } testBuildType System.getProperty('testBuildType', 'debug') //this will later be used to control the test apk build type missingDimensionStrategy "minReactNative", "minReactNative46" missingDimensionStrategy "RNN.reactNativeVersion", "reactNative51" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } signingConfigs { release { storeFile file('../playground.keystore') storePassword "playground" keyAlias "playground" keyPassword "playground" } } buildTypes { release { signingConfig signingConfigs.release } } } configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.support') { details.useVersion "26.1.0" } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:design:26.1.0' implementation 'com.android.support:appcompat-v7:26.1.0' //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' implementation project(':react-native-navigation') androidTestImplementation(project(':detox')) androidTestImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test:rules:1.0.2' }