@@ -13,65 +13,65 @@ allprojects {
13
13
repositories {
14
14
google()
15
15
jcenter()
16
- {%- for repo in args. gradle_repositories % }
17
- {{repo}}
18
- {%- endfor % }
19
- flatDir {
20
- dirs ' libs'
21
- }
16
+ {%- for repo in args. gradle_repositories % }
17
+ {{repo}}
18
+ {%- endfor % }
19
+ flatDir {
20
+ dirs ' libs'
21
+ }
22
22
}
23
23
}
24
24
25
25
apply plugin : ' com.android.application'
26
26
27
27
android {
28
- compileSdkVersion {{ android_api }}
29
- buildToolsVersion ' {{ build_tools_version }}'
30
- defaultConfig {
31
- minSdkVersion {{ args. min_sdk_version }}
32
- targetSdkVersion {{ android_api }}
33
- versionCode {{ args. numeric_version }}
34
- versionName ' {{ args.version }}'
35
- }
28
+ compileSdkVersion {{ android_api }}
29
+ buildToolsVersion ' {{ build_tools_version }}'
30
+ defaultConfig {
31
+ minSdkVersion {{ args. min_sdk_version }}
32
+ targetSdkVersion {{ android_api }}
33
+ versionCode {{ args. numeric_version }}
34
+ versionName ' {{ args.version }}'
35
+ }
36
36
37
- {% if args. sign -% }
38
- signingConfigs {
39
- release {
40
- storeFile file(System . getenv(" P4A_RELEASE_KEYSTORE" ))
41
- keyAlias System . getenv(" P4A_RELEASE_KEYALIAS" )
42
- storePassword System . getenv(" P4A_RELEASE_KEYSTORE_PASSWD" )
43
- keyPassword System . getenv(" P4A_RELEASE_KEYALIAS_PASSWD" )
44
- }
45
- }
37
+ {% if args. sign -% }
38
+ signingConfigs {
39
+ release {
40
+ storeFile file(System . getenv(" P4A_RELEASE_KEYSTORE" ))
41
+ keyAlias System . getenv(" P4A_RELEASE_KEYALIAS" )
42
+ storePassword System . getenv(" P4A_RELEASE_KEYSTORE_PASSWD" )
43
+ keyPassword System . getenv(" P4A_RELEASE_KEYALIAS_PASSWD" )
44
+ }
45
+ }
46
46
{%- endif % }
47
47
48
- {% if args. packaging_options -% }
48
+ {% if args. packaging_options -% }
49
49
packagingOptions {
50
- {%- for option in args. packaging_options % }
50
+ {%- for option in args. packaging_options % }
51
51
{{option}}
52
- {%- endfor % }
52
+ {%- endfor % }
53
53
}
54
- {%- endif % }
54
+ {%- endif % }
55
55
56
- buildTypes {
57
- debug {
58
- }
59
- release {
60
- {% if args. sign -% }
61
- signingConfig signingConfigs. release
62
- {%- endif % }
63
- }
64
- }
56
+ buildTypes {
57
+ debug {
58
+ }
59
+ release {
60
+ {% if args. sign -% }
61
+ signingConfig signingConfigs. release
62
+ {%- endif % }
63
+ }
64
+ }
65
65
66
66
compileOptions {
67
67
sourceCompatibility JavaVersion . VERSION_1_7
68
68
targetCompatibility JavaVersion . VERSION_1_7
69
- {%- for compat in args. java_source_compat % }
69
+ {%- for compat in args. java_source_compat % }
70
70
sourceCompatibility {{compat}}
71
- {%- endfor % }
72
- {%- for compat in args. java_target_compat % }
71
+ {%- endfor % }
72
+ {%- for compat in args. java_target_compat % }
73
73
targetCompatibility {{compat}}
74
- {%- endfor % }
74
+ {%- endfor % }
75
75
}
76
76
77
77
sourceSets {
@@ -83,15 +83,15 @@ android {
83
83
}
84
84
85
85
dependencies {
86
- {%- for aar in aars % }
87
- compile(name : ' {{ aar }}' , ext : ' aar' )
88
- {%- endfor -% }
89
- {%- for jar in jars % }
90
- compile files(' src/main/libs/{{ jar }}' )
91
- {%- endfor -% }
92
- {%- if args. depends -% }
93
- {%- for depend in args. depends % }
94
- compile ' {{ depend }}'
95
- {%- endfor % }
96
- {%- endif % }
86
+ {%- for aar in aars % }
87
+ compile(name : ' {{ aar }}' , ext : ' aar' )
88
+ {%- endfor -% }
89
+ {%- for jar in jars % }
90
+ compile files(' src/main/libs/{{ jar }}' )
91
+ {%- endfor -% }
92
+ {%- if args. depends -% }
93
+ {%- for depend in args. depends % }
94
+ compile ' {{ depend }}'
95
+ {%- endfor % }
96
+ {%- endif % }
97
97
}
0 commit comments