diff --git a/FormX.podspec b/FormX.podspec new file mode 100644 index 0000000..a0f0e5e --- /dev/null +++ b/FormX.podspec @@ -0,0 +1,23 @@ +Pod::Spec.new do |s| + s.name = 'FormX' + s.version = '0.1.25' + 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.1.25/FormX.xcframework.zip" } + s.vendored_frameworks = 'FormX.xcframework' + + s.ios.deployment_target = '11.0' + s.ios.frameworks = ["Accelerate"] + s.osx.deployment_target = "10.15" + s.osx.frameworks = ['OpenCL', '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..5984256 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:5.3 + +import PackageDescription + +let package = Package( + name: "FormX", + platforms: [.iOS(.v11), .macOS(.v10_14)], + 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.1.25/FormX.xcframework.zip", + checksum: "5d5db02b8141b2cef1e3ceb2b3bcc72044bfd5a250cd7ad5c91e2699d05ce633" + ) + ] +) 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..b85fd3e --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,5 @@ +install: + - wget https://github.com/oursky/formx-sdk/releases/download/0.1.25/ai.formx.sdk.aar + - wget https://github.com/oursky/formx-sdk/releases/download/0.1.25/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..0c482bd --- /dev/null +++ b/pom.xml @@ -0,0 +1,100 @@ + + + + + + + + 4.0.0 + ai.formx + sdk + 0.1.25 + aar + + + 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 + + + com.microsoft.onnxruntime + onnxruntime-android + 1.15.0 + 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.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 + + +