From 55da8b4c74e4fb88b91f555f0d5f93b4ee878c7b Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 21 Dec 2018 12:01:02 +0100 Subject: [PATCH] Added Play build type --- .gitignore | 1 + app/build.gradle | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 4b51fdea..ad774389 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /tools/config.sh /app/.externalNativeBuild /app/release +/app/play diff --git a/app/build.gradle b/app/build.gradle index 147b8a00..64f336c9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -44,6 +44,14 @@ android { buildConfigField "String", "HOSTS_FILE_URI", "\"http://www.netguard.me/hosts\"" buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/NetGuard/releases/latest\"" } + play { + minifyEnabled = true + useProguard = true + proguardFiles.add(file('proguard-rules.pro')) + buildConfigField "boolean", "PLAY_STORE_RELEASE", "true" + buildConfigField "String", "HOSTS_FILE_URI", "\"\"" + buildConfigField "String", "GITHUB_LATEST_API", "\"\"" + } debug { minifyEnabled = true useProguard = true