質問編集履歴

1

build gradleの中身を追加しました

2018/06/15 08:49

投稿

bokubo
bokubo

スコア7

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,47 @@
16
16
 
17
17
 
18
18
 
19
- app/build_gradleの下記version部分もあってるのかなと疑問です。
19
+ app/build_gradle
20
+
21
+ ”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
22
+
23
+ buildscript {
24
+
25
+ repositories {
26
+
27
+ maven { url 'https://maven.fabric.io/public' }
28
+
29
+ }
30
+
31
+
32
+
33
+ dependencies {
34
+
35
+ classpath 'io.fabric.tools:gradle:1.+'
36
+
37
+ }
38
+
39
+ }
40
+
41
+ apply plugin: 'com.android.application'
42
+
43
+ apply plugin: 'io.fabric'
44
+
45
+ apply plugin: 'me.tatarka.retrolambda'
46
+
47
+
48
+
49
+ repositories {
50
+
51
+ maven { url 'https://maven.fabric.io/public' }
52
+
53
+ }
54
+
55
+
56
+
57
+ def APPNAME = "省略"
58
+
59
+
20
60
 
21
61
  android {
22
62
 
@@ -38,22 +78,232 @@
38
78
 
39
79
  ndk {
40
80
 
41
- 省略
81
+ abiFilters 'x86', 'armeabi-v7a'
42
-
82
+
43
- }
83
+ }
44
-
84
+
45
- }
85
+ }
86
+
46
-
87
+ flavorDimensions "service"
88
+
89
+
90
+
47
-
91
+ externalNativeBuild {
92
+
48
-
93
+ cmake {
94
+
49
-
95
+ path 'CMakeLists.txt'
96
+
50
-
97
+ }
98
+
51
-
99
+ }
100
+
101
+
102
+
103
+ dataBinding {
104
+
105
+ enabled = true
106
+
107
+ }
108
+
109
+
110
+
111
+ compileOptions {
112
+
113
+ sourceCompatibility JavaVersion.VERSION_1_8
114
+
115
+ targetCompatibility JavaVersion.VERSION_1_8
116
+
117
+ }
118
+
119
+
120
+
121
+ buildTypes {
122
+
123
+ debug {
124
+
125
+ applicationIdSuffix ".debug"
126
+
127
+ buildConfigField 'boolean', 'DEBUG_UI', 'true'
128
+
129
+ buildConfigField 'String', 'BASE_URL', '省略'
130
+
131
+ buildConfigField 'String', 'BASE_URL_CONTENTS', '省略'
132
+
133
+ }
134
+
135
+
136
+
137
+ release {
138
+
139
+ minifyEnabled true
140
+
141
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
142
+
143
+ buildConfigField 'boolean', 'DEBUG_UI', 'false'
144
+
145
+ buildConfigField 'String', 'BASE_URL', '省略'
146
+
147
+ buildConfigField 'String', 'BASE_URL_CONTENTS', '省略'
148
+
149
+ }
150
+
151
+ }
152
+
153
+ productFlavors {
154
+
155
+ treasurebox {
156
+
157
+ applicationId '省略'
158
+
159
+ manifestPlaceholders = [appName: "${APPNAME}"]
160
+
161
+ buildConfigField 'String', 'APP_ID', '\"zLeYTK8S5kJC5bjT\"'
162
+
163
+ versionCode 13
164
+
165
+ versionName '20180412'
166
+
167
+ dimension "service"
168
+
169
+ }
170
+
171
+
172
+
173
+ wiz {
174
+
175
+ applicationId '省略'
176
+
177
+ manifestPlaceholders = [appName: "${APPNAME} Wiz"]
178
+
179
+ buildConfigField 'String', 'APP_ID', '\"1NzcfgEBTZ2sKG1M\"'
180
+
181
+ versionCode 13
182
+
183
+ versionName "1.3.4"
184
+
185
+ dimension "service"
186
+
187
+ }
188
+
189
+ }
190
+
191
+
192
+
193
+ useLibrary 'org.apache.http.legacy'
194
+
195
+
196
+
197
+ applicationVariants.all { variant ->
198
+
199
+ if (variant.buildType.name.equals("release")) {
200
+
201
+ variant.outputs.all { output ->
202
+
203
+ if (output.outputFile != null && output.outputFile.name.endsWith('.apk')) {
204
+
205
+ // Rename APK
206
+
207
+ def appName = "app"
208
+
209
+ def versionCode = versionCode
210
+
211
+ def versionName = versionName
212
+
213
+ def newName = "${appName}_r${versionCode}_v${versionName}.apk"
214
+
215
+ outputFileName = newName
216
+
217
+ }
218
+
219
+ }
220
+
221
+ }
222
+
223
+ }
224
+
225
+ }
226
+
227
+
228
+
229
+ dependencies {
230
+
231
+ compile fileTree(include: ['*.jar'], dir: 'libs')
232
+
233
+ compile 'com.android.support:recyclerview-v7:25.3.1'
234
+
235
+ compile 'com.squareup.retrofit2:retrofit:2.2.0'
236
+
237
+ compile 'com.squareup.retrofit2:converter-gson:2.2.0'
238
+
239
+ compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
240
+
241
+ compile 'com.squareup.okhttp3:logging-interceptor:3.6.0'
242
+
243
+ compile 'com.google.code.gson:gson:2.7'
244
+
245
+ compile 'com.squareup.picasso:picasso:2.5.2'
246
+
247
+ compile 'com.facebook.stetho:stetho:1.3.1'
248
+
249
+ compile 'com.facebook.stetho:stetho-okhttp3:1.3.1'
250
+
251
+
252
+
253
+ compile 'io.reactivex.rxjava2:rxjava:2.0.5'
254
+
255
+ compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
256
+
257
+
258
+
259
+ compile 'com.airbnb.android:lottie:2.0.0-beta4'
260
+
261
+
262
+
263
+ compile 'uk.co.chrisjenx:calligraphy:2.2.0'
264
+
265
+ compile 'com.jakewharton.threetenabp:threetenabp:1.0.5'
266
+
267
+ compile 'com.jakewharton.timber:timber:4.5.1'
268
+
269
+ compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
270
+
271
+ transitive = true;
272
+
273
+ }
274
+
275
+ compile 'io.intercom.android:intercom-sdk-base:3.+'
276
+
277
+ compile 'io.intercom.android:intercom-sdk-fcm:3.+'
278
+
279
+ compile 'org.apache.commons:commons-lang3:3.5'
280
+
281
+ testCompile 'junit:junit:4.12'
282
+
283
+ androidTestCompile 'com.android.support:support-annotations:25.3.1'
284
+
285
+ androidTestCompile 'com.android.support.test:runner:0.5'
286
+
287
+ }
288
+
289
+ ”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+ ”””””””””””””””””””””””””
52
298
 
53
299
  gradle version 4.1
54
300
 
55
301
  プラグイン version 3.0.1 
56
302
 
303
+ ”””””””””””””””””””””””””
304
+
305
+
306
+
57
307
 
58
308
 
59
309