mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
feat: improve cross-uni app workflow
This commit is contained in:
@@ -16,11 +16,32 @@ android {
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
||||
}
|
||||
}
|
||||
|
||||
flavorDimensions 'uni'
|
||||
productFlavors {
|
||||
file('../../config').eachDir {
|
||||
def config = new groovy.json.JsonSlurper().parseText(file("$it/default.json").text)
|
||||
"${it.name}" {
|
||||
dimension 'uni'
|
||||
applicationId config.android.packageName
|
||||
versionName config.appMarketingVersion
|
||||
resValue 'string', 'app_name', config.appName
|
||||
resValue 'string', 'title_activity_main', config.appName
|
||||
resValue 'string', 'package_name', config.android.packageName
|
||||
resValue 'string', 'custom_url_scheme', config.appUrlScheme
|
||||
resValue 'string', 'app_host', config.appLinkHost
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
debug {
|
||||
applicationIdSuffix ".debug"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user