@@ -38,12 +38,16 @@ android {
3838 localProperties. load(new FileInputStream (localPropertiesFile))
3939 }
4040
41- def ghUser = System . getProperty(" github_updates_repo" )
42- ?: localProperties. getProperty(" github_updates_repo" , " " )
41+ // Put your GitHub username in this flag when building for in-app update feature
42+ // -Dgh_username=
43+ def ghUser = System . getProperty(" gh_username" )
44+ ?: localProperties. getProperty(" gh_username" , " " )
45+ resValue " string" , " gh_username" , ghUser
46+
47+ // Put your Telegram bot token in this flag when building for Telegram backup feature
48+ // -Dtg_backup_bot_token=
4349 def tgKey = System . getProperty(" tg_backup_bot_token" )
4450 ?: localProperties. getProperty(" tg_backup_bot_token" , " " )
45-
46- resValue " string" , " github_updates_repo" , ghUser
4751 resValue ' string' , ' tg_backup_bot_token' , tgKey
4852 }
4953 signingConfigs {
@@ -142,9 +146,16 @@ android {
142146 }
143147}
144148dependencies {
145- implementation(libs. doki. exts) {
146- exclude group : ' org.json' , module : ' json'
147- }
149+ def exts = libs. versions. exts. get()
150+ if (System . properties. containsKey(' exts' )) {
151+ // Use this flag with build command for auto-fetch and replace:
152+ // -Dexts=$(curl -s https://api.github.com/repos/DokiTeam/doki-exts/commits/base -H "Accept: application/vnd.github.sha" | cut -c -10)
153+ exts = System . getProperty(' exts' )
154+ }
155+ // noinspection UseTomlInstead
156+ implementation(" com.github.DokiTeam:doki-exts:$exts " ) {
157+ exclude group : ' org.json' , module : ' json'
158+ }
148159
149160 coreLibraryDesugaring libs. desugar. jdk. libs
150161 implementation libs. kotlin. stdlib
0 commit comments