-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add lottie to SmileID project as well * feat: resolved packages * feat: add updating compile sources to primary workflow * feat: build for spm on every PR * feat: modify build script * feat:test * feat:add product name to lottie * feat: bump version to 10.1.3
- Loading branch information
Showing
10 changed files
with
1,029 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Release Notes | ||
|
||
## 10.1.3 | ||
|
||
#### Fixed | ||
|
||
* Fix lottie SPM dependancy issues | ||
|
||
## 10.1.2 | ||
|
||
#### Fixed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ namespace :test do | |
|
||
desc 'Tests Swift Package Manager support' | ||
task :spm do | ||
xcodebuild('build -scheme "SmileID" -destination generic/platform=iOS') | ||
xcodebuild('build -scheme "SmileID" -destination generic/platform=iOS',"SmileID.xcodeproj") | ||
end | ||
end | ||
|
||
|
@@ -82,18 +82,28 @@ namespace :format do | |
end | ||
end | ||
|
||
def xcodebuild(command) | ||
def xcodebuild(command, project = "Example/SmileID.xcworkspace") | ||
# Determine the project flag based on the file extension | ||
project_flag = if project.end_with?(".xcworkspace") | ||
"-workspace" | ||
elsif project.end_with?(".xcodeproj") | ||
"-project" | ||
else | ||
raise ArgumentError, "Invalid project type. Must be .xcworkspace or .xcodeproj" | ||
end | ||
|
||
# Check if the mint tool is installed -- if so, pipe the xcodebuild output through xcbeautify | ||
`which mint` | ||
sh 'rm -rf ~/Library/Developer/Xcode/DerivedData/* && echo "Successfully flushed DerivedData"' | ||
if $?.success? | ||
sh "set -o pipefail && xcodebuild #{command} -workspace Example/SmileID.xcworkspace | mint run thii/[email protected]" | ||
sh "set -o pipefail && xcodebuild #{command} #{project_flag} #{project} | mint run thii/[email protected]" | ||
else | ||
sh "xcodebuild #{command} -workspace Example/SmileID.xcworkspace" | ||
sh "xcodebuild #{command} #{project_flag} #{project}" | ||
end | ||
end | ||
|
||
|
||
|
||
namespace :provision do | ||
desc 'Provision the app for building' | ||
task :ios do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
# We use the Example/SmileID.xcworkspace when | ||
# updating that it may not update the | ||
# updating that it won't update the | ||
# SmileID.xcodeproj on the root of the project | ||
# Which is used for SPM and Carthage | ||
# this will not affect the Example project | ||
|
||
require 'xcodeproj' | ||
|
||
project_path = 'SmileID.xcodeproj' | ||
project = Xcodeproj::Project.open(project_path) | ||
|
||
target = project.targets.find { |t| t.name == 'SmileIDFramework' } | ||
sources_build_phase = target.source_build_phase | ||
# Update a target with the Swift files | ||
def update_target(project, target_name) | ||
target = project.targets.find { |t| t.name == target_name } | ||
return unless target | ||
|
||
sources_build_phase = target.source_build_phase | ||
|
||
# Remove all files | ||
sources_build_phase.clear | ||
# Remove all files | ||
sources_build_phase.clear | ||
|
||
# Add all Swift files from the Sources folder in alphabetical order to avoid | ||
# having these be different every time Carthage is run and or this is run locally | ||
Dir.glob(File.join('Sources', '**', '*.swift')).sort.each do |file| | ||
sources_build_phase.add_file_reference(project.new_file(file)) | ||
# Add all Swift files from the Sources folder in alphabetical order | ||
Dir.glob(File.join('Sources', '**', '*.swift')).sort.each do |file| | ||
sources_build_phase.add_file_reference(project.new_file(file)) | ||
end | ||
end | ||
|
||
# Update both SmileID and SmileIDFramework targets | ||
update_target(project, 'SmileID') | ||
update_target(project, 'SmileIDFramework') | ||
|
||
project.save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'SmileID' | ||
s.version = '10.1.2' | ||
s.version = '10.1.3' | ||
s.summary = 'The Official Smile Identity iOS SDK.' | ||
s.homepage = 'https://docs.usesmileid.com/integration-options/mobile/ios-v10-beta' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.author = { 'Japhet' => '[email protected]', 'Juma Allan' => '[email protected]', 'Vansh Gandhi' => '[email protected]'} | ||
s.source = { :git => "https://github.com/smileidentity/ios.git", :tag => "v10.1.2" } | ||
s.source = { :git => "https://github.com/smileidentity/ios.git", :tag => "v10.1.3" } | ||
s.ios.deployment_target = '13.0' | ||
s.dependency 'Zip', '~> 2.1.0' | ||
s.dependency 'lottie-ios', '~> 4.4.2' | ||
|
Oops, something went wrong.