@momo-kits/native-kits 0.156.1-tracking.3 → 0.156.2-beta.1

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 (17) hide show
  1. package/example/ios/Example.xcodeproj/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/xcschememanagement.plist +2 -2
  2. package/example/ios/Example.xcworkspace/xcuserdata/huynhdung.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  3. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/xcschememanagement.plist +0 -14
  4. package/package.json +1 -1
  5. package/publish.sh +51 -51
  6. package/example/ios/Example.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/Example.xcscheme +0 -32
  7. package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  8. package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/WorkspaceSettings.xcsettings +0 -16
  9. package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -6
  10. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/lottie-ios-LottiePrivacyInfo.xcscheme +0 -58
  11. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/lottie-ios.xcscheme +0 -58
  12. /package/example/ios/Example.xcworkspace/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/xcschememanagement.plist +0 -0
  13. /package/example/ios/Pods/Pods.xcodeproj/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/MoMoUIKits.xcscheme +0 -0
  14. /package/example/ios/Pods/Pods.xcodeproj/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/Pods-Example.xcscheme +0 -0
  15. /package/example/ios/Pods/Pods.xcodeproj/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/SDWebImage.xcscheme +0 -0
  16. /package/example/ios/Pods/Pods.xcodeproj/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/SDWebImageSwiftUI.xcscheme +0 -0
  17. /package/example/ios/Pods/Pods.xcodeproj/xcuserdata/{sonnguyen.xcuserdatad → huynhdung.xcuserdatad}/xcschemes/SkeletonUI.xcscheme +0 -0
@@ -4,10 +4,10 @@
4
4
  <dict>
5
5
  <key>SchemeUserState</key>
6
6
  <dict>
7
- <key>Example.xcscheme</key>
7
+ <key>Example.xcscheme_^#shared#^_</key>
8
8
  <dict>
9
9
  <key>orderHint</key>
10
- <integer>7</integer>
10
+ <integer>0</integer>
11
11
  </dict>
12
12
  </dict>
13
13
  </dict>
@@ -39,20 +39,6 @@
39
39
  <key>orderHint</key>
40
40
  <integer>4</integer>
41
41
  </dict>
42
- <key>lottie-ios-LottiePrivacyInfo.xcscheme</key>
43
- <dict>
44
- <key>isShown</key>
45
- <false />
46
- <key>orderHint</key>
47
- <integer>5</integer>
48
- </dict>
49
- <key>lottie-ios.xcscheme</key>
50
- <dict>
51
- <key>isShown</key>
52
- <false />
53
- <key>orderHint</key>
54
- <integer>6</integer>
55
- </dict>
56
42
  </dict>
57
43
  <key>SuppressBuildableAutocreation</key>
58
44
  <dict />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.156.1-tracking.3",
3
+ "version": "0.156.2-beta.1",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},
package/publish.sh CHANGED
@@ -51,19 +51,19 @@ phase_check_version() {
51
51
  echo "==============================================="
52
52
  echo "📋 PHASE 1: CHECK AND UPDATE VERSION ($MODE)"
53
53
  echo "==============================================="
54
-
54
+
55
55
  echo "🔍 Reading version from local package.json..."
56
-
56
+
57
57
  # Get the version from local package.json
58
58
  VERSION=$(node -p "require('./package.json').version")
59
-
59
+
60
60
  if [ -z "$VERSION" ]; then
61
61
  echo "❌ Error: Could not read version from package.json"
62
62
  exit 1
63
63
  fi
64
-
64
+
65
65
  echo "📦 Version from package.json: $VERSION"
66
-
66
+
67
67
  # ==============================================================
68
68
  # BETA MODE: Fail if version exists
69
69
  # ==============================================================
@@ -71,9 +71,9 @@ phase_check_version() {
71
71
  # Check if this version already exists on npm
72
72
  PACKAGE_NAME=$(node -p "require('./package.json').name")
73
73
  echo "🔎 Checking if version $VERSION already exists on npm for package $PACKAGE_NAME..."
74
-
74
+
75
75
  NPM_VERSION_INFO=$(npm view "$PACKAGE_NAME@$VERSION" version 2>/dev/null || echo "")
76
-
76
+
77
77
  if [ -n "$NPM_VERSION_INFO" ]; then
78
78
  echo ""
79
79
  echo "❌ ERROR: Version $VERSION already exists on npm!"
@@ -85,10 +85,10 @@ phase_check_version() {
85
85
  echo ""
86
86
  exit 1
87
87
  fi
88
-
88
+
89
89
  echo "✅ Version $VERSION does not exist on npm. Safe to publish."
90
90
  fi
91
-
91
+
92
92
  # ==============================================================
93
93
  # RELEASE MODE: Convert to beta format and auto-increment
94
94
  # ==============================================================
@@ -98,12 +98,12 @@ phase_check_version() {
98
98
  # Extract base version (e.g., 0.156.1 from 0.156.1-test.5)
99
99
  BASE_VERSION=$(echo "$VERSION" | cut -d'-' -f1)
100
100
  PRERELEASE_SUFFIX=$(echo "$VERSION" | cut -d'-' -f2)
101
-
101
+
102
102
  # If it's not already in beta format, convert to beta.1
103
103
  if [[ "$PRERELEASE_SUFFIX" != "beta."* ]]; then
104
104
  BETA_VERSION="${BASE_VERSION}-beta.1"
105
105
  echo "🔄 Converting to beta format: $VERSION → $BETA_VERSION"
106
-
106
+
107
107
  # Update package.json with beta version
108
108
  if [[ "$OSTYPE" == "darwin"* ]]; then
109
109
  # macOS
@@ -112,34 +112,34 @@ phase_check_version() {
112
112
  # Linux
113
113
  sed -i "s/\"version\": \"$VERSION\"/\"version\": \"$BETA_VERSION\"/" package.json
114
114
  fi
115
-
115
+
116
116
  VERSION="$BETA_VERSION"
117
117
  echo "✅ Version updated to beta format: $VERSION"
118
118
  fi
119
119
  fi
120
-
120
+
121
121
  # Check if this version already exists on npm and increment until we find one that doesn't
122
122
  PACKAGE_NAME=$(node -p "require('./package.json').name")
123
123
  echo "🔎 Checking if version $VERSION already exists on npm for package $PACKAGE_NAME..."
124
-
124
+
125
125
  # Loop until we find a version that doesn't exist on npm
126
126
  while true; do
127
127
  # Try to get the version info from npm
128
128
  NPM_VERSION_INFO=$(npm view "$PACKAGE_NAME@$VERSION" version 2>/dev/null || echo "")
129
-
129
+
130
130
  if [ -n "$NPM_VERSION_INFO" ]; then
131
131
  echo "⚠️ Version $VERSION already exists on npm. Auto-incrementing version..."
132
-
132
+
133
133
  # Check if it's a beta version
134
134
  if [[ "$VERSION" == *"-beta."* ]]; then
135
135
  # Extract base version and beta number (e.g., 0.156.1-beta.5)
136
136
  BASE_VERSION=$(echo "$VERSION" | cut -d'-' -f1)
137
137
  BETA_NUMBER=$(echo "$VERSION" | cut -d'.' -f4)
138
-
138
+
139
139
  # Increment beta number
140
140
  NEW_BETA_NUMBER=$((BETA_NUMBER + 1))
141
141
  NEW_VERSION="${BASE_VERSION}-beta.${NEW_BETA_NUMBER}"
142
-
142
+
143
143
  echo " Version incremented: $VERSION → $NEW_VERSION"
144
144
  else
145
145
  # Regular version without beta suffix
@@ -147,14 +147,14 @@ phase_check_version() {
147
147
  MAJOR=$(echo "$VERSION" | cut -d'.' -f1)
148
148
  MINOR=$(echo "$VERSION" | cut -d'.' -f2)
149
149
  PATCH=$(echo "$VERSION" | cut -d'.' -f3 | cut -d'-' -f1)
150
-
150
+
151
151
  # Increment patch version
152
152
  NEW_PATCH=$((PATCH + 1))
153
153
  NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH"
154
-
154
+
155
155
  echo " Version incremented: $VERSION → $NEW_VERSION"
156
156
  fi
157
-
157
+
158
158
  # Update package.json with new version
159
159
  if [[ "$OSTYPE" == "darwin"* ]]; then
160
160
  # macOS
@@ -163,7 +163,7 @@ phase_check_version() {
163
163
  # Linux
164
164
  sed -i "s/\"version\": \"$VERSION\"/\"version\": \"$NEW_VERSION\"/" package.json
165
165
  fi
166
-
166
+
167
167
  VERSION="$NEW_VERSION"
168
168
  echo "🔄 Checking version $VERSION on npm..."
169
169
  else
@@ -172,12 +172,12 @@ phase_check_version() {
172
172
  fi
173
173
  done
174
174
  fi
175
-
175
+
176
176
  # Update gradle.properties with the same version
177
177
  echo "📝 Updating gradle.properties..."
178
178
  # Get current gradle version
179
179
  CURRENT_GRADLE_VERSION=$(grep "^version=" gradle.properties | cut -d'=' -f2 | tr -d '"')
180
-
180
+
181
181
  # Update version in gradle.properties using sed
182
182
  if [[ "$OSTYPE" == "darwin"* ]]; then
183
183
  # macOS
@@ -186,11 +186,11 @@ phase_check_version() {
186
186
  # Linux
187
187
  sed -i "s/^version=.*/version=$VERSION/" gradle.properties
188
188
  fi
189
-
189
+
190
190
  echo " Gradle version updated: $CURRENT_GRADLE_VERSION → $VERSION"
191
-
191
+
192
192
  export VERSION="$VERSION"
193
-
193
+
194
194
  echo "✅ Using version: $VERSION"
195
195
  echo "✅ PHASE 1 COMPLETED"
196
196
  echo ""
@@ -204,25 +204,25 @@ phase_publish_npm() {
204
204
  echo "==============================================="
205
205
  echo "📦 PHASE 2: PUBLISH TO NPM ($MODE - tag: $NPM_TAG)"
206
206
  echo "==============================================="
207
-
207
+
208
208
  # Get version from package.json
209
209
  VERSION=$(node -p "require('./package.json').version")
210
210
  export VERSION="$VERSION"
211
-
211
+
212
212
  echo "📦 Publishing version: $VERSION"
213
-
213
+
214
214
  ./gradlew clean
215
-
215
+
216
216
  # ============================================================
217
217
  # FIRST PUBLISH: DEBUG VERSION (with compose kits included)
218
218
  # ============================================================
219
219
  echo ""
220
220
  echo "🔧 Preparing debug version with compose kits..."
221
-
221
+
222
222
  # Create debug version
223
223
  DEBUG_VERSION="${VERSION}-debug"
224
224
  echo "📦 Debug version: $DEBUG_VERSION"
225
-
225
+
226
226
  # Update package.json version to debug version
227
227
  if [[ "$OSTYPE" == "darwin"* ]]; then
228
228
  # macOS
@@ -231,11 +231,11 @@ phase_publish_npm() {
231
231
  # Linux
232
232
  sed -i "s/\"version\": \"$VERSION\"/\"version\": \"$DEBUG_VERSION\"/" package.json
233
233
  fi
234
-
234
+
235
235
  # Backup compose/build.gradle.kts
236
236
  echo "📦 Backing up compose/build.gradle.kts..."
237
237
  cp compose/build.gradle.kts compose/build.gradle.kts.backup
238
-
238
+
239
239
  # Comment out maven publish in compose/build.gradle.kts
240
240
  echo "💬 Commenting out maven publish in compose/build.gradle.kts..."
241
241
  if [[ "$OSTYPE" == "darwin"* ]]; then
@@ -259,7 +259,7 @@ phase_publish_npm() {
259
259
  # Comment out entire mavenPublishing block
260
260
  sed -i '/^mavenPublishing {$/,/^}$/s/^/\/\/ /' compose/build.gradle.kts
261
261
  fi
262
-
262
+
263
263
  # Modify android configuration for debug version
264
264
  echo "🔧 Modifying android configuration for debug version..."
265
265
  if [[ "$OSTYPE" == "darwin"* ]]; then
@@ -275,10 +275,10 @@ phase_publish_npm() {
275
275
  sed -i 's/minSdk = libs\.versions\.android\.minSdk\.get()\.toInt()/minSdk = 24/' compose/build.gradle.kts
276
276
  sed -i "s/version = gitlabVersion/version = \"$DEBUG_VERSION\"/" compose/build.gradle.kts
277
277
  fi
278
-
278
+
279
279
  # Backup .npmignore
280
280
  cp .npmignore .npmignore.backup
281
-
281
+
282
282
  # Create minimal .npmignore for debug version (only exclude build artifacts and IDE configs)
283
283
  cat > .npmignore << 'EOF'
284
284
  sample/
@@ -294,20 +294,20 @@ build/
294
294
  .gitlab-ci.yml
295
295
  .npmignore.backup
296
296
  EOF
297
-
297
+
298
298
  echo "📤 Publishing debug version (with compose)..."
299
299
  npm publish --tag $NPM_TAG --access=public
300
-
300
+
301
301
  echo "✅ Debug version published successfully!"
302
-
302
+
303
303
  # Restore .npmignore
304
304
  mv .npmignore.backup .npmignore
305
305
  echo "✅ .npmignore restored"
306
-
306
+
307
307
  # Restore compose/build.gradle.kts
308
308
  mv compose/build.gradle.kts.backup compose/build.gradle.kts
309
309
  echo "✅ compose/build.gradle.kts restored"
310
-
310
+
311
311
  # Restore package.json version to original
312
312
  if [[ "$OSTYPE" == "darwin"* ]]; then
313
313
  # macOS
@@ -316,18 +316,18 @@ EOF
316
316
  # Linux
317
317
  sed -i "s/\"version\": \"$DEBUG_VERSION\"/\"version\": \"$VERSION\"/" package.json
318
318
  fi
319
-
319
+
320
320
  echo "✅ package.json version restored"
321
-
321
+
322
322
  # ============================================================
323
323
  # SECOND PUBLISH: NORMAL VERSION (without compose)
324
324
  # ============================================================
325
325
  echo ""
326
326
  echo "📤 Publishing normal version (without compose)..."
327
327
  npm publish --tag $NPM_TAG --access=public
328
-
328
+
329
329
  echo "✅ Normal version published successfully!"
330
-
330
+
331
331
  echo ""
332
332
  echo "✅ PHASE 2 COMPLETED"
333
333
  echo " 🐛 Debug version: $DEBUG_VERSION (with compose) - Published first"
@@ -344,15 +344,15 @@ phase_publish_maven() {
344
344
  echo "==============================================="
345
345
  echo "🔧 PHASE 3: PUBLISH TO MAVEN ($MODE)"
346
346
  echo "==============================================="
347
-
347
+
348
348
  # Get version from package.json
349
349
  VERSION=$(node -p "require('./package.json').version")
350
350
  export VERSION="$VERSION"
351
-
351
+
352
352
  echo "📦 Publishing KMP artifacts to Maven (version ${VERSION})..."
353
-
353
+
354
354
  ./gradlew :compose:publishAllPublicationsToGitLabPackagesRepository
355
-
355
+
356
356
  echo "✅ Maven publishing completed successfully!"
357
357
  echo "✅ PHASE 3 COMPLETED"
358
358
  echo ""
@@ -1,32 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- version = "1.3">
4
- <BuildAction>
5
- <BuildActionEntries>
6
- <BuildActionEntry
7
- buildForRunning = "YES">
8
- <BuildableReference
9
- BuildableIdentifier = "primary"
10
- BlueprintIdentifier = "A6A920D22B2ADD1E00C1A11F"
11
- BuildableName = "Example"
12
- BlueprintName = "Example"
13
- ReferencedContainer = "container:Example.xcodeproj">
14
- </BuildableReference>
15
- </BuildActionEntry>
16
- </BuildActionEntries>
17
- </BuildAction>
18
- <LaunchAction
19
- useCustomWorkingDirectory = "NO"
20
- buildConfiguration = "Debug"
21
- allowLocationSimulation = "YES">
22
- <BuildableProductRunnable>
23
- <BuildableReference
24
- BuildableIdentifier = "primary"
25
- BlueprintIdentifier = "A6A920D22B2ADD1E00C1A11F"
26
- BuildableName = "Example"
27
- BlueprintName = "Example"
28
- ReferencedContainer = "container:Example.xcodeproj">
29
- </BuildableReference>
30
- </BuildableProductRunnable>
31
- </LaunchAction>
32
- </Scheme>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>BuildLocationStyle</key>
6
- <string>UseAppPreferences</string>
7
- <key>CustomBuildLocationType</key>
8
- <string>RelativeToDerivedData</string>
9
- <key>DerivedDataCustomLocation</key>
10
- <string>DerivedData</string>
11
- <key>DerivedDataLocationStyle</key>
12
- <string>WorkspaceRelativePath</string>
13
- <key>ShowSharedSchemesAutomaticallyEnabled</key>
14
- <true/>
15
- </dict>
16
- </plist>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Bucket
3
- uuid = "6B3C387A-E951-41D1-A42C-FB6E447A46BA"
4
- type = "0"
5
- version = "2.0">
6
- </Bucket>
@@ -1,58 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1600"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "BF2A15FEC3F3424BBC4B9AD5F86F2D54"
18
- BuildableName = "LottiePrivacyInfo.bundle"
19
- BlueprintName = "lottie-ios-LottiePrivacyInfo"
20
- ReferencedContainer = "container:Pods.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- </Testables>
32
- </TestAction>
33
- <LaunchAction
34
- buildConfiguration = "Debug"
35
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37
- launchStyle = "0"
38
- useCustomWorkingDirectory = "NO"
39
- ignoresPersistentStateOnLaunch = "NO"
40
- debugDocumentVersioning = "YES"
41
- debugServiceExtension = "internal"
42
- allowLocationSimulation = "YES">
43
- </LaunchAction>
44
- <ProfileAction
45
- buildConfiguration = "Release"
46
- shouldUseLaunchSchemeArgsEnv = "YES"
47
- savedToolIdentifier = ""
48
- useCustomWorkingDirectory = "NO"
49
- debugDocumentVersioning = "YES">
50
- </ProfileAction>
51
- <AnalyzeAction
52
- buildConfiguration = "Debug">
53
- </AnalyzeAction>
54
- <ArchiveAction
55
- buildConfiguration = "Release"
56
- revealArchiveInOrganizer = "YES">
57
- </ArchiveAction>
58
- </Scheme>
@@ -1,58 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1600"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "0B967D7F8561D42493EE289EC8D450D1"
18
- BuildableName = "Lottie.framework"
19
- BlueprintName = "lottie-ios"
20
- ReferencedContainer = "container:Pods.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- </Testables>
32
- </TestAction>
33
- <LaunchAction
34
- buildConfiguration = "Debug"
35
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37
- launchStyle = "0"
38
- useCustomWorkingDirectory = "NO"
39
- ignoresPersistentStateOnLaunch = "NO"
40
- debugDocumentVersioning = "YES"
41
- debugServiceExtension = "internal"
42
- allowLocationSimulation = "YES">
43
- </LaunchAction>
44
- <ProfileAction
45
- buildConfiguration = "Release"
46
- shouldUseLaunchSchemeArgsEnv = "YES"
47
- savedToolIdentifier = ""
48
- useCustomWorkingDirectory = "NO"
49
- debugDocumentVersioning = "YES">
50
- </ProfileAction>
51
- <AnalyzeAction
52
- buildConfiguration = "Debug">
53
- </AnalyzeAction>
54
- <ArchiveAction
55
- buildConfiguration = "Release"
56
- revealArchiveInOrganizer = "YES">
57
- </ArchiveAction>
58
- </Scheme>