Skip to content

Commit

Permalink
feat(mnemonic): js doesnt handle List and swift doesnt handle Array t…
Browse files Browse the repository at this point in the history
…his is the solution (#105)
  • Loading branch information
goncalo-frade-iohk authored Oct 30, 2023
1 parent 3f32662 commit e65e0f0
Show file tree
Hide file tree
Showing 33 changed files with 2,524 additions and 3,114 deletions.
12 changes: 6 additions & 6 deletions .scripts/TemplatePackage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
import PackageDescription

let package = Package(
name: "Apollo",
name: "ApolloLibrary",
platforms: [
.iOS(.v13),
.macOS(.v11)
],
products: [
.library(
name: "Apollo",
targets: ["Apollo"]
name: "ApolloLibrary",
targets: ["ApolloBinary"]
),
],
targets: [
// LOCAL
// .binaryTarget(
// name: "Apollo",
// path: "./Apollo.xcframework"
// name: "ApolloBinary",
// path: "./base-asymmetric-encryption/build/packages/ApolloSwift/Apollo.xcframework.zip"
// ),

// RELEASE
.binaryTarget(
name: "Apollo",
name: "ApolloBinary",
url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/<ref>/Apollo.xcframework.zip",
checksum: "<checksum>"
)
Expand Down
16 changes: 8 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
import PackageDescription

let package = Package(
name: "Apollo",
name: "ApolloLibrary",
platforms: [
.iOS(.v13),
.macOS(.v11)
],
products: [
.library(
name: "Apollo",
targets: ["Apollo"]
name: "ApolloLibrary",
targets: ["ApolloBinary"]
),
],
targets: [
// LOCAL
// .binaryTarget(
// name: "Apollo",
// path: "./Apollo.xcframework"
// name: "ApolloBinary",
// path: "./base-asymmetric-encryption/build/packages/ApolloSwift/Apollo.xcframework.zip"
// ),

// RELEASE
.binaryTarget(
name: "Apollo",
url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/1.0.3/Apollo.xcframework.zip",
checksum: "89989b558887431844d5395c845a098678577b3c1dc867146ca058f0ce9e63dd"
name: "ApolloBinary",
url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/testSwift2/Apollo.xcframework.zip",
checksum: "817420e940206f912c5dcf92acb3b38bd2b87caef6caebc707ff1ff98c5778b8"
)
]
)
225 changes: 0 additions & 225 deletions aes/build.gradle.kts

This file was deleted.

28 changes: 11 additions & 17 deletions apollo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ kotlin {
}
if (os.isMacOsX) {
ios()
if (System.getProperty("os.arch") != "x86_64") { // M1Chip
iosSimulatorArm64()
macosArm64()
}
iosSimulatorArm64()
macosArm64()
}
js(IR) {
this.moduleName = currentModuleName
Expand Down Expand Up @@ -99,27 +97,23 @@ kotlin {
val iosMain by getting
val iosTest by getting

if (System.getProperty("os.arch") != "x86_64") { // M1Chip
val iosSimulatorArm64Main by getting {
this.dependsOn(iosMain)
}
val iosSimulatorArm64Test by getting {
this.dependsOn(iosTest)
}
val macosArm64Main by getting
val macosArm64Test by getting
val iosSimulatorArm64Main by getting {
this.dependsOn(iosMain)
}
val iosSimulatorArm64Test by getting {
this.dependsOn(iosTest)
}
val macosArm64Main by getting
val macosArm64Test by getting
}
}

if (os.isMacOsX) {
tasks.getByName<org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest>("iosX64Test") {
device.set("iPhone 14 Plus")
}
if (System.getProperty("os.arch") != "x86_64") { // M1Chip
tasks.getByName<org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest>("iosSimulatorArm64Test") {
device.set("iPhone 14 Plus")
}
tasks.getByName<org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest>("iosSimulatorArm64Test") {
device.set("iPhone 14 Plus")
}
}
}
Expand Down
Loading

0 comments on commit e65e0f0

Please sign in to comment.