Skip to content

Commit 613f41d

Browse files
committed
do not throw exception when config file not exist
Signed-off-by: Jing Quanqi <jqq@dream.cn>
1 parent 18e1696 commit 613f41d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'signing'
44

55
sourceCompatibility = 1.6
66
group = 'org.quanqi'
7-
version = "0.1.4-SNAPSHOT"
7+
version = "0.1.4"
88

99
repositories {
1010
mavenCentral()

src/main/groovy/org/quanqi/gradle/signing/AndroidApplicationSigning.groovy

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,20 @@ class AndroidApplicationSigning implements Plugin<Project> {
2929
void apply(Project project) {
3030
project.extensions.create("key_store", AndroidApplicationSigningExtension.class)
3131

32-
if (project.hasProperty("${project.key_store.store}")) {
33-
34-
}
35-
3632
if (!project.plugins.findPlugin("com.android.application") && !project.plugins.findPlugin("android")) {
3733
throw new ProjectConfigurationException("The android plugin must be applied to the project", null)
3834
}
3935

40-
def keysXmlFile = null
36+
def keysXmlFile
4137
if (project.hasProperty(KEY_ANDROID_KEY_STORE_CONFIG)) {
4238
keysXmlFile = new File(KEY_ANDROID_KEY_STORE_CONFIG)
4339
} else {
4440
keysXmlFile = new File(System.getProperty('user.home'), '.android_key_store.xml')
4541
}
4642

4743
if (!keysXmlFile.exists()) {
48-
println("signing configration not")
44+
println("Signing config file not exist.")
45+
return
4946
}
5047

5148
def slurper = new XmlSlurper();

0 commit comments

Comments
 (0)