create-ait-cmp-app 0.0.0-stage → 1.0.0-alpha01

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.
Files changed (55) hide show
  1. package/README.md +31 -2
  2. package/cli.js +268 -0
  3. package/package.json +29 -3
  4. package/templates/app/.editorconfig +15 -0
  5. package/templates/app/LICENSE +21 -0
  6. package/templates/app/README.md +25 -0
  7. package/templates/app/_github/workflows/ci.yml +56 -0
  8. package/templates/app/_gitignore +11 -0
  9. package/templates/app/_yarn.lock +2560 -0
  10. package/templates/app/_yarnrc.yml +1 -0
  11. package/templates/app/androidApp/README.md +19 -0
  12. package/templates/app/androidApp/build.gradle.kts +29 -0
  13. package/templates/app/androidApp/src/main/AndroidManifest.xml +15 -0
  14. package/templates/app/androidApp/src/main/kotlin/io/github/l2hyunwoo/ait/sample/android/MainActivity.kt +49 -0
  15. package/templates/app/apps-in-toss.config.ts +2 -0
  16. package/templates/app/appsInTossApp/README.md +23 -0
  17. package/templates/app/appsInTossApp/build.gradle.kts +34 -0
  18. package/templates/app/appsInTossApp/src/webMain/kotlin/BrowserDraftStorage.kt +9 -0
  19. package/templates/app/appsInTossApp/src/webMain/kotlin/Main.kt +68 -0
  20. package/templates/app/appsInTossApp/src/webMain/resources/index.html +4 -0
  21. package/templates/app/build.gradle.kts +37 -0
  22. package/templates/app/docs/development.md +56 -0
  23. package/templates/app/eslint.config.mjs +19 -0
  24. package/templates/app/gradle/libs.versions.toml +31 -0
  25. package/templates/app/gradle/wrapper/gradle-wrapper.jar +0 -0
  26. package/templates/app/gradle/wrapper/gradle-wrapper.properties +10 -0
  27. package/templates/app/gradle.properties +3 -0
  28. package/templates/app/gradlew +248 -0
  29. package/templates/app/gradlew.bat +112 -0
  30. package/templates/app/iosApp/README.md +17 -0
  31. package/templates/app/iosApp/ServiceSample.xcodeproj/project.pbxproj +323 -0
  32. package/templates/app/iosApp/ServiceSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  33. package/templates/app/iosApp/ServiceSample.xcodeproj/xcshareddata/xcschemes/ServiceSample.xcscheme +91 -0
  34. package/templates/app/iosApp/iosApp/ServiceSampleApp.swift +20 -0
  35. package/templates/app/licenses/NotoSansKR-OFL.txt +93 -0
  36. package/templates/app/package.json +31 -0
  37. package/templates/app/scripts/lint-kotlin.mjs +8 -0
  38. package/templates/app/scripts/web.mjs +52 -0
  39. package/templates/app/settings.gradle.kts +17 -0
  40. package/templates/app/shared-core/README.md +19 -0
  41. package/templates/app/shared-core/build.gradle.kts +37 -0
  42. package/templates/app/shared-core/src/commonMain/kotlin/io/github/l2hyunwoo/ait/sample/Notes.kt +37 -0
  43. package/templates/app/shared-core/src/commonTest/kotlin/io/github/l2hyunwoo/ait/sample/NotesApiClientTest.kt +17 -0
  44. package/templates/app/shared-core/src/jsMain/kotlin/io/github/l2hyunwoo/ait/sample/BrowserNote.kt +12 -0
  45. package/templates/app/shared-ui/README.md +22 -0
  46. package/templates/app/shared-ui/build.gradle.kts +49 -0
  47. package/templates/app/shared-ui/src/commonMain/composeResources/files/NotoSansKR-OFL.txt +93 -0
  48. package/templates/app/shared-ui/src/commonMain/composeResources/font/NotoSansKR.ttf +0 -0
  49. package/templates/app/shared-ui/src/commonMain/kotlin/io/github/l2hyunwoo/ait/sample/ServiceApp.kt +121 -0
  50. package/templates/app/shared-ui/src/iosMain/kotlin/io/github/l2hyunwoo/ait/sample/MainViewController.kt +40 -0
  51. package/templates/app/webApp/README.md +18 -0
  52. package/templates/app/webApp/build.gradle.kts +23 -0
  53. package/templates/app/webApp/src/webMain/kotlin/BrowserDraftStorage.kt +9 -0
  54. package/templates/app/webApp/src/webMain/kotlin/Main.kt +8 -0
  55. package/templates/app/webApp/src/webMain/resources/index.html +4 -0
@@ -0,0 +1,323 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 77;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 7C2F33D4C93DFAE35C2E84E8 /* ServiceSampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403F0F18B3D92E2567A56442 /* ServiceSampleApp.swift */; };
11
+ /* End PBXBuildFile section */
12
+
13
+ /* Begin PBXFileReference section */
14
+ 403F0F18B3D92E2567A56442 /* ServiceSampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServiceSampleApp.swift; sourceTree = "<group>"; };
15
+ BBCAF644FB430F776A0DB0B1 /* ServiceSample.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = ServiceSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
16
+ /* End PBXFileReference section */
17
+
18
+ /* Begin PBXGroup section */
19
+ 80E2F7594AC75133FBABD284 /* Products */ = {
20
+ isa = PBXGroup;
21
+ children = (
22
+ BBCAF644FB430F776A0DB0B1 /* ServiceSample.app */,
23
+ );
24
+ name = Products;
25
+ sourceTree = "<group>";
26
+ };
27
+ 8EB29313D1C2D9E12F759C87 /* iosApp */ = {
28
+ isa = PBXGroup;
29
+ children = (
30
+ 403F0F18B3D92E2567A56442 /* ServiceSampleApp.swift */,
31
+ );
32
+ path = iosApp;
33
+ sourceTree = "<group>";
34
+ };
35
+ E09FB4D214D5854FC0C0A844 = {
36
+ isa = PBXGroup;
37
+ children = (
38
+ 8EB29313D1C2D9E12F759C87 /* iosApp */,
39
+ 80E2F7594AC75133FBABD284 /* Products */,
40
+ );
41
+ sourceTree = "<group>";
42
+ };
43
+ /* End PBXGroup section */
44
+
45
+ /* Begin PBXNativeTarget section */
46
+ 1A24D80C03817B8DC583401D /* ServiceSample */ = {
47
+ isa = PBXNativeTarget;
48
+ buildConfigurationList = 6B728EDB3AB6A18FA345139F /* Build configuration list for PBXNativeTarget "ServiceSample" */;
49
+ buildPhases = (
50
+ 6FDAAB1737D97BF7023BE388 /* Build shared Compose framework */,
51
+ F1141D4BFD4B63928C3A4196 /* Sources */,
52
+ );
53
+ buildRules = (
54
+ );
55
+ dependencies = (
56
+ );
57
+ name = ServiceSample;
58
+ packageProductDependencies = (
59
+ );
60
+ productName = ServiceSample;
61
+ productReference = BBCAF644FB430F776A0DB0B1 /* ServiceSample.app */;
62
+ productType = "com.apple.product-type.application";
63
+ };
64
+ /* End PBXNativeTarget section */
65
+
66
+ /* Begin PBXProject section */
67
+ DE487F51EFEB6DC7D0401FFE /* Project object */ = {
68
+ isa = PBXProject;
69
+ attributes = {
70
+ BuildIndependentTargetsInParallel = YES;
71
+ LastUpgradeCheck = 1430;
72
+ TargetAttributes = {
73
+ };
74
+ };
75
+ buildConfigurationList = 6242AF580303CA4779E4FA23 /* Build configuration list for PBXProject "ServiceSample" */;
76
+ developmentRegion = en;
77
+ hasScannedForEncodings = 0;
78
+ knownRegions = (
79
+ Base,
80
+ en,
81
+ );
82
+ mainGroup = E09FB4D214D5854FC0C0A844;
83
+ minimizedProjectReferenceProxies = 1;
84
+ preferredProjectObjectVersion = 77;
85
+ productRefGroup = 80E2F7594AC75133FBABD284 /* Products */;
86
+ projectDirPath = "";
87
+ projectRoot = "";
88
+ targets = (
89
+ 1A24D80C03817B8DC583401D /* ServiceSample */,
90
+ );
91
+ };
92
+ /* End PBXProject section */
93
+
94
+ /* Begin PBXShellScriptBuildPhase section */
95
+ 6FDAAB1737D97BF7023BE388 /* Build shared Compose framework */ = {
96
+ isa = PBXShellScriptBuildPhase;
97
+ alwaysOutOfDate = 1;
98
+ buildActionMask = 2147483647;
99
+ files = (
100
+ );
101
+ inputFileListPaths = (
102
+ );
103
+ inputPaths = (
104
+ );
105
+ name = "Build shared Compose framework";
106
+ outputFileListPaths = (
107
+ );
108
+ outputPaths = (
109
+ );
110
+ runOnlyForDeploymentPostprocessing = 0;
111
+ shellPath = /bin/sh;
112
+ shellScript = "set -eu\ncd \"$SRCROOT/..\"\n./gradlew :shared-ui:embedAndSignAppleFrameworkForXcode\n";
113
+ };
114
+ /* End PBXShellScriptBuildPhase section */
115
+
116
+ /* Begin PBXSourcesBuildPhase section */
117
+ F1141D4BFD4B63928C3A4196 /* Sources */ = {
118
+ isa = PBXSourcesBuildPhase;
119
+ buildActionMask = 2147483647;
120
+ files = (
121
+ 7C2F33D4C93DFAE35C2E84E8 /* ServiceSampleApp.swift in Sources */,
122
+ );
123
+ runOnlyForDeploymentPostprocessing = 0;
124
+ };
125
+ /* End PBXSourcesBuildPhase section */
126
+
127
+ /* Begin XCBuildConfiguration section */
128
+ 2B8B6F01307F21E39A092125 /* Debug */ = {
129
+ isa = XCBuildConfiguration;
130
+ buildSettings = {
131
+ ALWAYS_SEARCH_USER_PATHS = NO;
132
+ ARCHS = arm64;
133
+ CLANG_ANALYZER_NONNULL = YES;
134
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
135
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
136
+ CLANG_CXX_LIBRARY = "libc++";
137
+ CLANG_ENABLE_MODULES = YES;
138
+ CLANG_ENABLE_OBJC_ARC = YES;
139
+ CLANG_ENABLE_OBJC_WEAK = YES;
140
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
141
+ CLANG_WARN_BOOL_CONVERSION = YES;
142
+ CLANG_WARN_COMMA = YES;
143
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
144
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
145
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
146
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
147
+ CLANG_WARN_EMPTY_BODY = YES;
148
+ CLANG_WARN_ENUM_CONVERSION = YES;
149
+ CLANG_WARN_INFINITE_RECURSION = YES;
150
+ CLANG_WARN_INT_CONVERSION = YES;
151
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
152
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
153
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
154
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
155
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
156
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
157
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
158
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
159
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
160
+ CLANG_WARN_UNREACHABLE_CODE = YES;
161
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
162
+ COPY_PHASE_STRIP = NO;
163
+ DEBUG_INFORMATION_FORMAT = dwarf;
164
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
165
+ ENABLE_TESTABILITY = YES;
166
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
167
+ FRAMEWORK_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../shared-ui/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)";
168
+ GCC_C_LANGUAGE_STANDARD = gnu11;
169
+ GCC_DYNAMIC_NO_PIC = NO;
170
+ GCC_NO_COMMON_BLOCKS = YES;
171
+ GCC_OPTIMIZATION_LEVEL = 0;
172
+ GCC_PREPROCESSOR_DEFINITIONS = (
173
+ "$(inherited)",
174
+ "DEBUG=1",
175
+ );
176
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
177
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
178
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
179
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
180
+ GCC_WARN_UNUSED_FUNCTION = YES;
181
+ GCC_WARN_UNUSED_VARIABLE = YES;
182
+ IPHONEOS_DEPLOYMENT_TARGET = 16.0;
183
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
184
+ MTL_FAST_MATH = YES;
185
+ ONLY_ACTIVE_ARCH = YES;
186
+ OTHER_LDFLAGS = "$(inherited) -framework SharedUi";
187
+ PRODUCT_NAME = "$(TARGET_NAME)";
188
+ SDKROOT = iphoneos;
189
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
190
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
191
+ SWIFT_VERSION = 5.0;
192
+ };
193
+ name = Debug;
194
+ };
195
+ 48667BAF04BC79280F65A08F /* Release */ = {
196
+ isa = XCBuildConfiguration;
197
+ buildSettings = {
198
+ ALWAYS_SEARCH_USER_PATHS = NO;
199
+ ARCHS = arm64;
200
+ CLANG_ANALYZER_NONNULL = YES;
201
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
202
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
203
+ CLANG_CXX_LIBRARY = "libc++";
204
+ CLANG_ENABLE_MODULES = YES;
205
+ CLANG_ENABLE_OBJC_ARC = YES;
206
+ CLANG_ENABLE_OBJC_WEAK = YES;
207
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
208
+ CLANG_WARN_BOOL_CONVERSION = YES;
209
+ CLANG_WARN_COMMA = YES;
210
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
211
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
212
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
213
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
214
+ CLANG_WARN_EMPTY_BODY = YES;
215
+ CLANG_WARN_ENUM_CONVERSION = YES;
216
+ CLANG_WARN_INFINITE_RECURSION = YES;
217
+ CLANG_WARN_INT_CONVERSION = YES;
218
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
219
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
220
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
221
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
222
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
223
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
224
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
225
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
226
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
227
+ CLANG_WARN_UNREACHABLE_CODE = YES;
228
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
229
+ COPY_PHASE_STRIP = NO;
230
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
231
+ ENABLE_NS_ASSERTIONS = NO;
232
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
233
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
234
+ FRAMEWORK_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../shared-ui/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)";
235
+ GCC_C_LANGUAGE_STANDARD = gnu11;
236
+ GCC_NO_COMMON_BLOCKS = YES;
237
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
238
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
239
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
240
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
241
+ GCC_WARN_UNUSED_FUNCTION = YES;
242
+ GCC_WARN_UNUSED_VARIABLE = YES;
243
+ IPHONEOS_DEPLOYMENT_TARGET = 16.0;
244
+ MTL_ENABLE_DEBUG_INFO = NO;
245
+ MTL_FAST_MATH = YES;
246
+ OTHER_LDFLAGS = "$(inherited) -framework SharedUi";
247
+ PRODUCT_NAME = "$(TARGET_NAME)";
248
+ SDKROOT = iphoneos;
249
+ SWIFT_COMPILATION_MODE = wholemodule;
250
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
251
+ SWIFT_VERSION = 5.0;
252
+ };
253
+ name = Release;
254
+ };
255
+ 7BA3F3F8C594EAAA316AF1D0 /* Release */ = {
256
+ isa = XCBuildConfiguration;
257
+ buildSettings = {
258
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
259
+ CODE_SIGN_IDENTITY = "iPhone Developer";
260
+ GENERATE_INFOPLIST_FILE = YES;
261
+ INFOPLIST_KEY_CFBundleDisplayName = "__DISPLAY_NAME__";
262
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
263
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
264
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
265
+ INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
266
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
267
+ LD_RUNPATH_SEARCH_PATHS = (
268
+ "$(inherited)",
269
+ "@executable_path/Frameworks",
270
+ );
271
+ PRODUCT_BUNDLE_IDENTIFIER = "__PACKAGE_NAME__";
272
+ SDKROOT = iphoneos;
273
+ TARGETED_DEVICE_FAMILY = "1,2";
274
+ };
275
+ name = Release;
276
+ };
277
+ 8E0063E21F16647971161A25 /* Debug */ = {
278
+ isa = XCBuildConfiguration;
279
+ buildSettings = {
280
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
281
+ CODE_SIGN_IDENTITY = "iPhone Developer";
282
+ GENERATE_INFOPLIST_FILE = YES;
283
+ INFOPLIST_KEY_CFBundleDisplayName = "__DISPLAY_NAME__";
284
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
285
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
286
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
287
+ INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
288
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
289
+ LD_RUNPATH_SEARCH_PATHS = (
290
+ "$(inherited)",
291
+ "@executable_path/Frameworks",
292
+ );
293
+ PRODUCT_BUNDLE_IDENTIFIER = "__PACKAGE_NAME__";
294
+ SDKROOT = iphoneos;
295
+ TARGETED_DEVICE_FAMILY = "1,2";
296
+ };
297
+ name = Debug;
298
+ };
299
+ /* End XCBuildConfiguration section */
300
+
301
+ /* Begin XCConfigurationList section */
302
+ 6242AF580303CA4779E4FA23 /* Build configuration list for PBXProject "ServiceSample" */ = {
303
+ isa = XCConfigurationList;
304
+ buildConfigurations = (
305
+ 2B8B6F01307F21E39A092125 /* Debug */,
306
+ 48667BAF04BC79280F65A08F /* Release */,
307
+ );
308
+ defaultConfigurationIsVisible = 0;
309
+ defaultConfigurationName = Debug;
310
+ };
311
+ 6B728EDB3AB6A18FA345139F /* Build configuration list for PBXNativeTarget "ServiceSample" */ = {
312
+ isa = XCConfigurationList;
313
+ buildConfigurations = (
314
+ 8E0063E21F16647971161A25 /* Debug */,
315
+ 7BA3F3F8C594EAAA316AF1D0 /* Release */,
316
+ );
317
+ defaultConfigurationIsVisible = 0;
318
+ defaultConfigurationName = Debug;
319
+ };
320
+ /* End XCConfigurationList section */
321
+ };
322
+ rootObject = DE487F51EFEB6DC7D0401FFE /* Project object */;
323
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,91 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "1430"
4
+ version = "1.7">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES"
8
+ runPostActionsOnFailure = "NO">
9
+ <BuildActionEntries>
10
+ <BuildActionEntry
11
+ buildForTesting = "YES"
12
+ buildForRunning = "YES"
13
+ buildForProfiling = "YES"
14
+ buildForArchiving = "YES"
15
+ buildForAnalyzing = "YES">
16
+ <BuildableReference
17
+ BuildableIdentifier = "primary"
18
+ BlueprintIdentifier = "1A24D80C03817B8DC583401D"
19
+ BuildableName = "ServiceSample.app"
20
+ BlueprintName = "ServiceSample"
21
+ ReferencedContainer = "container:ServiceSample.xcodeproj">
22
+ </BuildableReference>
23
+ </BuildActionEntry>
24
+ </BuildActionEntries>
25
+ </BuildAction>
26
+ <TestAction
27
+ buildConfiguration = "Debug"
28
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30
+ shouldUseLaunchSchemeArgsEnv = "YES"
31
+ onlyGenerateCoverageForSpecifiedTargets = "NO">
32
+ <MacroExpansion>
33
+ <BuildableReference
34
+ BuildableIdentifier = "primary"
35
+ BlueprintIdentifier = "1A24D80C03817B8DC583401D"
36
+ BuildableName = "ServiceSample.app"
37
+ BlueprintName = "ServiceSample"
38
+ ReferencedContainer = "container:ServiceSample.xcodeproj">
39
+ </BuildableReference>
40
+ </MacroExpansion>
41
+ <Testables>
42
+ </Testables>
43
+ </TestAction>
44
+ <LaunchAction
45
+ buildConfiguration = "Debug"
46
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48
+ launchStyle = "0"
49
+ useCustomWorkingDirectory = "NO"
50
+ ignoresPersistentStateOnLaunch = "NO"
51
+ debugDocumentVersioning = "YES"
52
+ debugServiceExtension = "internal"
53
+ allowLocationSimulation = "YES">
54
+ <BuildableProductRunnable
55
+ runnableDebuggingMode = "0">
56
+ <BuildableReference
57
+ BuildableIdentifier = "primary"
58
+ BlueprintIdentifier = "1A24D80C03817B8DC583401D"
59
+ BuildableName = "ServiceSample.app"
60
+ BlueprintName = "ServiceSample"
61
+ ReferencedContainer = "container:ServiceSample.xcodeproj">
62
+ </BuildableReference>
63
+ </BuildableProductRunnable>
64
+ <CommandLineArguments>
65
+ </CommandLineArguments>
66
+ </LaunchAction>
67
+ <ProfileAction
68
+ buildConfiguration = "Release"
69
+ shouldUseLaunchSchemeArgsEnv = "YES"
70
+ savedToolIdentifier = ""
71
+ useCustomWorkingDirectory = "NO"
72
+ debugDocumentVersioning = "YES">
73
+ <BuildableProductRunnable
74
+ runnableDebuggingMode = "0">
75
+ <BuildableReference
76
+ BuildableIdentifier = "primary"
77
+ BlueprintIdentifier = "1A24D80C03817B8DC583401D"
78
+ BuildableName = "ServiceSample.app"
79
+ BlueprintName = "ServiceSample"
80
+ ReferencedContainer = "container:ServiceSample.xcodeproj">
81
+ </BuildableReference>
82
+ </BuildableProductRunnable>
83
+ </ProfileAction>
84
+ <AnalyzeAction
85
+ buildConfiguration = "Debug">
86
+ </AnalyzeAction>
87
+ <ArchiveAction
88
+ buildConfiguration = "Release"
89
+ revealArchiveInOrganizer = "YES">
90
+ </ArchiveAction>
91
+ </Scheme>
@@ -0,0 +1,20 @@
1
+ import SwiftUI
2
+ import SharedUi
3
+
4
+ @main
5
+ struct ServiceSampleApp: App {
6
+ var body: some Scene {
7
+ WindowGroup {
8
+ ServiceView()
9
+ .ignoresSafeArea()
10
+ }
11
+ }
12
+ }
13
+
14
+ struct ServiceView: UIViewControllerRepresentable {
15
+ func makeUIViewController(context: Context) -> UIViewController {
16
+ MainViewControllerKt.MainViewController()
17
+ }
18
+
19
+ func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
20
+ }
@@ -0,0 +1,93 @@
1
+ Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "ait-cmp-template",
3
+ "private": true,
4
+ "packageManager": "yarn@4.18.1",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=24"
8
+ },
9
+ "scripts": {
10
+ "dev": "node scripts/web.mjs dev",
11
+ "dev:toss": "node scripts/web.mjs dev:toss",
12
+ "build": "node scripts/web.mjs build",
13
+ "dev:web": "node scripts/web.mjs dev:web",
14
+ "build:web": "node scripts/web.mjs build:web",
15
+ "lint": "yarn lint:js && yarn lint:kotlin",
16
+ "lint:js": "eslint . --max-warnings=0",
17
+ "lint:kotlin": "node scripts/lint-kotlin.mjs",
18
+ "lint:fix": "yarn lint:js --fix && yarn lint:kotlin --fix"
19
+ },
20
+ "dependencies": {
21
+ "@apps-in-toss/web-framework": "3.8.0"
22
+ },
23
+ "devDependencies": {
24
+ "@eslint/js": "10.0.1",
25
+ "esbuild": "0.28.2",
26
+ "eslint": "10.12.0",
27
+ "globals": "17.13.0",
28
+ "typescript": "6.0.3",
29
+ "typescript-eslint": "8.71.1"
30
+ }
31
+ }
@@ -0,0 +1,8 @@
1
+ import { spawnSync } from 'node:child_process';
2
+
3
+ const format = process.argv[2] === '--fix';
4
+ if (process.argv.slice(2).some(arg => arg !== '--fix')) throw Error('Use lint-kotlin.mjs [--fix]');
5
+ const windows = process.platform === 'win32';
6
+ const result = spawnSync(windows ? 'gradlew.bat' : './gradlew', [format ? 'ktlintFormat' : 'ktlintCheck', '--console=plain'], { stdio: 'inherit', shell: windows });
7
+ if (result.error) throw result.error;
8
+ process.exitCode = result.status ?? 1;
@@ -0,0 +1,52 @@
1
+ import { build } from 'esbuild';
2
+ import { spawnSync } from 'node:child_process';
3
+ import { cp, mkdir, readFile, writeFile, stat } from 'node:fs/promises';
4
+ import { resolve, join, extname } from 'node:path';
5
+ import { createServer } from 'node:http';
6
+
7
+ const command = process.argv[2];
8
+ if (!['build','dev','dev:toss','build:web','dev:web'].includes(command)) throw Error('Use build, dev, dev:toss, build:web or dev:web');
9
+ const standalone = command.endsWith(':web');
10
+ const development = command.startsWith('dev');
11
+ const app = standalone ? 'webApp' : 'appsInTossApp';
12
+ const sample = await stat('sample').then(s => s.isDirectory()).catch(() => false);
13
+ const project = `${sample ? ':sample' : ''}:${app}`;
14
+ const task = `${project}:composeCompatibilityBrowserDistribution`;
15
+ const root = process.cwd();
16
+ function run(binary, args) {
17
+ const result = spawnSync(binary, args, {stdio:'inherit', cwd:root, shell:process.platform === 'win32'});
18
+ if (result.error) throw result.error;
19
+ if (result.status !== 0) process.exit(result.status ?? 1);
20
+ }
21
+ run(process.platform === 'win32' ? 'gradlew.bat' : './gradlew', [task, ...(standalone ? [] : [`${project}:prepareAppsInTossBridge`]), '--console=plain']);
22
+ const source = join(root, sample ? 'sample' : '', app, 'build/dist/composeWebCompatibility/productionExecutable');
23
+ const out = join(root, 'dist', (standalone ? 'web' : 'apps-in-toss') + (development ? '-dev' : ''));
24
+ const useMock = command === 'dev';
25
+ await mkdir(out, {recursive:true});
26
+ // Clean only this script's output tree, never the project directory.
27
+ const { rm } = await import('node:fs/promises');
28
+ await rm(out, {recursive:true, force:true});
29
+ await cp(source, out, {recursive:true});
30
+ if (!standalone) {
31
+ const entry = join(root, sample ? 'sample' : '', app, 'build/ait-cmp-sdk/ait-cmp-bridge', `${useMock ? 'mock' : 'index'}.mjs`);
32
+ await build({entryPoints:[entry], outfile:join(out,'ait-bridge.js'), bundle:true, format:'iife', platform:'browser', minify:!development, define:{'process.env.NODE_ENV':JSON.stringify(development ? 'development' : 'production')}});
33
+ const index = join(out, 'index.html');
34
+ const html = await readFile(index,'utf8');
35
+ await writeFile(index, html.replace('<head>', '<head><script src="./ait-bridge.js"></script>'));
36
+ }
37
+ if (!development) {
38
+ if (!standalone) run(process.platform === 'win32' ? 'node_modules/.bin/ait.cmd' : 'node_modules/.bin/ait', ['build']);
39
+ console.log(`Built ${out}`);
40
+ } else {
41
+ const mime = {'.html':'text/html; charset=utf-8','.js':'text/javascript','.mjs':'text/javascript','.wasm':'application/wasm','.json':'application/json','.ttf':'font/ttf','.woff2':'font/woff2','.css':'text/css'};
42
+ const server = createServer(async (request, response) => {
43
+ try {
44
+ const path = decodeURIComponent(new URL(request.url,'http://localhost').pathname);
45
+ const file = resolve(out, `.${path === '/' ? '/index.html' : path}`);
46
+ if (!file.startsWith(`${out}/`)) { response.writeHead(403); response.end(); return; }
47
+ const bytes = await readFile(file);
48
+ response.writeHead(200, {'Content-Type':mime[extname(file)] ?? 'application/octet-stream', 'Cache-Control':'no-store'});response.end(bytes);
49
+ } catch { response.writeHead(404);response.end('Not found'); }
50
+ });
51
+ server.listen(8080, command === 'dev:toss' ? '0.0.0.0' : '127.0.0.1',()=>console.log(`http://127.0.0.1:8080 (${standalone ? 'standalone web' : useMock ? 'explicit mock bridge' : 'real Toss bridge; connect from sandbox'})`));
52
+ }
@@ -0,0 +1,17 @@
1
+ pluginManagement {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ gradlePluginPortal()
6
+ }
7
+ }
8
+ dependencyResolutionManagement {
9
+ repositories {
10
+ google()
11
+ mavenCentral()
12
+ }
13
+ }
14
+ rootProject.name = "__PROJECT_NAME__"
15
+ include(":shared-core", ":shared-ui", ":appsInTossApp")
16
+ if (file("webApp").isDirectory) include(":webApp")
17
+ if (file("androidApp").isDirectory) include(":androidApp")
@@ -0,0 +1,19 @@
1
+ # Shared Core
2
+
3
+ 메모 서비스의 데이터 모델, 데이터 조회 API와 초안 저장 계약을 담은 공통 Kotlin 라이브러리입니다. Compose·토스·TDS·브라우저 타입에 의존하지 않습니다.
4
+
5
+ ## 구성
6
+
7
+ | 타입·함수 | 역할 |
8
+ | --- | --- |
9
+ | `Note(id, title, body)` | 메모 데이터 모델 |
10
+ | `NotesRepository.list()` | 메모 목록 조회 계약 |
11
+ | `NotesApiClient(getNotesJson)` | 주입받은 suspend 통신 함수의 JSON 응답 해석 |
12
+ | `DemoNotesRepository` | 로컬 예제 데이터 제공 |
13
+ | `DraftStorage.read/write` | 메모 ID별 초안 저장 계약 |
14
+ | `MemoryDraftStorage` | 실행 중 메모리에 보관하는 저장 구현 |
15
+ | `BrowserNote`, `decodeNotesResponse(json)` | JS로 내보내는 데이터 타입과 응답 해석 함수 |
16
+
17
+ `NotesApiClient`를 사용할 때 HTTPS·인증·플랫폼별 통신은 주입한 함수가 담당합니다. JSON 응답은 `id`, `title`, `body` 문자열을 갖는 메모 배열입니다. 전송·JSON 해석 오류는 호출자에게 전달합니다. 계정별 데이터 분리와 서버 저장은 서비스가 구현해야 합니다.
18
+
19
+ `MemoryDraftStorage`는 앱 재시작 후 데이터를 유지하지 않습니다. 영구 저장이 필요하면 호스트가 `DraftStorage` 구현을 전달합니다. 화면 연결은 [공통 UI](../shared-ui/README.md)를 참고하세요.