Эх сурвалжийг харах

Gradle custom script 'app/custom.gradle' (#473)

Greg Wright 8 жил өмнө
parent
commit
bf05952582
2 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 1 1
      app/.gitignore
  2. 4 0
      app/build.gradle

+ 1 - 1
app/.gitignore

@@ -1,4 +1,4 @@
 /build
 *iml
 *.iml
-.idea
+custom.gradle

+ 4 - 0
app/build.gradle

@@ -4,6 +4,10 @@ apply plugin: 'com.android.application'
 apply plugin: 'kotlin-android'
 apply plugin: 'kotlin-android-extensions'
 
+if (file("custom.gradle").exists()) {
+    apply from: "custom.gradle"
+}
+
 ext {
     // Git is needed in your system PATH for these commands to work.
     // If it's not installed, you can return a random value as a workaround