mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
* feat: add ios native modules * fix: extractMRZ * Add android OCR native module * wire native mrz module with adapter * wire Native modules and fix tests * fixes * fix license header logic * fix tests * fix types * fix: ci test * fix: android build ci * fix: ios build CI * add podfile.lock * add yarn.lock * update lock files * add yarn.lock * add license * order methods * update lock * pipeline fixes * prettier * update lock file * fix native modules on external apps * bundle @selfxyz/common into mobile-sdk-alpha * chore: address yarn lock issues (#1004) * address yarn lock issues * fix postinstall * update lock * fix build issues * fix pipeline issue * fix ci * fix bad merge * fix android ci * fix ci errors * fix mobile sdk ci. stop gap fix for now until we create a package * tweaks * retry aapt2 approach * use ^0.8.4 instead of ^0.8.0 due to the use of custom errors * workflow fixes * fix file * update * fix ci * test ci fix * fix test --------- Co-authored-by: Justin Hernandez <transphorm@gmail.com> Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
42 lines
1.2 KiB
Ruby
42 lines
1.2 KiB
Ruby
require 'json'
|
|
|
|
# Handle both local development and published package scenarios
|
|
package_json_path = File.join(__dir__, '..', 'package.json')
|
|
if File.exist?(package_json_path)
|
|
package = JSON.parse(File.read(package_json_path))
|
|
else
|
|
# Fallback for when package.json is not found
|
|
package = {
|
|
'version' => '0.1.0',
|
|
'description' => 'Self Mobile SDK Alpha'
|
|
}
|
|
end
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = "mobile-sdk-alpha"
|
|
s.version = package['version']
|
|
s.summary = package['description']
|
|
s.homepage = "https://github.com/selfxyz/self"
|
|
s.license = "BUSL-1.1"
|
|
s.author = { "Self" => "team@self.xyz" }
|
|
s.platform = :ios, "13.0"
|
|
s.source = { :path => "." }
|
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
s.public_header_files = "ios/**/*.h"
|
|
|
|
s.dependency "React-Core"
|
|
s.dependency "QKMRZParser"
|
|
s.dependency "NFCPassportReader"
|
|
|
|
s.pod_target_xcconfig = {
|
|
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/Headers/Public/React-Core"',
|
|
'DEFINES_MODULE' => 'YES',
|
|
'SWIFT_INCLUDE_PATHS' => '$(PODS_ROOT)/mobile-sdk-alpha/ios'
|
|
}
|
|
|
|
# Ensure iOS files are properly linked
|
|
s.platform = :ios, "13.0"
|
|
s.requires_arc = true
|
|
|
|
end
|