Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
aduryagin committed Sep 29, 2024
1 parent 85a4d92 commit 4ad77bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
set -ex

gradle assembleSkipRevenuecatXCFramework
gradle assembleSkipRevenuecatLibraryXCFramework

cd skip-revenuecat/build/XCFrameworks/release/

rm -f SkipRevenuecat.xcframework.zip
zip -qr SkipRevenuecat.xcframework.zip SkipRevenuecat.xcframework
ls -lah SkipRevenuecat.xcframework.zip
shasum -a 256 SkipRevenuecat.xcframework.zip
rm -f SkipRevenuecatLibrary.xcframework.zip
zip -qr SkipRevenuecatLibrary.xcframework.zip SkipRevenuecatLibrary.xcframework
ls -lah SkipRevenuecatLibrary.xcframework.zip
shasum -a 256 SkipRevenuecatLibrary.xcframework.zip
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ esac
# Output the new version
echo "New version: $NEW_VERSION"

ARTIFACT="skip-revenuecat/build/XCFrameworks/release/SkipRevenuecat.xcframework.zip"
ARTIFACT="skip-revenuecat/build/XCFrameworks/release/SkipRevenuecatLibrary.xcframework.zip"

gh release create --notes "$(cat ${ARTIFACT} | shasum -a 256)" ${NEW_VERSION} ${ARTIFACT}

4 changes: 2 additions & 2 deletions skip-revenuecat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ kotlin {
val iosArm64 = iosArm64()
val iosSimulatorArm64 = iosSimulatorArm64()

val xcFramework = XCFramework("SkipRevenuecat")
val xcFramework = XCFramework("SkipRevenuecatLibrary")
configure(listOf(iosX64, iosArm64, iosSimulatorArm64)) {
binaries {
framework {
baseName = "SkipRevenuecat" // Customize your framework name
baseName = "SkipRevenuecatLibrary" // Customize your framework name

// Add the XCFramework for iOS targets
// export(project(":path_to_your_xcframework"))
Expand Down

0 comments on commit 4ad77bb

Please sign in to comment.