Skip to content

Commit

Permalink
Merge pull request #11 from faberNovel/feature/spm
Browse files Browse the repository at this point in the history
Make ADFormController available through SPM
  • Loading branch information
alexandre-pod authored Apr 26, 2024
2 parents bc8d7b8 + 4563542 commit 59b5aed
Show file tree
Hide file tree
Showing 20 changed files with 348 additions and 237 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
ruby-version: 3.3.0
bundler-cache: true

- name: Bundle install
run: bundle install
Expand All @@ -24,4 +25,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_CI }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN_CI }}
run: bundle exec fastlane publish_release
run: bundle exec fastlane publish_release
16 changes: 3 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,9 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
ruby-version: 3.3.0
bundler-cache: true

- name: Ruby cache
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle check || bundle install
- name: Pods cache
uses: actions/cache@v1
with:
Expand All @@ -40,4 +30,4 @@ jobs:
bundle exec pod install
fi
- name: Build and test
run: bundle exec fastlane ci_check
run: bundle exec fastlane ci_check
8 changes: 3 additions & 5 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5

- name: Bundle install
run: bundle install
ruby-version: 3.3.0
bundler-cache: true

- name: Prepare release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_CI }}
run: bundle exec fastlane create_release_pr
run: bundle exec fastlane create_release_pr
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.0
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ADFormController.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Pod::Spec.new do |spec|
spec.name = 'ADFormController'
spec.version = '6.0.6'
spec.version = '6.1.0'
spec.authors = 'Applidium'
spec.license = 'none'
spec.homepage = 'http://applidium.com'
spec.summary = 'Applidium\'s form controller'
spec.platform = 'ios', '10.0'
spec.platform = 'ios', '13.0'
spec.license = { :type => 'Commercial', :text => 'Created and licensed by Applidium. Copyright 2016 Applidium. All rights reserved.' }
spec.source = { :git => 'https://github.com/faberNovel/ADFormController.git', :tag => "v#{spec.version}" }
spec.source_files = 'Modules/ADFormController/Classes/*.{h,m,swift}'
spec.resource_bundle = {'ADFormController' => 'Modules/ADFormController/Ressources/InputAccessoryView.xcassets'}
spec.framework = 'Foundation', 'UIKit'
spec.requires_arc = true
spec.dependency 'ADKeyboardManager', '~> 6.0'
spec.dependency 'ADKeyboardManager', '~> 7.0'
spec.swift_version = '5.0'
end
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file.
`ADFormController` adheres to [Semantic Versioning](http://semver.org/).

## [6.1.0]

### Added
- Add support for Swift Package Manager

### Update
- Update dependencies

### Removed
- Drop support for iOS 10, 11 and 12

## [6.0.6]

### Fix
Expand Down
26 changes: 14 additions & 12 deletions FormDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@
"${BUILT_PRODUCTS_DIR}/CocoaLumberjack/CocoaLumberjack.framework",
"${BUILT_PRODUCTS_DIR}/ADFormController/ADFormController.framework",
"${BUILT_PRODUCTS_DIR}/ADKeyboardManager/ADKeyboardManager.framework",
"${BUILT_PRODUCTS_DIR}/CwlCatchException/CwlCatchException.framework",
"${BUILT_PRODUCTS_DIR}/CwlCatchExceptionSupport/CwlCatchExceptionSupport.framework",
"${BUILT_PRODUCTS_DIR}/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.framework",
"${BUILT_PRODUCTS_DIR}/CwlPosixPreconditionTesting/CwlPosixPreconditionTesting.framework",
"${BUILT_PRODUCTS_DIR}/CwlPreconditionTesting/CwlPreconditionTesting.framework",
"${BUILT_PRODUCTS_DIR}/FBSnapshotTestCase/FBSnapshotTestCase.framework",
"${BUILT_PRODUCTS_DIR}/Nimble/Nimble.framework",
"${BUILT_PRODUCTS_DIR}/Nimble-Snapshots/Nimble_Snapshots.framework",
Expand All @@ -595,6 +600,11 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CocoaLumberjack.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ADFormController.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ADKeyboardManager.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CwlCatchException.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CwlCatchExceptionSupport.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CwlMachBadInstructionHandler.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CwlPosixPreconditionTesting.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CwlPreconditionTesting.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBSnapshotTestCase.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Nimble.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Nimble_Snapshots.framework",
Expand Down Expand Up @@ -758,7 +768,6 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
INFOPLIST_FILE = FormDemoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -789,7 +798,6 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
INFOPLIST_FILE = FormDemoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -820,7 +828,6 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
INFOPLIST_FILE = FormDemoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -851,7 +858,6 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
INFOPLIST_FILE = FormDemoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -903,7 +909,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UUID_0)";
SDKROOT = iphoneos;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -923,7 +929,6 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "FormDemo-Prefix.pch";
INFOPLIST_FILE = "Configuration/FormDemo/FormDemo-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.applidium.FormDemo;
Expand Down Expand Up @@ -973,7 +978,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UUID_0)";
SDKROOT = iphoneos;
Expand All @@ -994,7 +999,6 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "FormDemo-Prefix.pch";
INFOPLIST_FILE = "Configuration/FormDemo/FormDemo-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.applidium.FormDemo;
Expand Down Expand Up @@ -1046,7 +1050,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UUID_0)";
SDKROOT = iphoneos;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -1065,7 +1069,6 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "FormDemo-Prefix.pch";
INFOPLIST_FILE = "Configuration/FormDemo/FormDemo-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.applidium.FormDemo;
Expand Down Expand Up @@ -1118,7 +1121,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UUID_0)";
SDKROOT = iphoneos;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -1137,7 +1140,6 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "FormDemo-Prefix.pch";
INFOPLIST_FILE = "Configuration/FormDemo/FormDemo-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.applidium.FormDemo;
Expand Down
2 changes: 1 addition & 1 deletion FormDemoTests/FormDirectionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum AccessoryViewDirection: Int {
case next
}

protocol FormDirectionManagerDelegate: class {
protocol FormDirectionManagerDelegate: AnyObject {
func formDirectionManager(_ formDirectionManager: FormDirectionManager, canEditCellAtIndexPath indexPath: IndexPath) -> Bool
}

Expand Down
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
source 'https://rubygems.org'

ruby '2.6.5'
ruby '3.3.0'

gem 'cocoapods', '1.10.0'
gem 'CFPropertyList', '2.3.6'
gem 'fastlane'
gem 'cocoapods', '~> 1.15'
gem 'CFPropertyList', '~> 3.0'
gem 'fastlane', '~> 2.220'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Loading

0 comments on commit 59b5aed

Please sign in to comment.