From 8ab29c0a71b7f77c986928d1f4ad4f79bfbd94de Mon Sep 17 00:00:00 2001
From: FormX <hello@formx.ai>
Date: Fri, 4 Oct 2024 12:15:29 +0000
Subject: [PATCH] release: v0.5.1

---
 FormX.podspec |  21 ++++++++++
 Package.swift |  28 +++++++++++++
 dummy.swift   |   0
 jitpack.yml   |   5 +++
 pom.xml       | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 160 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..60809be
--- /dev/null
+++ b/FormX.podspec
@@ -0,0 +1,21 @@
+Pod::Spec.new do |s|
+    s.name             = 'FormX'
+    s.version          = '0.5.1'
+    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.5.1/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..dba9a51
--- /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.5.1/FormX.xcframework.zip",
+            checksum: "f51ced2e097a84102dee785e707748b19571d9f7636e78cd1c796875347b47ef"
+        )
+    ]
+)
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..af862a2
--- /dev/null
+++ b/jitpack.yml
@@ -0,0 +1,5 @@
+install:
+  - wget https://github.com/oursky/formx-sdk/releases/download/0.5.1/ai.formx.sdk.aar
+  - wget https://github.com/oursky/formx-sdk/releases/download/0.5.1/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..fdba311
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <!-- This module was also published with a richer model, Gradle metadata,  -->
+  <!-- which should be used instead. Do not delete the following line which  -->
+  <!-- is to indicate to Gradle or any Gradle module metadata file consumer  -->
+  <!-- that they should prefer consuming it instead. -->
+  <!-- do_not_remove: published-with-gradle-metadata -->
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>ai.formx</groupId>
+  <artifactId>sdk</artifactId>
+  <version>0.5.1</version>
+  <packaging>aar</packaging>
+  <dependencies>
+    <dependency>
+      <groupId>androidx.databinding</groupId>
+      <artifactId>viewbinding</artifactId>
+      <version>7.2.2</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jetbrains.kotlin</groupId>
+      <artifactId>kotlin-stdlib-jdk8</artifactId>
+      <version>1.8.10</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.appcompat</groupId>
+      <artifactId>appcompat</artifactId>
+      <version>1.6.1</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.core</groupId>
+      <artifactId>core</artifactId>
+      <version>1.10.1</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.startup</groupId>
+      <artifactId>startup-runtime</artifactId>
+      <version>1.1.1</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.camera</groupId>
+      <artifactId>camera-camera2</artifactId>
+      <version>1.3.0-alpha07</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.camera</groupId>
+      <artifactId>camera-lifecycle</artifactId>
+      <version>1.3.0-alpha07</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.camera</groupId>
+      <artifactId>camera-view</artifactId>
+      <version>1.3.0-alpha07</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.exifinterface</groupId>
+      <artifactId>exifinterface</artifactId>
+      <version>1.3.6</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.github.oursky</groupId>
+      <artifactId>opencv</artifactId>
+      <version>4.6.0-SNAPSHOT</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.google.mlkit</groupId>
+      <artifactId>object-detection-custom</artifactId>
+      <version>17.0.0</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.squareup.retrofit2</groupId>
+      <artifactId>retrofit</artifactId>
+      <version>2.9.0</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.squareup.retrofit2</groupId>
+      <artifactId>converter-gson</artifactId>
+      <version>2.9.0</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jetbrains.kotlinx</groupId>
+      <artifactId>kotlinx-coroutines-core</artifactId>
+      <version>1.4.3</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>androidx.lifecycle</groupId>
+      <artifactId>lifecycle-runtime-ktx</artifactId>
+      <version>2.5.1</version>
+      <scope>runtime</scope>
+    </dependency>
+  </dependencies>
+</project>