@@ -62,10 +62,6 @@ const ksPath = temp.path({ prefix: "ksPath" });
62
62
const expectedInfoLoggingArgs = [ "--quiet" ] ;
63
63
const expectedTraceLoggingArgs = [ "--stacktrace" , "--debug" ] ;
64
64
const expectedDebugBuildArgs = [
65
- "-PcompileSdk=android-28" ,
66
- "-PtargetSdk=26" ,
67
- "-PbuildToolsVersion=my-build-tools-version" ,
68
- "-PgenerateTypings=true" ,
69
65
"-PappPath=/path/to/projectDir/app" . replace ( / \/ / g, path . sep ) ,
70
66
"-PappResourcesPath=/path/to/projectDir/app/App_Resources" . replace (
71
67
/ \/ / g,
@@ -124,35 +120,31 @@ describe("GradleBuildArgsService", () => {
124
120
. concat ( expectedReleaseBuildArgs ) ,
125
121
} ,
126
122
{
127
- name :
128
- "should return correct args for debug build with info log and android bundle" ,
123
+ name : "should return correct args for debug build with info log and android bundle" ,
129
124
buildConfig : { release : false , androidBundle : true } ,
130
125
logLevel : "INFO" ,
131
126
expectedResult : [ "bundleDebug" ]
132
127
. concat ( expectedInfoLoggingArgs )
133
128
. concat ( expectedDebugBuildArgs ) ,
134
129
} ,
135
130
{
136
- name :
137
- "should return correct args for debug build with trace log and android bundle" ,
131
+ name : "should return correct args for debug build with trace log and android bundle" ,
138
132
buildConfig : { release : false , androidBundle : true } ,
139
133
logLevel : "TRACE" ,
140
134
expectedResult : [ "bundleDebug" ]
141
135
. concat ( expectedTraceLoggingArgs )
142
136
. concat ( expectedDebugBuildArgs ) ,
143
137
} ,
144
138
{
145
- name :
146
- "should return correct args for release build with info log and android bundle" ,
139
+ name : "should return correct args for release build with info log and android bundle" ,
147
140
buildConfig : { ...releaseBuildConfig , androidBundle : true } ,
148
141
logLevel : "INFO" ,
149
142
expectedResult : [ "bundleRelease" ]
150
143
. concat ( expectedInfoLoggingArgs )
151
144
. concat ( expectedReleaseBuildArgs ) ,
152
145
} ,
153
146
{
154
- name :
155
- "should return correct args for release build with trace log and android bundle" ,
147
+ name : "should return correct args for release build with trace log and android bundle" ,
156
148
buildConfig : { ...releaseBuildConfig , androidBundle : true } ,
157
149
logLevel : "TRACE" ,
158
150
expectedResult : [ "bundleRelease" ]
@@ -189,53 +181,47 @@ describe("GradleBuildArgsService", () => {
189
181
. concat ( expectedDebugBuildArgs ) ,
190
182
} ,
191
183
{
192
- name :
193
- "should return correct args for release clean build with info log" ,
184
+ name : "should return correct args for release clean build with info log" ,
194
185
buildConfig : releaseBuildConfig ,
195
186
logLevel : "INFO" ,
196
187
expectedResult : [ "clean" ]
197
188
. concat ( expectedInfoLoggingArgs )
198
189
. concat ( expectedReleaseBuildArgs ) ,
199
190
} ,
200
191
{
201
- name :
202
- "should return correct args for release clean build with trace log" ,
192
+ name : "should return correct args for release clean build with trace log" ,
203
193
buildConfig : releaseBuildConfig ,
204
194
logLevel : "TRACE" ,
205
195
expectedResult : [ "clean" ]
206
196
. concat ( expectedTraceLoggingArgs )
207
197
. concat ( expectedReleaseBuildArgs ) ,
208
198
} ,
209
199
{
210
- name :
211
- "should return correct args for debug clean build with info log and android bundle" ,
200
+ name : "should return correct args for debug clean build with info log and android bundle" ,
212
201
buildConfig : { release : false , androidBundle : true } ,
213
202
logLevel : "INFO" ,
214
203
expectedResult : [ "clean" ]
215
204
. concat ( expectedInfoLoggingArgs )
216
205
. concat ( expectedDebugBuildArgs ) ,
217
206
} ,
218
207
{
219
- name :
220
- "should return correct args for debug clean build with trace log and android bundle" ,
208
+ name : "should return correct args for debug clean build with trace log and android bundle" ,
221
209
buildConfig : { release : false , androidBundle : true } ,
222
210
logLevel : "TRACE" ,
223
211
expectedResult : [ "clean" ]
224
212
. concat ( expectedTraceLoggingArgs )
225
213
. concat ( expectedDebugBuildArgs ) ,
226
214
} ,
227
215
{
228
- name :
229
- "should return correct args for release clean build with info log and android bundle" ,
216
+ name : "should return correct args for release clean build with info log and android bundle" ,
230
217
buildConfig : { ...releaseBuildConfig , androidBundle : true } ,
231
218
logLevel : "INFO" ,
232
219
expectedResult : [ "clean" ]
233
220
. concat ( expectedInfoLoggingArgs )
234
221
. concat ( expectedReleaseBuildArgs ) ,
235
222
} ,
236
223
{
237
- name :
238
- "should return correct args for release clean build with trace log and android bundle" ,
224
+ name : "should return correct args for release clean build with trace log and android bundle" ,
239
225
buildConfig : { ...releaseBuildConfig , androidBundle : true } ,
240
226
logLevel : "TRACE" ,
241
227
expectedResult : [ "clean" ]
0 commit comments