@@ -37,13 +37,13 @@ android {
3737 applicationId = " com.fox2code.mmm"
3838 minSdk = 24
3939 targetSdk = 33
40- versionCode = 65
40+ versionCode = 66
4141 versionName = " 2.0.0"
4242 vectorDrawables {
4343 useSupportLibrary = true
4444 }
4545 multiDexEnabled = true
46- resourceConfigurations + = setOf ( )
46+ resourceConfigurations.addAll( listOf ( " ar " , " bs " , " de " , " es-rMX " , " fr " , " hu " , " id " , " ja " , " nl " , " pl " , " pt " , " pt-rBR " , " ro " , " ru " , " tr " , " uk " , " zh-rCN " , " zh-rTW " , " en " ) )
4747 }
4848
4949 splits {
@@ -94,6 +94,7 @@ android {
9494 flavorDimensions.add(" type" )
9595 productFlavors {
9696 create(" default" ) {
97+ dimension = " type"
9798 // debug http requests. do not set this to true if you care about performance!!!!!
9899 buildConfigField(" boolean" , " DEBUG_HTTP" , " false" )
99100 // Latest commit hash as BuildConfig.COMMIT_HASH
@@ -102,18 +103,18 @@ android {
102103 buildConfigField(" String" , " BRANCH_NAME" , " \" $gitBranch \" " )
103104 // Get remote url as BuildConfig.REMOTE_URL
104105 buildConfigField(" String" , " REMOTE_URL" , " \" $gitRemote \" " )
105- dimension = " type"
106106 buildConfigField(" boolean" , " ENABLE_AUTO_UPDATER" , " true" )
107107 buildConfigField(" boolean" , " DEFAULT_ENABLE_CRASH_REPORTING" , " true" )
108108 buildConfigField(" boolean" , " DEFAULT_ENABLE_CRASH_REPORTING_PII" , " true" )
109109 buildConfigField(" boolean" , " DEFAULT_ENABLE_ANALYTICS" , " true" )
110110 val properties = Properties ()
111111 if (project.rootProject.file(" local.properties" ).exists()) {
112+ properties.load(project.rootProject.file(" local.properties" ).reader())
112113 // grab matomo.url
113114 buildConfigField(
114115 " String" , " ANALYTICS_ENDPOINT" , " \" " + properties.getProperty(
115- " matomo.url" , " https://s-api.androidacy.com/matomo.php" + " \" "
116- )
116+ " matomo.url" , " https://s-api.androidacy.com/matomo.php"
117+ ) + " \" "
117118 )
118119 } else {
119120 buildConfigField(
@@ -127,7 +128,7 @@ android {
127128 // If androidacy.properties doesn"t exist, use the default client ID which is heavily
128129 // rate limited to 30 requests per minute
129130 if (project.rootProject.file(" androidacy.properties" ).exists()) {
130- propertiesA.load(project.rootProject.file(" androidacy.properties" ).inputStream ())
131+ propertiesA.load(project.rootProject.file(" androidacy.properties" ).reader ())
131132 properties.setProperty(
132133 " client_id" , " \" " + propertiesA.getProperty(
133134 " client_id" ,
@@ -153,6 +154,8 @@ android {
153154
154155 // play variant. pretty similiar to default, but with an empty inital online repo list, and use play_client_id instead of client_id
155156 create(" play" ) {
157+ dimension = " type"
158+ applicationIdSuffix = " .play"
156159 // debug http requests. do not set this to true if you care about performance!!!!!
157160 buildConfigField(" boolean" , " DEBUG_HTTP" , " false" )
158161 // Latest commit hash as BuildConfig.COMMIT_HASH
@@ -161,18 +164,18 @@ android {
161164 buildConfigField(" String" , " BRANCH_NAME" , " \" $gitBranch \" " )
162165 // Get remote url as BuildConfig.REMOTE_URL
163166 buildConfigField(" String" , " REMOTE_URL" , " \" $gitRemote \" " )
164- dimension = " type"
165167 buildConfigField(" boolean" , " ENABLE_AUTO_UPDATER" , " false" )
166168 buildConfigField(" boolean" , " DEFAULT_ENABLE_CRASH_REPORTING" , " true" )
167169 buildConfigField(" boolean" , " DEFAULT_ENABLE_CRASH_REPORTING_PII" , " true" )
168170 buildConfigField(" boolean" , " DEFAULT_ENABLE_ANALYTICS" , " true" )
169171 val properties = Properties ()
170172 if (project.rootProject.file(" local.properties" ).exists()) {
173+ properties.load(project.rootProject.file(" local.properties" ).reader())
171174 // grab matomo.url
172175 buildConfigField(
173176 " String" , " ANALYTICS_ENDPOINT" , " \" " + properties.getProperty(
174- " matomo.url" , " https://s-api.androidacy.com/matomo.php" + " \" "
175- )
177+ " matomo.url" , " https://s-api.androidacy.com/matomo.php"
178+ ) + " \" "
176179 )
177180 } else {
178181 buildConfigField(
@@ -186,7 +189,7 @@ android {
186189 // If androidacy.properties doesn"t exist, use the default client ID which is heavily
187190 // rate limited to 30 requests per minute
188191 if (project.rootProject.file(" androidacy.properties" ).exists()) {
189- propertiesA.load(project.rootProject.file(" androidacy.properties" ).inputStream ())
192+ propertiesA.load(project.rootProject.file(" androidacy.properties" ).reader ())
190193 properties.setProperty(
191194 " client_id" , " \" " + propertiesA.getProperty(
192195 " play_client_id" ,
@@ -234,6 +237,7 @@ android {
234237 buildConfigField(" boolean" , " DEFAULT_ENABLE_ANALYTICS" , " false" )
235238 val properties = Properties ()
236239 if (project.rootProject.file(" local.properties" ).exists()) {
240+ properties.load(project.rootProject.file(" local.properties" ).reader())
237241 // grab matomo.url
238242 buildConfigField(
239243 " String" , " ANALYTICS_ENDPOINT" , " \" " + properties.getProperty(
@@ -463,8 +467,7 @@ android {
463467 }
464468 // noinspection GrDeprecatedAPIUsage
465469 buildToolsVersion = " 34.0.0 rc3"
466- @Suppress(" DEPRECATION" )
467- packagingOptions {
470+ @Suppress(" DEPRECATION" ) packagingOptions {
468471 jniLibs {
469472 useLegacyPackaging = true
470473 }
0 commit comments