From f29db6f04f2efa2396561b546a08b3be04a3c7d1 Mon Sep 17 00:00:00 2001 From: FormX Date: Fri, 16 Jun 2023 06:24:21 +0000 Subject: [PATCH] release: v0.1.12 --- FormX.podspec | 23 ++++++++++++++ Package.swift | 29 +++++++++++++++++ dummy.swift | 0 jitpack.yml | 5 +++ pom.xml | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 145 insertions(+) create mode 100644 FormX.podspec create mode 100644 Package.swift create mode 100644 dummy.swift create mode 100644 jitpack.yml create mode 100644 pom.xml diff --git a/FormX.podspec b/FormX.podspec new file mode 100644 index 0000000..8f5902d --- /dev/null +++ b/FormX.podspec @@ -0,0 +1,23 @@ +Pod::Spec.new do |s| + s.name = 'FormX' + s.version = '0.1.12' + 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.12/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..3845f50 --- /dev/null +++ b/Package.swift @@ -0,0 +1,29 @@ +// 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"), + .unsafeFlags(["-Xlinker", "-ObjC"]) + ] + ), + .binaryTarget(name: "FormX", + url: "https://github.com/oursky/formx-sdk/releases/download/0.1.12/FormX.xcframework.zip", + checksum: "392eaeaa1004b7c812a667ba3e49b9155f74150a9025cef8ae554c18def50446" + ) + ] +) 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..2950aed --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,5 @@ +install: + - wget https://github.com/oursky/formx-sdk/releases/download/0.1.12/ai.formx.sdk.aar + - wget https://github.com/oursky/formx-sdk/releases/download/0.1.12/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..53346b0 --- /dev/null +++ b/pom.xml @@ -0,0 +1,88 @@ + + + + + + + + 4.0.0 + ai.formx + sdk + 0.1.12 + aar + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + 1.6.21 + compile + + + androidx.appcompat + appcompat + 1.5.1 + runtime + + + androidx.startup + startup-runtime + 1.1.1 + runtime + + + com.microsoft.onnxruntime + onnxruntime-android + 1.15.0 + runtime + + + androidx.camera + camera-camera2 + 1.2.0-alpha04 + runtime + + + androidx.camera + camera-lifecycle + 1.2.0-alpha04 + runtime + + + androidx.camera + camera-view + 1.2.0-alpha04 + 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 + + +