[Android] Green app icon for debug builds

Geoffrey Métais git at videolan.org
Thu Mar 9 17:49:06 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar  9 17:48:47 2017 +0100| [9ecaa0af9e51bc5fa55495f0ba9712f849e359f7] | committer: Geoffrey Métais

Green app icon for debug builds

> https://code.videolan.org/videolan/vlc-android/commit/9ecaa0af9e51bc5fa55495f0ba9712f849e359f7
---

 vlc-android/build.gradle                                    |   3 +++
 .../debug/res/drawable-hdpi/icon.png}                       | Bin
 .../debug/res/drawable-ldpi/icon.png}                       | Bin
 .../debug/res/drawable-mdpi/icon.png}                       | Bin
 .../debug/res/drawable-xhdpi/icon.png}                      | Bin
 5 files changed, 3 insertions(+)

diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index f4bbca6..dac4ff9 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -184,6 +184,9 @@ android {
     sourceSets.release {
         manifest.srcFile 'flavors/release/AndroidManifest.xml'
     }
+    sourceSets.debug {
+        res.srcDirs = ['flavors/debug/res']
+    }
     sourceSets.test {
         java.srcDirs = ['test']
     }
diff --git a/vlc-android/res/drawable-hdpi/icon_debug.png b/vlc-android/flavors/debug/res/drawable-hdpi/icon.png
similarity index 100%
rename from vlc-android/res/drawable-hdpi/icon_debug.png
rename to vlc-android/flavors/debug/res/drawable-hdpi/icon.png
diff --git a/vlc-android/res/drawable-ldpi/icon_debug.png b/vlc-android/flavors/debug/res/drawable-ldpi/icon.png
similarity index 100%
rename from vlc-android/res/drawable-ldpi/icon_debug.png
rename to vlc-android/flavors/debug/res/drawable-ldpi/icon.png
diff --git a/vlc-android/res/drawable-mdpi/icon_debug.png b/vlc-android/flavors/debug/res/drawable-mdpi/icon.png
similarity index 100%
rename from vlc-android/res/drawable-mdpi/icon_debug.png
rename to vlc-android/flavors/debug/res/drawable-mdpi/icon.png
diff --git a/vlc-android/res/drawable-xhdpi/icon_debug.png b/vlc-android/flavors/debug/res/drawable-xhdpi/icon.png
similarity index 100%
rename from vlc-android/res/drawable-xhdpi/icon_debug.png
rename to vlc-android/flavors/debug/res/drawable-xhdpi/icon.png



More information about the Android mailing list