Skip to content

Instantly share code, notes, and snippets.

@bharat-tiwari
Last active June 15, 2020 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bharat-tiwari/59dfeb5c1e146c02899743d03437fbc4 to your computer and use it in GitHub Desktop.
Save bharat-tiwari/59dfeb5c1e146c02899743d03437fbc4 to your computer and use it in GitHub Desktop.
android/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.0.0")
classpath("com.github.triplet.gradle:play-publisher:2.8.0")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment