Skip to content

Commit

Permalink
Adapt build.gradle to make this lib buildable from our project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanEngelDm committed Jan 2, 2019
1 parent 979bea0 commit 3da0768
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion native/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
buildscript {
ext.kotlin_version = "1.3.10"
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../../../react-native/android"
}
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

Expand Down Expand Up @@ -25,5 +49,5 @@ dependencies {
}
repositories {
mavenCentral()
google()
}

0 comments on commit 3da0768

Please sign in to comment.