@sddsjs/design-system-builder-cli 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -0
- package/README.md +969 -2
- package/bin/dsbuilder.js +2 -0
- package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
- package/dist/kotlin/Stately-stately-concurrency.js +32 -0
- package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
- package/dist/kotlin/Stately-stately-strict.js +12 -0
- package/dist/kotlin/clikt-clikt-mordant.js +304 -0
- package/dist/kotlin/clikt-clikt.js +6960 -0
- package/dist/kotlin/colormath-root-colormath.js +1653 -0
- package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
- package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
- package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
- package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
- package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
- package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
- package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
- package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
- package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
- package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
- package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
- package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
- package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
- package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
- package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
- package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
- package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
- package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
- package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
- package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
- package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
- package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
- package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
- package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
- package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
- package/dist/kotlin/kotlin-logging.js +440 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
- package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/dist/kotlin/kotlinx-atomicfu.js +252 -0
- package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
- package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
- package/dist/kotlin/ktor-ktor-events.js +80 -0
- package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
- package/dist/kotlin/ktor-ktor-http.js +3320 -0
- package/dist/kotlin/ktor-ktor-io.js +3328 -0
- package/dist/kotlin/ktor-ktor-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-server-core.js +12 -0
- package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
- package/dist/kotlin/ktor-ktor-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-utils.js +2524 -0
- package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-websockets.js +433 -0
- package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
- package/dist/kotlin/mordant-mordant.js +12111 -0
- package/dist/kotlin/okio-parent-okio.js +2335 -0
- package/dist/kotlin/projects-core-koin-core.js +1285 -0
- package/package.json +26 -5
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_design_system_builder_frontend_core_platform, kotlin_design_system_builder_frontend_core_domain, kotlin_design_system_builder_frontend_core_process, kotlin_io_insert_koin_koin_core, kotlin_design_system_builder_frontend_core_workspace) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var to = kotlin_kotlin.$_$.cm;
|
|
5
|
+
var THROW_CCE = kotlin_kotlin.$_$.wk;
|
|
6
|
+
var KtMap = kotlin_kotlin.$_$.h6;
|
|
7
|
+
var isInterface = kotlin_kotlin.$_$.fe;
|
|
8
|
+
var Unsupported = kotlin_design_system_builder_frontend_core_platform.$_$.e;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
10
|
+
var Capability_THEME_getInstance = kotlin_design_system_builder_frontend_core_platform.$_$.y;
|
|
11
|
+
var TargetPlatform_COMPOSE_getInstance = kotlin_design_system_builder_frontend_core_domain.$_$.o;
|
|
12
|
+
var listOf = kotlin_kotlin.$_$.e9;
|
|
13
|
+
var TargetPlatform_ANDROID_VIEW_getInstance = kotlin_design_system_builder_frontend_core_domain.$_$.n;
|
|
14
|
+
var Capability_COMPONENTS_getInstance = kotlin_design_system_builder_frontend_core_platform.$_$.v;
|
|
15
|
+
var Capability_DOCS_AGGREGATE_getInstance = kotlin_design_system_builder_frontend_core_platform.$_$.x;
|
|
16
|
+
var Capability_DESIGN_SYSTEM_getInstance = kotlin_design_system_builder_frontend_core_platform.$_$.w;
|
|
17
|
+
var listOf_0 = kotlin_kotlin.$_$.f9;
|
|
18
|
+
var mapOf = kotlin_kotlin.$_$.i9;
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
20
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.rd;
|
|
21
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tb;
|
|
22
|
+
var Missing = kotlin_design_system_builder_frontend_core_platform.$_$.r;
|
|
23
|
+
var Collection = kotlin_kotlin.$_$.a6;
|
|
24
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.db;
|
|
25
|
+
var joinToString = kotlin_kotlin.$_$.r8;
|
|
26
|
+
var Ready = kotlin_design_system_builder_frontend_core_platform.$_$.s;
|
|
27
|
+
var ProcessLaunchException = kotlin_design_system_builder_frontend_core_process.$_$.a;
|
|
28
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.sd;
|
|
29
|
+
var plus = kotlin_kotlin.$_$.t9;
|
|
30
|
+
var ProcessRequest = kotlin_design_system_builder_frontend_core_process.$_$.b;
|
|
31
|
+
var Failed = kotlin_design_system_builder_frontend_core_platform.$_$.c;
|
|
32
|
+
var Completed = kotlin_design_system_builder_frontend_core_platform.$_$.b;
|
|
33
|
+
var ToolchainMissing = kotlin_design_system_builder_frontend_core_platform.$_$.d;
|
|
34
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
35
|
+
var _ToolchainId___init__impl__eu7bv9 = kotlin_design_system_builder_frontend_core_platform.$_$.z;
|
|
36
|
+
var setOf = kotlin_kotlin.$_$.z9;
|
|
37
|
+
var getValue = kotlin_kotlin.$_$.l8;
|
|
38
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
39
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
|
|
40
|
+
var contains = kotlin_kotlin.$_$.sg;
|
|
41
|
+
var module_0 = kotlin_io_insert_koin_koin_core.$_$.g;
|
|
42
|
+
var Companion_getInstance = kotlin_io_insert_koin_koin_core.$_$.b;
|
|
43
|
+
var Kind_Singleton_getInstance = kotlin_io_insert_koin_koin_core.$_$.a;
|
|
44
|
+
var emptyList = kotlin_kotlin.$_$.y7;
|
|
45
|
+
var getKClass = kotlin_kotlin.$_$.qf;
|
|
46
|
+
var BeanDefinition = kotlin_io_insert_koin_koin_core.$_$.c;
|
|
47
|
+
var SingleInstanceFactory = kotlin_io_insert_koin_koin_core.$_$.e;
|
|
48
|
+
var KoinDefinition = kotlin_io_insert_koin_koin_core.$_$.d;
|
|
49
|
+
var ProcessRunner = kotlin_design_system_builder_frontend_core_process.$_$.d;
|
|
50
|
+
var WorkspaceFileSystem = kotlin_design_system_builder_frontend_core_workspace.$_$.i;
|
|
51
|
+
//endregion
|
|
52
|
+
//region block: pre-declaration
|
|
53
|
+
initMetadataForCompanion(Companion);
|
|
54
|
+
initMetadataForCoroutine($doctorCOROUTINE$, CoroutineImpl);
|
|
55
|
+
initMetadataForCoroutine($runGradleTasksCOROUTINE$, CoroutineImpl);
|
|
56
|
+
initMetadataForCoroutine($helpTaskSucceedsCOROUTINE$, CoroutineImpl);
|
|
57
|
+
initMetadataForClass(AndroidGradleDelegate, 'AndroidGradleDelegate', VOID, VOID, VOID, [2, 1, 4, 3]);
|
|
58
|
+
initMetadataForClass(AndroidGradleLocator, 'AndroidGradleLocator');
|
|
59
|
+
//endregion
|
|
60
|
+
function unsupportedResult($this, invocation) {
|
|
61
|
+
var tmp;
|
|
62
|
+
if (!(invocation.v66_1 == null)) {
|
|
63
|
+
tmp = new Unsupported("Android output location is configured in the module's build.gradle.kts (dsBuilder.theme/components.outputLocation), not via --output.");
|
|
64
|
+
} else {
|
|
65
|
+
var tmp0 = Companion_getInstance_0().qbm_1;
|
|
66
|
+
// Inline function 'kotlin.collections.contains' call
|
|
67
|
+
// Inline function 'kotlin.collections.containsKey' call
|
|
68
|
+
var key = to(invocation.s66_1, invocation.t66_1);
|
|
69
|
+
if (!(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).a2(key)) {
|
|
70
|
+
tmp = new Unsupported("Toolchain 'android' does not support " + invocation.s66_1.v65_1 + ' ' + ("for platform '" + invocation.t66_1.m5p_1 + "'."));
|
|
71
|
+
} else {
|
|
72
|
+
tmp = null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return tmp;
|
|
76
|
+
}
|
|
77
|
+
function runGradleTasks($this, gradlew, workspace, tasks, passthrough, $completion) {
|
|
78
|
+
var tmp = new $runGradleTasksCOROUTINE$($this, gradlew, workspace, tasks, passthrough, $completion);
|
|
79
|
+
tmp.y8_1 = Unit_instance;
|
|
80
|
+
tmp.z8_1 = null;
|
|
81
|
+
return tmp.e9();
|
|
82
|
+
}
|
|
83
|
+
function helpTaskSucceeds($this, gradlew, workspace, task, $completion) {
|
|
84
|
+
var tmp = new $helpTaskSucceedsCOROUTINE$($this, gradlew, workspace, task, $completion);
|
|
85
|
+
tmp.y8_1 = Unit_instance;
|
|
86
|
+
tmp.z8_1 = null;
|
|
87
|
+
return tmp.e9();
|
|
88
|
+
}
|
|
89
|
+
function missingHint($this, workspace, toolOverride) {
|
|
90
|
+
var tmp;
|
|
91
|
+
if (!(toolOverride == null)) {
|
|
92
|
+
tmp = 'gradlew was not found at ' + toolOverride + ', the path given by --tool.';
|
|
93
|
+
} else {
|
|
94
|
+
tmp = 'gradlew was not found ascending from ' + workspace.n66_1 + '. ' + 'Make sure the workspace is inside a Gradle project, or pass --tool <path to gradlew>.';
|
|
95
|
+
}
|
|
96
|
+
return tmp;
|
|
97
|
+
}
|
|
98
|
+
function Companion() {
|
|
99
|
+
Companion_instance = this;
|
|
100
|
+
this.qbm_1 = mapOf([to(to(Capability_THEME_getInstance(), TargetPlatform_COMPOSE_getInstance()), listOf('generateComposeTheme')), to(to(Capability_THEME_getInstance(), TargetPlatform_ANDROID_VIEW_getInstance()), listOf('generateViewTheme')), to(to(Capability_COMPONENTS_getInstance(), TargetPlatform_COMPOSE_getInstance()), listOf('generateComposeComponents')), to(to(Capability_COMPONENTS_getInstance(), TargetPlatform_ANDROID_VIEW_getInstance()), listOf('generateViewComponents')), to(to(Capability_DOCS_AGGREGATE_getInstance(), TargetPlatform_COMPOSE_getInstance()), listOf('aggregateComposeDocumentation')), to(to(Capability_DOCS_AGGREGATE_getInstance(), TargetPlatform_ANDROID_VIEW_getInstance()), listOf('aggregateViewDocumentation')), to(to(Capability_DESIGN_SYSTEM_getInstance(), TargetPlatform_COMPOSE_getInstance()), listOf_0(['generateComposeTheme', 'generateComposeComponents'])), to(to(Capability_DESIGN_SYSTEM_getInstance(), TargetPlatform_ANDROID_VIEW_getInstance()), listOf_0(['generateViewTheme', 'generateViewComponents']))]);
|
|
101
|
+
this.rbm_1 = listOf_0(['generateComposeTheme', 'generateViewTheme']);
|
|
102
|
+
}
|
|
103
|
+
var Companion_instance;
|
|
104
|
+
function Companion_getInstance_0() {
|
|
105
|
+
if (Companion_instance == null)
|
|
106
|
+
new Companion();
|
|
107
|
+
return Companion_instance;
|
|
108
|
+
}
|
|
109
|
+
function $doctorCOROUTINE$(_this__u8e3s4, workspace, toolOverride, resultContinuation) {
|
|
110
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
111
|
+
this.abo_1 = _this__u8e3s4;
|
|
112
|
+
this.bbo_1 = workspace;
|
|
113
|
+
this.cbo_1 = toolOverride;
|
|
114
|
+
}
|
|
115
|
+
protoOf($doctorCOROUTINE$).e9 = function () {
|
|
116
|
+
var suspendResult = this.y8_1;
|
|
117
|
+
$sm: do
|
|
118
|
+
try {
|
|
119
|
+
var tmp = this.w8_1;
|
|
120
|
+
switch (tmp) {
|
|
121
|
+
case 0:
|
|
122
|
+
this.x8_1 = 9;
|
|
123
|
+
var tmp_0 = this;
|
|
124
|
+
var tmp0_elvis_lhs = this.abo_1.kbo_1.pbo(this.bbo_1.n66_1, this.cbo_1);
|
|
125
|
+
var tmp_1;
|
|
126
|
+
if (tmp0_elvis_lhs == null) {
|
|
127
|
+
return new Missing(missingHint(this.abo_1, this.bbo_1, this.cbo_1));
|
|
128
|
+
} else {
|
|
129
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
tmp_0.ebo_1 = tmp_1;
|
|
133
|
+
this.x8_1 = 8;
|
|
134
|
+
var tmp_2 = this;
|
|
135
|
+
tmp_2.ibo_1 = Companion_getInstance_0().rbm_1;
|
|
136
|
+
this.w8_1 = 1;
|
|
137
|
+
continue $sm;
|
|
138
|
+
case 1:
|
|
139
|
+
this.hbo_1 = this.ibo_1;
|
|
140
|
+
var tmp_3;
|
|
141
|
+
var tmp_4 = this.hbo_1;
|
|
142
|
+
if (isInterface(tmp_4, Collection)) {
|
|
143
|
+
tmp_3 = this.hbo_1.r();
|
|
144
|
+
} else {
|
|
145
|
+
tmp_3 = false;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (tmp_3) {
|
|
149
|
+
this.fbo_1 = false;
|
|
150
|
+
this.w8_1 = 7;
|
|
151
|
+
continue $sm;
|
|
152
|
+
} else {
|
|
153
|
+
this.w8_1 = 2;
|
|
154
|
+
continue $sm;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
case 2:
|
|
158
|
+
this.gbo_1 = this.hbo_1.l();
|
|
159
|
+
this.w8_1 = 3;
|
|
160
|
+
continue $sm;
|
|
161
|
+
case 3:
|
|
162
|
+
if (!this.gbo_1.m()) {
|
|
163
|
+
this.w8_1 = 6;
|
|
164
|
+
continue $sm;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
var element = this.gbo_1.n();
|
|
168
|
+
this.w8_1 = 4;
|
|
169
|
+
suspendResult = helpTaskSucceeds(this.abo_1, this.ebo_1, this.bbo_1, element, this);
|
|
170
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
171
|
+
return suspendResult;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
continue $sm;
|
|
175
|
+
case 4:
|
|
176
|
+
if (suspendResult) {
|
|
177
|
+
this.fbo_1 = true;
|
|
178
|
+
this.w8_1 = 7;
|
|
179
|
+
continue $sm;
|
|
180
|
+
} else {
|
|
181
|
+
this.w8_1 = 5;
|
|
182
|
+
continue $sm;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
case 5:
|
|
186
|
+
this.w8_1 = 3;
|
|
187
|
+
continue $sm;
|
|
188
|
+
case 6:
|
|
189
|
+
this.fbo_1 = false;
|
|
190
|
+
if (false) {
|
|
191
|
+
this.w8_1 = 1;
|
|
192
|
+
continue $sm;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
this.w8_1 = 7;
|
|
196
|
+
continue $sm;
|
|
197
|
+
case 7:
|
|
198
|
+
var ready = this.fbo_1;
|
|
199
|
+
var tmp_5 = this;
|
|
200
|
+
var tmp_6;
|
|
201
|
+
if (ready) {
|
|
202
|
+
tmp_6 = new Ready(this.ebo_1, '');
|
|
203
|
+
} else {
|
|
204
|
+
tmp_6 = new Missing(this.ebo_1 + ' does not recognize ' + joinToString(Companion_getInstance_0().rbm_1, ' or ') + ' in ' + (this.bbo_1.n66_1 + '. Apply the dsBuilder Gradle plugin (plasma-android) and ') + 'configure at least one target platform.');
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
tmp_5.dbo_1 = tmp_6;
|
|
208
|
+
this.x8_1 = 9;
|
|
209
|
+
this.w8_1 = 10;
|
|
210
|
+
continue $sm;
|
|
211
|
+
case 8:
|
|
212
|
+
this.x8_1 = 9;
|
|
213
|
+
var tmp_7 = this.z8_1;
|
|
214
|
+
if (tmp_7 instanceof ProcessLaunchException) {
|
|
215
|
+
var error = this.z8_1;
|
|
216
|
+
var tmp_8 = this;
|
|
217
|
+
tmp_8.dbo_1 = new Missing(this.ebo_1 + ' cannot be started: ' + error.message);
|
|
218
|
+
this.w8_1 = 10;
|
|
219
|
+
continue $sm;
|
|
220
|
+
} else {
|
|
221
|
+
throw this.z8_1;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
case 9:
|
|
225
|
+
throw this.z8_1;
|
|
226
|
+
case 10:
|
|
227
|
+
this.x8_1 = 9;
|
|
228
|
+
return this.dbo_1;
|
|
229
|
+
}
|
|
230
|
+
} catch ($p) {
|
|
231
|
+
var e = $p;
|
|
232
|
+
if (this.x8_1 === 9) {
|
|
233
|
+
throw e;
|
|
234
|
+
} else {
|
|
235
|
+
this.w8_1 = this.x8_1;
|
|
236
|
+
this.z8_1 = e;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
while (true);
|
|
240
|
+
};
|
|
241
|
+
function $runGradleTasksCOROUTINE$(_this__u8e3s4, gradlew, workspace, tasks, passthrough, resultContinuation) {
|
|
242
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
243
|
+
this.abn_1 = _this__u8e3s4;
|
|
244
|
+
this.bbn_1 = gradlew;
|
|
245
|
+
this.cbn_1 = workspace;
|
|
246
|
+
this.dbn_1 = tasks;
|
|
247
|
+
this.ebn_1 = passthrough;
|
|
248
|
+
}
|
|
249
|
+
protoOf($runGradleTasksCOROUTINE$).e9 = function () {
|
|
250
|
+
var suspendResult = this.y8_1;
|
|
251
|
+
$sm: do
|
|
252
|
+
try {
|
|
253
|
+
var tmp = this.w8_1;
|
|
254
|
+
switch (tmp) {
|
|
255
|
+
case 0:
|
|
256
|
+
this.x8_1 = 3;
|
|
257
|
+
this.x8_1 = 2;
|
|
258
|
+
this.w8_1 = 1;
|
|
259
|
+
suspendResult = this.abn_1.jbo_1.j5o(new ProcessRequest(this.bbn_1, plus(plus(listOf_0(['-p', this.cbn_1.n66_1]), this.dbn_1), this.ebn_1), this.cbn_1.n66_1), this);
|
|
260
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
261
|
+
return suspendResult;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
continue $sm;
|
|
265
|
+
case 1:
|
|
266
|
+
var result = suspendResult;
|
|
267
|
+
var tmp_0 = this;
|
|
268
|
+
var tmp_1;
|
|
269
|
+
if (result.k5o_1 === 0) {
|
|
270
|
+
tmp_1 = new Completed(joinToString(this.dbn_1, ' ') + ' completed for ' + this.cbn_1.n66_1 + '.');
|
|
271
|
+
} else {
|
|
272
|
+
tmp_1 = new Failed(result.k5o_1, 'see the output of ' + this.bbn_1 + ' above');
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
tmp_0.fbn_1 = tmp_1;
|
|
276
|
+
this.x8_1 = 3;
|
|
277
|
+
this.w8_1 = 4;
|
|
278
|
+
continue $sm;
|
|
279
|
+
case 2:
|
|
280
|
+
this.x8_1 = 3;
|
|
281
|
+
var tmp_2 = this.z8_1;
|
|
282
|
+
if (tmp_2 instanceof ProcessLaunchException) {
|
|
283
|
+
var error = this.z8_1;
|
|
284
|
+
var tmp_3 = this;
|
|
285
|
+
tmp_3.fbn_1 = new ToolchainMissing(this.bbn_1 + ' cannot be started: ' + error.message);
|
|
286
|
+
this.w8_1 = 4;
|
|
287
|
+
continue $sm;
|
|
288
|
+
} else {
|
|
289
|
+
throw this.z8_1;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
case 3:
|
|
293
|
+
throw this.z8_1;
|
|
294
|
+
case 4:
|
|
295
|
+
this.x8_1 = 3;
|
|
296
|
+
return this.fbn_1;
|
|
297
|
+
}
|
|
298
|
+
} catch ($p) {
|
|
299
|
+
var e = $p;
|
|
300
|
+
if (this.x8_1 === 3) {
|
|
301
|
+
throw e;
|
|
302
|
+
} else {
|
|
303
|
+
this.w8_1 = this.x8_1;
|
|
304
|
+
this.z8_1 = e;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
while (true);
|
|
308
|
+
};
|
|
309
|
+
function $helpTaskSucceedsCOROUTINE$(_this__u8e3s4, gradlew, workspace, task, resultContinuation) {
|
|
310
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
311
|
+
this.obn_1 = _this__u8e3s4;
|
|
312
|
+
this.pbn_1 = gradlew;
|
|
313
|
+
this.qbn_1 = workspace;
|
|
314
|
+
this.rbn_1 = task;
|
|
315
|
+
}
|
|
316
|
+
protoOf($helpTaskSucceedsCOROUTINE$).e9 = function () {
|
|
317
|
+
var suspendResult = this.y8_1;
|
|
318
|
+
$sm: do
|
|
319
|
+
try {
|
|
320
|
+
var tmp = this.w8_1;
|
|
321
|
+
switch (tmp) {
|
|
322
|
+
case 0:
|
|
323
|
+
this.x8_1 = 2;
|
|
324
|
+
this.w8_1 = 1;
|
|
325
|
+
suspendResult = this.obn_1.jbo_1.j5o(new ProcessRequest(this.pbn_1, listOf_0(['-p', this.qbn_1.n66_1, 'help', '--task', this.rbn_1]), this.qbn_1.n66_1, VOID, false), this);
|
|
326
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
327
|
+
return suspendResult;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
continue $sm;
|
|
331
|
+
case 1:
|
|
332
|
+
var result = suspendResult;
|
|
333
|
+
return result.k5o_1 === 0;
|
|
334
|
+
case 2:
|
|
335
|
+
throw this.z8_1;
|
|
336
|
+
}
|
|
337
|
+
} catch ($p) {
|
|
338
|
+
var e = $p;
|
|
339
|
+
if (this.x8_1 === 2) {
|
|
340
|
+
throw e;
|
|
341
|
+
} else {
|
|
342
|
+
this.w8_1 = this.x8_1;
|
|
343
|
+
this.z8_1 = e;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
while (true);
|
|
347
|
+
};
|
|
348
|
+
function AndroidGradleDelegate(processRunner, locator) {
|
|
349
|
+
Companion_getInstance_0();
|
|
350
|
+
this.jbo_1 = processRunner;
|
|
351
|
+
this.kbo_1 = locator;
|
|
352
|
+
this.lbo_1 = _ToolchainId___init__impl__eu7bv9('android');
|
|
353
|
+
this.mbo_1 = setOf([TargetPlatform_COMPOSE_getInstance(), TargetPlatform_ANDROID_VIEW_getInstance()]);
|
|
354
|
+
this.nbo_1 = setOf([Capability_THEME_getInstance(), Capability_COMPONENTS_getInstance(), Capability_DOCS_AGGREGATE_getInstance(), Capability_DESIGN_SYSTEM_getInstance()]);
|
|
355
|
+
}
|
|
356
|
+
protoOf(AndroidGradleDelegate).t64 = function () {
|
|
357
|
+
return this.lbo_1;
|
|
358
|
+
};
|
|
359
|
+
protoOf(AndroidGradleDelegate).k66 = function () {
|
|
360
|
+
return this.mbo_1;
|
|
361
|
+
};
|
|
362
|
+
protoOf(AndroidGradleDelegate).w65 = function () {
|
|
363
|
+
return this.nbo_1;
|
|
364
|
+
};
|
|
365
|
+
protoOf(AndroidGradleDelegate).y65 = function (workspace, toolOverride, $completion) {
|
|
366
|
+
var tmp = new $doctorCOROUTINE$(this, workspace, toolOverride, $completion);
|
|
367
|
+
tmp.y8_1 = Unit_instance;
|
|
368
|
+
tmp.z8_1 = null;
|
|
369
|
+
return tmp.e9();
|
|
370
|
+
};
|
|
371
|
+
protoOf(AndroidGradleDelegate).c66 = function (invocation, $completion) {
|
|
372
|
+
var tmp0_safe_receiver = unsupportedResult(this, invocation);
|
|
373
|
+
if (tmp0_safe_receiver == null)
|
|
374
|
+
null;
|
|
375
|
+
else {
|
|
376
|
+
// Inline function 'kotlin.let' call
|
|
377
|
+
return tmp0_safe_receiver;
|
|
378
|
+
}
|
|
379
|
+
var tasks = getValue(Companion_getInstance_0().qbm_1, to(invocation.s66_1, invocation.t66_1));
|
|
380
|
+
var workspace = invocation.u66_1;
|
|
381
|
+
var tmp1_elvis_lhs = this.kbo_1.pbo(workspace.n66_1, invocation.x66_1);
|
|
382
|
+
var tmp;
|
|
383
|
+
if (tmp1_elvis_lhs == null) {
|
|
384
|
+
return new ToolchainMissing(missingHint(this, workspace, invocation.x66_1));
|
|
385
|
+
} else {
|
|
386
|
+
tmp = tmp1_elvis_lhs;
|
|
387
|
+
}
|
|
388
|
+
var gradlew = tmp;
|
|
389
|
+
return runGradleTasks(this, gradlew, workspace, tasks, invocation.w66_1, $completion);
|
|
390
|
+
};
|
|
391
|
+
function AndroidGradleLocator(fileSystem) {
|
|
392
|
+
this.obo_1 = fileSystem;
|
|
393
|
+
}
|
|
394
|
+
protoOf(AndroidGradleLocator).pbo = function (workspaceDir, override) {
|
|
395
|
+
if (!(override == null)) {
|
|
396
|
+
// Inline function 'kotlin.takeIf' call
|
|
397
|
+
var tmp;
|
|
398
|
+
if (this.obo_1.v4y(override)) {
|
|
399
|
+
tmp = override;
|
|
400
|
+
} else {
|
|
401
|
+
tmp = null;
|
|
402
|
+
}
|
|
403
|
+
return tmp;
|
|
404
|
+
}
|
|
405
|
+
var current = workspaceDir;
|
|
406
|
+
var executable = contains(workspaceDir, _Char___init__impl__6a9atx(92)) ? 'gradlew.bat' : 'gradlew';
|
|
407
|
+
while (!(current == null)) {
|
|
408
|
+
var candidate = this.obo_1.k4z(current, executable);
|
|
409
|
+
if (this.obo_1.v4y(candidate)) {
|
|
410
|
+
return candidate;
|
|
411
|
+
}
|
|
412
|
+
current = this.obo_1.s5n(current);
|
|
413
|
+
}
|
|
414
|
+
return null;
|
|
415
|
+
};
|
|
416
|
+
function androidPlatformModule() {
|
|
417
|
+
return module_0(VOID, androidPlatformModule$lambda);
|
|
418
|
+
}
|
|
419
|
+
function androidPlatformModule$lambda($this$module) {
|
|
420
|
+
// Inline function 'org.koin.core.module.Module.single' call
|
|
421
|
+
// Inline function 'org.koin.core.module._singleInstanceFactory' call
|
|
422
|
+
var definition = androidPlatformModule$lambda$lambda;
|
|
423
|
+
var scopeQualifier = Companion_getInstance().u56_1;
|
|
424
|
+
// Inline function 'org.koin.core.definition._createDefinition' call
|
|
425
|
+
var kind = Kind_Singleton_getInstance();
|
|
426
|
+
var secondaryTypes = emptyList();
|
|
427
|
+
var def = new BeanDefinition(scopeQualifier, getKClass(AndroidGradleDelegate), null, definition, kind, secondaryTypes);
|
|
428
|
+
var factory = new SingleInstanceFactory(def);
|
|
429
|
+
$this$module.k58(factory);
|
|
430
|
+
if (false || $this$module.e58_1) {
|
|
431
|
+
$this$module.m58(factory);
|
|
432
|
+
}
|
|
433
|
+
new KoinDefinition($this$module, factory);
|
|
434
|
+
return Unit_instance;
|
|
435
|
+
}
|
|
436
|
+
function androidPlatformModule$lambda$lambda($this$single, it) {
|
|
437
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
438
|
+
var tmp = $this$single.j59(getKClass(ProcessRunner), null, null);
|
|
439
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
440
|
+
var tmp$ret$1 = $this$single.j59(getKClass(WorkspaceFileSystem), null, null);
|
|
441
|
+
return new AndroidGradleDelegate(tmp, new AndroidGradleLocator(tmp$ret$1));
|
|
442
|
+
}
|
|
443
|
+
//region block: exports
|
|
444
|
+
_.$_$ = _.$_$ || {};
|
|
445
|
+
_.$_$.a = AndroidGradleDelegate;
|
|
446
|
+
_.$_$.b = androidPlatformModule;
|
|
447
|
+
//endregion
|
|
448
|
+
return _;
|
|
449
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./design-system-builder-frontend-core-platform.js'), require('./design-system-builder-frontend-core-domain.js'), require('./design-system-builder-frontend-core-process.js'), require('./projects-core-koin-core.js'), require('./design-system-builder-frontend-core-workspace.js')));
|
|
450
|
+
|
|
451
|
+
//# sourceMappingURL=design-system-builder-frontend-platform-android.js.map
|