@@ -82,9 +82,6 @@ open class StringCare : Plugin<Project> {
8282 },
8383 mergeResourcesStart = { module, variant ->
8484 fingerPrint(variantMap, module, variant, extension.debug) { key ->
85- if (" none" == key) {
86- return @fingerPrint
87- }
8885 when {
8986 moduleMap.containsKey(module) -> {
9087 val variantOrFlavor = extension.variants.find {
@@ -95,6 +92,11 @@ open class StringCare : Plugin<Project> {
9592 return @fingerPrint
9693 }
9794
95+ if (" none" == key || key.trim().isEmpty()) {
96+ PrintUtils .print (" No SHA1 key found for :$module :$variant " )
97+ return @fingerPrint
98+ }
99+
98100 PrintUtils .print (module, " $variant :$key " )
99101 PrintUtils .print (module, backupStringRes)
100102 moduleMap[module]?.let { configuration ->
@@ -116,6 +118,10 @@ open class StringCare : Plugin<Project> {
116118 val defaultConfiguration = defaultConfig().apply {
117119 name = module
118120 }
121+ if (" none" == key || key.trim().isEmpty()) {
122+ PrintUtils .print (" No SHA1 key found for :$module :$variant " )
123+ return @fingerPrint
124+ }
119125 PrintUtils .print (module, " $variant :$key " )
120126 PrintUtils .print (module, backupStringRes)
121127 backupResourceFiles(absoluteProjectPath, defaultConfiguration)
@@ -141,9 +147,6 @@ open class StringCare : Plugin<Project> {
141147 },
142148 mergeAssetsStart = { module, variant ->
143149 fingerPrint(variantMap, module, variant, extension.debug) { key ->
144- if (" none" == key) {
145- return @fingerPrint
146- }
147150 when {
148151 moduleMap.containsKey(module) -> {
149152 val variantOrFlavor = extension.variants.find {
@@ -154,6 +157,11 @@ open class StringCare : Plugin<Project> {
154157 return @fingerPrint
155158 }
156159
160+ if (" none" == key || key.trim().isEmpty()) {
161+ PrintUtils .print (" No SHA1 key found for :$module :$variant " )
162+ return @fingerPrint
163+ }
164+
157165 PrintUtils .print (module, " $variant :$key " )
158166 PrintUtils .print (module, backupAssets)
159167 moduleMap[module]?.let { configuration ->
0 commit comments