-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename wallet-sdk to mobile-sdk (#23)
- Loading branch information
Showing
21 changed files
with
462 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,25 +35,25 @@ jobs: | |
tool: cargo-swift | ||
|
||
- name: Generate Swift package | ||
run: cargo swift package -p ios -n WalletSdkRs --release | ||
run: cargo swift package -p ios -n MobileSdkRs --release | ||
|
||
- name: Compress XCFramework | ||
run: | | ||
zip -9 -r RustFramework.xcframework.zip WalletSdkRs/RustFramework.xcframework | ||
zip -9 -r RustFramework.xcframework.zip MobileSdkRs/RustFramework.xcframework | ||
echo "XCF_CHECKSUM=`swift package compute-checksum RustFramework.xcframework.zip`" >> $GITHUB_ENV | ||
- name: Update Swift Package definition | ||
run: | | ||
sed -i '' 's/.binaryTarget.*/.binaryTarget(name: "RustFramework", url: "https:\/\/github.com\/spruceid\/wallet-sdk-rs\/releases\/download\/${{ github.event.inputs.version }}\/RustFramework.xcframework.zip", checksum: "${{ env.XCF_CHECKSUM }}"),/' Package.swift | ||
sed -i '' 's/.binaryTarget.*/.binaryTarget(name: "RustFramework", url: "https:\/\/github.com\/spruceid\/mobile-sdk-rs\/releases\/download\/${{ github.event.inputs.version }}\/RustFramework.xcframework.zip", checksum: "${{ env.XCF_CHECKSUM }}"),/' Package.swift | ||
- name: Update Cocoapods definitions | ||
run: | | ||
sed -i '' -r 's/[0-9]+.[0-9]+.[0-9]+/${{ github.event.inputs.version }}/' SpruceIDWalletSdkRsRustFramework.podspec | ||
sed -i '' -r 's/[0-9]+.[0-9]+.[0-9]+/${{ github.event.inputs.version }}/' SpruceIDWalletSdkRs.podspec | ||
sed -i '' -r 's/[0-9]+.[0-9]+.[0-9]+/${{ github.event.inputs.version }}/' SpruceIDMobileSdkRsRustFramework.podspec | ||
sed -i '' -r 's/[0-9]+.[0-9]+.[0-9]+/${{ github.event.inputs.version }}/' SpruceIDMobileSdkRs.podspec | ||
- name: Push changes and tag | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add Package.swift SpruceIDWalletSdkRs.podspec SpruceIDWalletSdkRsRustFramework.podspec | ||
git add Package.swift SpruceIDMobileSdkRs.podspec SpruceIDMobileSdkRsRustFramework.podspec | ||
git commit -m "Release ${{ github.event.inputs.version }}" | ||
git push | ||
git tag ${{ github.event.inputs.version }} -m "${{ github.event.inputs.version }}" | ||
|
@@ -70,8 +70,8 @@ jobs: | |
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
run: | | ||
pod trunk push SpruceIDWalletSdkRsRustFramework.podspec | ||
pod trunk push SpruceIDWalletSdkRs.podspec --synchronous | ||
pod trunk push SpruceIDMobileSdkRsRustFramework.podspec | ||
pod trunk push SpruceIDMobileSdkRs.podspec --synchronous | ||
kotlin: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
/target | ||
/generated | ||
.build | ||
WalletSdkRs/Package.swift | ||
WalletSdkRs/RustFramework* | ||
MobileSdkRs/Package.swift | ||
MobileSdkRs/RustFramework* | ||
.swiftpm | ||
jna-*.jar | ||
*~ | ||
*~ | ||
kotlin/mobilesdkrs/src/main/java/com/spruceid/mobile/sdk/rs/mobile_sdk_rs.kt |
Oops, something went wrong.