File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,7 @@ android {
11
11
versionName " 1.0"
12
12
}
13
13
signingConfigs {
14
- def generateIfEmpty = {
15
- def properties = new File (project. projectDir. getAbsolutePath(), " gradle.properties" )
16
- if (! properties. exists()) {
17
- properties << new File (properties. getAbsolutePath() + " .example" ). readBytes()
18
- }
19
- }
20
14
release {
21
- generateIfEmpty()
22
15
storeFile file(project. properties. storeFile)
23
16
storePassword project. properties. storePassword
24
17
keyAlias project. properties. storeAlias
Original file line number Diff line number Diff line change @@ -13,3 +13,12 @@ allprojects {
13
13
mavenCentral()
14
14
}
15
15
}
16
+
17
+ def generateIfEmpty = { projectPath ->
18
+ def properties = new File (projectPath, " gradle.properties" )
19
+ if (! properties. exists()) {
20
+ properties << new File (properties. getAbsolutePath() + " .example" ). readBytes()
21
+ }
22
+ }
23
+ generateIfEmpty(' ./StudyplusAndroidSDK' )
24
+ generateIfEmpty(' ./SDKExample' )
You can’t perform that action at this time.
0 commit comments