Skip to content

Instantly share code, notes, and snippets.

@samzmann
Created April 21, 2021 07:53
Show Gist options
  • Save samzmann/a57f4d88f0a49bf932a3e4de0deb2d2f to your computer and use it in GitHub Desktop.
Save samzmann/a57f4d88f0a49bf932a3e4de0deb2d2f to your computer and use it in GitHub Desktop.
android/build.gradle for vytal.7.15.0
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenLocal()
mavenCentral()
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.android.tools.build:gradle:4.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "28.0.0"
playServicesVersion = "17.0.0"
googleMapsUtilsVersion = "2.2.0"
googlePlayServicesAuthVersion = "16.0.1"
RNNKotlinVersion = "1.3.72"
RNNKotlinStdlib = "kotlin-stdlib-jdk8"
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
subprojects {
if (project.name.contains('react-native-vector-icons')) {
buildscript {
repositories {
jcenter()
maven { url "https://dl.bintray.com/android/android-tools/" }
}
}
}
afterEvaluate {project ->
if ((project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment