@@ -13,22 +13,22 @@ def getCmdOutput = { cmd ->
13
13
def getGitHash = { -> return getCmdOutput([" git" , " rev-parse" , " --short" , " HEAD" ]) }
14
14
def getGitBranch = { -> return getCmdOutput([" git" , " rev-parse" , " --abbrev-ref" , " HEAD" ]) }
15
15
16
- def fileProviderAuthority = " com.beemdevelopment.aegis.fileprovider"
16
+ def packageName = " com.beemdevelopment.aegis"
17
+ def fileProviderAuthority = " ${ packageName} .fileprovider"
18
+ def fileProviderAuthorityDebug = " ${ packageName} .debug.fileprovider"
17
19
18
20
android {
19
21
compileSdkVersion 30
20
22
21
23
defaultConfig {
22
- applicationId " com.beemdevelopment.aegis "
24
+ applicationId " ${ packageName } "
23
25
minSdkVersion 21
24
26
targetSdkVersion 30
25
27
versionCode 41
26
28
versionName " 1.4-beta1"
27
29
multiDexEnabled true
28
30
buildConfigField " String" , " GIT_HASH" , " \" ${ getGitHash()} \" "
29
31
buildConfigField " String" , " GIT_BRANCH" , " \" ${ getGitBranch()} \" "
30
- buildConfigField(" String" , " FILE_PROVIDER_AUTHORITY" , " \" ${ fileProviderAuthority} \" " )
31
- manifestPlaceholders = [fileProviderAuthority : " ${ fileProviderAuthority} " ]
32
32
33
33
testInstrumentationRunner " com.beemdevelopment.aegis.AegisTestRunner"
34
34
testInstrumentationRunnerArguments clearPackageData : ' true'
@@ -55,7 +55,12 @@ android {
55
55
buildTypes {
56
56
debug {
57
57
applicationIdSuffix " .debug"
58
- manifestPlaceholders = [title : " AegisDev" , iconName : " ic_launcher_debug" ]
58
+ manifestPlaceholders = [
59
+ title : " AegisDev" ,
60
+ iconName : " ic_launcher_debug" ,
61
+ fileProviderAuthority : " ${ fileProviderAuthorityDebug} "
62
+ ]
63
+ buildConfigField(" String" , " FILE_PROVIDER_AUTHORITY" , " \" ${ fileProviderAuthorityDebug} \" " )
59
64
resValue " bool" , " pref_secure_screen_default" , " false"
60
65
postprocessing {
61
66
removeUnusedCode true
@@ -66,7 +71,12 @@ android {
66
71
}
67
72
}
68
73
release {
69
- manifestPlaceholders = [title : " Aegis" , iconName : " ic_launcher" ]
74
+ manifestPlaceholders = [
75
+ title : " Aegis" ,
76
+ iconName : " ic_launcher" ,
77
+ fileProviderAuthority : " ${ fileProviderAuthority} "
78
+ ]
79
+ buildConfigField(" String" , " FILE_PROVIDER_AUTHORITY" , " \" ${ fileProviderAuthority} \" " )
70
80
resValue " bool" , " pref_secure_screen_default" , " true"
71
81
postprocessing {
72
82
removeUnusedCode true
0 commit comments