Skip to content

Commit

Permalink
Refactor iOS implementation package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
droibit committed Jul 20, 2024
1 parent c66e455 commit 96a5a2d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ios_implementation_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:
- develop
paths:
- 'flutter_custom_tabs_ios/**'
- '.github/workflows/ios_implementation_package.yml'
- '!**.md'
pull_request:
paths:
- 'flutter_custom_tabs_ios/**'
- '.github/workflows/ios_implementation_package.yml'
- '!**.md'

jobs:
Expand All @@ -37,9 +39,12 @@ jobs:
- name: Statically analyze the Swift code for any errors
run: make lint
working-directory: ./flutter_custom_tabs_ios
- name: Run unit tests
- name: Run flutter unit tests
run: flutter test
working-directory: ./flutter_custom_tabs_ios
- name: Build example iOS app
run: flutter build ios --no-codesign
working-directory: ./flutter_custom_tabs_ios/example
working-directory: ./flutter_custom_tabs_ios/example
- name: Run iOS unit tests
run: make test
working-directory: ./flutter_custom_tabs_ios/example
15 changes: 15 additions & 0 deletions flutter_custom_tabs_ios/example/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TEST_SCHEME := Runner
TEST_PROJECT := ios/Runner.xcworkspace
TEST_SDK := iphonesimulator
TESET_DESTINATION := 'platform=iOS Simulator,OS=latest,name=iPhone 15'

.PHONY: test
test:
set -o pipefail && \
xcodebuild test \
-workspace $(TEST_PROJECT) \
-configuration Debug \
-scheme $(TEST_SCHEME) \
-sdk $(TEST_SDK) \
-destination $(TESET_DESTINATION) \
CODE_SIGNING_ALLOWED='NO'
2 changes: 1 addition & 1 deletion flutter_custom_tabs_ios/example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
2 changes: 1 addition & 1 deletion flutter_custom_tabs_ios/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ SPEC CHECKSUMS:
flutter_custom_tabs_ios: a651b18786388923b62de8c0537607de87c2eccf
integration_test: 13825b8a9334a850581300559b8839134b124670

PODFILE CHECKSUM: a1ecc920bdd4a2a706a17f3bc3db5d6a10f3cd6e
PODFILE CHECKSUM: 503b9a445cf73afeaacc1a6a56c1ff9c4b7f1238

COCOAPODS: 1.15.2
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -615,6 +616,7 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -637,6 +639,7 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down

0 comments on commit 96a5a2d

Please sign in to comment.