Просмотр исходного кода

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

Greg Wright 8 лет назад
Родитель
Сommit
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