@momo-kits/native-kits 0.157.0 → 0.157.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.
- package/package.json +1 -1
- package/publish.sh +26 -1
package/package.json
CHANGED
package/publish.sh
CHANGED
|
@@ -185,7 +185,32 @@ phase_publish_maven() {
|
|
|
185
185
|
|
|
186
186
|
./gradlew :compose:publishAllPublicationsToGitLabPackagesRepository
|
|
187
187
|
|
|
188
|
-
echo "✅ Maven publishing completed successfully!"
|
|
188
|
+
echo "✅ compose Maven publishing completed successfully!"
|
|
189
|
+
|
|
190
|
+
echo "📦 Publishing sample/shared KMP artifacts to Maven (version ${VERSION})..."
|
|
191
|
+
|
|
192
|
+
# Temporarily remove composeResources and compose { resources { ... } } block
|
|
193
|
+
echo "📦 Backing up sample/shared composeResources and build.gradle.kts..."
|
|
194
|
+
if [ -d "sample/shared/src/commonMain/composeResources" ]; then
|
|
195
|
+
mv sample/shared/src/commonMain/composeResources sample/shared/src/commonMain/composeResources.backup
|
|
196
|
+
fi
|
|
197
|
+
cp sample/shared/build.gradle.kts sample/shared/build.gradle.kts.backup
|
|
198
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
199
|
+
sed -i '' '/^compose {$/,/^}$/d' sample/shared/build.gradle.kts
|
|
200
|
+
else
|
|
201
|
+
sed -i '/^compose {$/,/^}$/d' sample/shared/build.gradle.kts
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
./gradlew :sample:shared:publishAllPublicationsToGitLabPackagesRepository
|
|
205
|
+
|
|
206
|
+
# Restore composeResources and build.gradle.kts
|
|
207
|
+
echo "📦 Restoring sample/shared composeResources and build.gradle.kts..."
|
|
208
|
+
mv sample/shared/build.gradle.kts.backup sample/shared/build.gradle.kts
|
|
209
|
+
if [ -d "sample/shared/src/commonMain/composeResources.backup" ]; then
|
|
210
|
+
mv sample/shared/src/commonMain/composeResources.backup sample/shared/src/commonMain/composeResources
|
|
211
|
+
fi
|
|
212
|
+
|
|
213
|
+
echo "✅ sample/shared Maven publishing completed successfully!"
|
|
189
214
|
echo "✅ PHASE 2 COMPLETED"
|
|
190
215
|
echo ""
|
|
191
216
|
}
|