Skip to content

Commit

Permalink
build: reorganise apollo and remove unused modules
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Nov 4, 2023
1 parent e65e0f0 commit 61ed283
Show file tree
Hide file tree
Showing 217 changed files with 223 additions and 3,499 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/Deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ on:

jobs:
deployment:
strategy:
matrix:
include:
- os: macos-latest
os-type: macos
runs-on: ${{ matrix.os }}
runs-on: macos-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -59,36 +54,35 @@ jobs:
distribution: zulu

- name: "Install NodeJS ${{ env.NODEJS_VERSION }}"
if: matrix.os-type == 'linux'
uses: actions/setup-node@v3
with:
node-version: "${{ env.NODEJS_VERSION }}"

- name: Install Homebrew
if: matrix.os-type == 'macos'
run: >
/bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: "Install autoconf, automake, libtool"
if: matrix.os-type == 'macos'
run: |
brew install autoconf automake libtool

Check failure on line 69 in .github/workflows/Deployment.yml

View workflow job for this annotation

GitHub Actions / Lint changes

69:1 [trailing-spaces] trailing spaces
- name: Create Swift Package
env:
TAG_VERSION: ${{github.event.inputs.tag}}
run: |
./gradlew :base-asymmetric-encryption:createSwiftPackage
./gradlew :apollo:createSwiftPackage

Check failure on line 75 in .github/workflows/Deployment.yml

View workflow job for this annotation

GitHub Actions / Lint changes

75:1 [trailing-spaces] trailing spaces
- name: Zip framework
run: |
target_dir_name="Apollo.xcframework"
source_dir="./base-asymmetric-encryption/build/packages/ApolloSwift/"
source_dir="./apollo/build/packages/ApolloSwift/"
zip_name="Apollo.xcframework.zip"
(cd $source_dir && zip -r "$zip_name" $target_dir_name)

Check failure on line 82 in .github/workflows/Deployment.yml

View workflow job for this annotation

GitHub Actions / Lint changes

82:1 [trailing-spaces] trailing spaces
- name: Prepare release package
run: |
checksum=$(swift package compute-checksum 'base-asymmetric-encryption/build/packages/ApolloSwift/Apollo.xcframework.zip')
checksum=$(swift package compute-checksum 'apollo/build/packages/ApolloSwift/Apollo.xcframework.zip')
echo "CHECKSUM: $checksum"
rm -f Package.swift || true
./.scripts/updatePackage.swift ${{github.event.inputs.tag}} $checksum './.scripts/TemplatePackage.swift' 'Package.swift'
Expand All @@ -106,19 +100,18 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Apollo.xcframework.zip
path: base-asymmetric-encryption/build/packages/ApolloSwift/Apollo.xcframework.zip
path: apollo/build/packages/ApolloSwift/Apollo.xcframework.zip

Check failure on line 104 in .github/workflows/Deployment.yml

View workflow job for this annotation

GitHub Actions / Lint changes

104:1 [trailing-spaces] trailing spaces
- name: Add swift package artifacts to release
uses: svenstaro/upload-release-action@v2
with:
tag: ${{github.event.inputs.tag}}
file: base-asymmetric-encryption/build/packages/ApolloSwift/Apollo.xcframework.zip
file: apollo/build/packages/ApolloSwift/Apollo.xcframework.zip
asset_name: "Apollo.xcframework.zip"

- name: Publish Maven artifacts to Github Packages
env:
TAG_VERSION: ${{github.event.inputs.tag}}
id: publish
run: |
./gradlew publishAllPublicationsToGitHubPackagesRepository :base-asymmetric-encryption:publishJsPackageToGithubRegistry
./gradlew :apollo:publishAllPublicationsToGitHubPackagesRepository :apollo:publishJsPackageToGithubRegistry

Check failure on line 117 in .github/workflows/Deployment.yml

View workflow job for this annotation

GitHub Actions / Lint changes

117:118 [new-line-at-end-of-file] no new line character at the end of file
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ let package = Package(
// RELEASE
.binaryTarget(
name: "ApolloBinary",
url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/testSwift2/Apollo.xcframework.zip",
checksum: "817420e940206f912c5dcf92acb3b38bd2b87caef6caebc707ff1ff98c5778b8"
url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/1.0.6/Apollo.xcframework.zip",
checksum: "a59700e70a374ddf9176b7ea0ee8d5467734df88900e346617cc19fbd8adc87b"
)
]
)
59 changes: 0 additions & 59 deletions aes/README.md

This file was deleted.

43 changes: 0 additions & 43 deletions aes/aes.podspec

This file was deleted.

9 changes: 0 additions & 9 deletions aes/karma.config.d/karma.config.js

This file was deleted.

2 changes: 0 additions & 2 deletions aes/src/androidMain/AndroidManifest.xml

This file was deleted.

65 changes: 0 additions & 65 deletions aes/src/androidMain/kotlin/io/iohk/atala/prism/apollo/aes/AES.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions aes/src/commonMain/kotlin/io/iohk/atala/prism/apollo/aes/AES.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 61ed283

Please sign in to comment.