diff --git a/FormX.podspec b/FormX.podspec new file mode 100644 index 0000000..2ce62d0 --- /dev/null +++ b/FormX.podspec @@ -0,0 +1,21 @@ +Pod::Spec.new do |s| + s.name = 'FormX' + s.version = '0.4.11' + s.summary = 'FormX SDK for iOS' + s.homepage = 'https://github.com/oursky/formx-sdk' + s.author = { 'FormX' => 'hello@formx.ai' } + s.swift_version = ['5.0', '5.1', '5.2'] + + s.source = { :http => "https://github.com/oursky/formx-sdk/releases/download/0.4.11/FormX.xcframework.zip" } + s.vendored_frameworks = 'FormX.xcframework' + + s.ios.deployment_target = '14.0' + s.ios.frameworks = ["Accelerate"] + s.libraries = 'c++' + + s.prepare_command = <<-CMD + curl -O -L "#{s.source[:http]}" + unzip -o FormX.xcframework.zip + rm FormX.xcframework.zip + CMD +end diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..b97fb16 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:5.3 + +import PackageDescription + +let package = Package( + name: "FormX", + platforms: [.iOS(.v14)], + products: [ + .library( + name: "FormX", + targets: ["FormXTarget"]) + ], + targets: [ + .target(name: "FormXTarget", + dependencies: ["FormX"], + path: ".", + linkerSettings: [ + .linkedLibrary("c++"), + .linkedFramework("OpenCL", .when(platforms: [.macOS])), + .linkedFramework("Accelerate") + ] + ), + .binaryTarget(name: "FormX", + url: "https://github.com/oursky/formx-sdk/releases/download/0.4.11/FormX.xcframework.zip", + checksum: "94a3cccadcf4d0d18d387e6c552f5daeebef029c37819f24292ec87387b90da7" + ) + ] +) diff --git a/dummy.swift b/dummy.swift new file mode 100644 index 0000000..e69de29 diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..7d5eb18 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,5 @@ +install: + - wget https://github.com/oursky/formx-sdk/releases/download/0.4.11/ai.formx.sdk.aar + - wget https://github.com/oursky/formx-sdk/releases/download/0.4.11/pom.xml -O sdk-pom.xml + - rm -f pom.xml + - mvn install:install-file -Dfile=ai.formx.sdk.aar -Dpackaging=aar -DpomFile=sdk-pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..2144a00 --- /dev/null +++ b/pom.xml @@ -0,0 +1,106 @@ + + + + + + + + 4.0.0 + ai.formx + sdk + 0.4.11 + aar + + + androidx.databinding + viewbinding + 7.2.2 + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + 1.8.10 + compile + + + androidx.appcompat + appcompat + 1.6.1 + runtime + + + androidx.core + core + 1.10.1 + runtime + + + androidx.startup + startup-runtime + 1.1.1 + runtime + + + androidx.camera + camera-camera2 + 1.3.0-alpha07 + runtime + + + androidx.camera + camera-lifecycle + 1.3.0-alpha07 + runtime + + + androidx.camera + camera-view + 1.3.0-alpha07 + runtime + + + androidx.exifinterface + exifinterface + 1.3.6 + runtime + + + com.github.oursky + opencv + 4.6.0-SNAPSHOT + runtime + + + com.google.mlkit + object-detection-custom + 17.0.0 + runtime + + + com.squareup.retrofit2 + retrofit + 2.9.0 + runtime + + + com.squareup.retrofit2 + converter-gson + 2.9.0 + runtime + + + org.jetbrains.kotlinx + kotlinx-coroutines-core + 1.4.3 + runtime + + + androidx.lifecycle + lifecycle-runtime-ktx + 2.5.1 + runtime + + +