diff --git a/android/.gitignore b/android/.gitignore index afb2ba6d8e..70c5f83906 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -1,5 +1,6 @@ .gradle .idea +/build /android.iml /build.gradle /local.properties @@ -12,4 +13,6 @@ /lib/src/main/assets/share/ /lib/src/main/assets/unpack/ /lib/src/main/assets/user/ +/lib/src/debug/assets +/lib/src/release/assets /lib/src/main/cpp/lib diff --git a/android/build.gradle.in b/android/build.gradle.in index 5b78812cbc..fd2b2fc5e7 100644 --- a/android/build.gradle.in +++ b/android/build.gradle.in @@ -24,3 +24,7 @@ allprojects { task clean(type: Delete) { delete rootProject.buildDir } + +afterEvaluate { + clean.dependsOn(':lib:clean') +} diff --git a/android/lib/build.gradle b/android/lib/build.gradle index 1b1eb90df7..c3b3621b9d 100644 --- a/android/lib/build.gradle +++ b/android/lib/build.gradle @@ -291,6 +291,8 @@ ReferenceOOoMajorMinor=4.1 clean.doFirst { delete "src/main/assets" + delete "src/debug/assets" + delete "src/release/assets" } // creating the UI stuff is cheap, don't bother only applying it for the flavor..