@@ -82,9 +82,6 @@ open class StringCare : Plugin<Project> {
82
82
},
83
83
mergeResourcesStart = { module, variant ->
84
84
fingerPrint(variantMap, module, variant, extension.debug) { key ->
85
- if (" none" == key) {
86
- return @fingerPrint
87
- }
88
85
when {
89
86
moduleMap.containsKey(module) -> {
90
87
val variantOrFlavor = extension.variants.find {
@@ -95,6 +92,11 @@ open class StringCare : Plugin<Project> {
95
92
return @fingerPrint
96
93
}
97
94
95
+ if (" none" == key || key.trim().isEmpty()) {
96
+ PrintUtils .print (" No SHA1 key found for :$module :$variant " )
97
+ return @fingerPrint
98
+ }
99
+
98
100
PrintUtils .print (module, " $variant :$key " )
99
101
PrintUtils .print (module, backupStringRes)
100
102
moduleMap[module]?.let { configuration ->
@@ -116,6 +118,10 @@ open class StringCare : Plugin<Project> {
116
118
val defaultConfiguration = defaultConfig().apply {
117
119
name = module
118
120
}
121
+ if (" none" == key || key.trim().isEmpty()) {
122
+ PrintUtils .print (" No SHA1 key found for :$module :$variant " )
123
+ return @fingerPrint
124
+ }
119
125
PrintUtils .print (module, " $variant :$key " )
120
126
PrintUtils .print (module, backupStringRes)
121
127
backupResourceFiles(absoluteProjectPath, defaultConfiguration)
@@ -141,9 +147,6 @@ open class StringCare : Plugin<Project> {
141
147
},
142
148
mergeAssetsStart = { module, variant ->
143
149
fingerPrint(variantMap, module, variant, extension.debug) { key ->
144
- if (" none" == key) {
145
- return @fingerPrint
146
- }
147
150
when {
148
151
moduleMap.containsKey(module) -> {
149
152
val variantOrFlavor = extension.variants.find {
@@ -154,6 +157,11 @@ open class StringCare : Plugin<Project> {
154
157
return @fingerPrint
155
158
}
156
159
160
+ if (" none" == key || key.trim().isEmpty()) {
161
+ PrintUtils .print (" No SHA1 key found for :$module :$variant " )
162
+ return @fingerPrint
163
+ }
164
+
157
165
PrintUtils .print (module, " $variant :$key " )
158
166
PrintUtils .print (module, backupAssets)
159
167
moduleMap[module]?.let { configuration ->
0 commit comments