Skip to content

Commit 315e8ef

Browse files
committed
Fixes issues with ios and macos unit tests in CI
1 parent e10d5ed commit 315e8ef

321 files changed

Lines changed: 606 additions & 7 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/setup-darwin/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ runs:
5959
run: flutter pub get
6060
shell: bash
6161

62+
- name: Fix iOS minimum deployment target for SPM
63+
if: inputs.platform == 'iOS'
64+
working-directory: auth0_flutter/example/ios/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage
65+
run: sed -i '' 's/\.iOS(".*")/\.iOS("14.0")/g' Package.swift
66+
shell: bash
67+
68+
- name: Fix macOS minimum deployment target for SPM
69+
if: inputs.platform == 'macOS'
70+
working-directory: auth0_flutter/example/macos/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage
71+
run: sed -i '' 's/\.macOS(".*")/\.macOS("11.0")/g' Package.swift
72+
shell: bash
73+
6274
- name: Set .env
6375
working-directory: auth0_flutter/example
6476
run: printf '%s\n%s\n%s' 'AUTH0_DOMAIN=${{ inputs.auth0-domain }}' 'AUTH0_CLIENT_ID=${{ inputs.auth0-client-id }}' 'AUTH0_CUSTOM_SCHEME=demo' >> .env

Report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../Report.yml

auth0_flutter/example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
);
1616
dependencies = (
1717
);
18+
name = "Flutter Assemble";
1819
productName = FLX;
1920
};
2021
/* End PBXAggregateTarget section */
@@ -39,6 +40,7 @@
3940
5C13992E2B0EB5F3006DCE54 /* AuthAPISignupMethodHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1399122B0EB5F3006DCE54 /* AuthAPISignupMethodHandlerTests.swift */; };
4041
5C13992F2B0EB5F3006DCE54 /* AuthAPIRenewMethodHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1399132B0EB5F3006DCE54 /* AuthAPIRenewMethodHandlerTests.swift */; };
4142
5C1399302B0EB5F3006DCE54 /* AuthAPILoginWithOTPMethodHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1399142B0EB5F3006DCE54 /* AuthAPILoginWithOTPMethodHandlerTests.swift */; };
43+
5C1399312B0EB5F3006DCE54 /* AuthAPILoginUsernameOrEmailMethodHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1399152B0EB5F3006DCE54 /* AuthAPILoginUsernameOrEmailMethodHandlerTests.swift */; };
4244
5C1399322B0EB5F3006DCE54 /* AuthAPIHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1399162B0EB5F3006DCE54 /* AuthAPIHandlerTests.swift */; };
4345
5C1399332B0EB5F3006DCE54 /* AuthAPIResetPasswordMethodHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1399172B0EB5F3006DCE54 /* AuthAPIResetPasswordMethodHandlerTests.swift */; };
4446
5C1399342B0EB5F3006DCE54 /* AuthAPISpies.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C1399182B0EB5F3006DCE54 /* AuthAPISpies.swift */; };
@@ -87,6 +89,7 @@
8789
dstSubfolderSpec = 10;
8890
files = (
8991
);
92+
name = "Bundle Framework";
9093
runOnlyForDeploymentPostprocessing = 0;
9194
};
9295
/* End PBXCopyFilesBuildPhase section */
@@ -97,9 +100,13 @@
97100
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
98101
33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
99102
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
103+
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
104+
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
105+
33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = "<group>"; };
100106
33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = "<group>"; };
101107
33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = "<group>"; };
102108
33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = "<group>"; };
109+
33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = "<group>"; };
103110
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
104111
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
105112
5C1399032B0D3526006DCE54 /* RunnerDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RunnerDebug.entitlements; sourceTree = "<group>"; };
@@ -117,6 +124,7 @@
117124
5C1399122B0EB5F3006DCE54 /* AuthAPISignupMethodHandlerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthAPISignupMethodHandlerTests.swift; sourceTree = "<group>"; };
118125
5C1399132B0EB5F3006DCE54 /* AuthAPIRenewMethodHandlerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthAPIRenewMethodHandlerTests.swift; sourceTree = "<group>"; };
119126
5C1399142B0EB5F3006DCE54 /* AuthAPILoginWithOTPMethodHandlerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthAPILoginWithOTPMethodHandlerTests.swift; sourceTree = "<group>"; };
127+
5C1399152B0EB5F3006DCE54 /* AuthAPILoginUsernameOrEmailMethodHandlerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthAPILoginUsernameOrEmailMethodHandlerTests.swift; sourceTree = "<group>"; };
120128
5C1399162B0EB5F3006DCE54 /* AuthAPIHandlerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthAPIHandlerTests.swift; sourceTree = "<group>"; };
121129
5C1399172B0EB5F3006DCE54 /* AuthAPIResetPasswordMethodHandlerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthAPIResetPasswordMethodHandlerTests.swift; sourceTree = "<group>"; };
122130
5C1399182B0EB5F3006DCE54 /* AuthAPISpies.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthAPISpies.swift; sourceTree = "<group>"; };
@@ -161,12 +169,6 @@
161169
/* End PBXFrameworksBuildPhase section */
162170

163171
/* Begin PBXGroup section */
164-
0A83CD3842B42E7E66FE5235 /* Frameworks */ = {
165-
isa = PBXGroup;
166-
children = (
167-
);
168-
sourceTree = "<group>";
169-
};
170172
33BA886A226E78AF003329D5 /* Configs */ = {
171173
isa = PBXGroup;
172174
children = (
@@ -186,7 +188,6 @@
186188
5C1399042B0EB5F3006DCE54 /* Tests */,
187189
5CD8A5562B1179EE00313321 /* UITests */,
188190
33CC10EE2044A3C60003C045 /* Products */,
189-
0A83CD3842B42E7E66FE5235 /* Frameworks */,
190191
);
191192
sourceTree = "<group>";
192193
};
@@ -197,6 +198,7 @@
197198
331C80D5294CF71000263BE5 /* RunnerTests.xctest */,
198199
5CD8A5552B1179EE00313321 /* RunnerUITests.xctest */,
199200
);
201+
name = Products;
200202
sourceTree = "<group>";
201203
};
202204
33CC11242044D66E0003C045 /* Resources */ = {
@@ -206,6 +208,7 @@
206208
33CC10F42044A3C60003C045 /* MainMenu.xib */,
207209
33CC10F72044A3C60003C045 /* Info.plist */,
208210
);
211+
name = Resources;
209212
path = ..;
210213
sourceTree = "<group>";
211214
};
@@ -245,6 +248,7 @@
245248
5C13991A2B0EB5F3006DCE54 /* SwiftAuth0FlutterPluginTests.swift */,
246249
5C13991B2B0EB5F3006DCE54 /* CredentialsManager */,
247250
);
251+
name = Tests;
248252
path = ../ios/Tests;
249253
sourceTree = "<group>";
250254
};
@@ -268,6 +272,7 @@
268272
5C1399122B0EB5F3006DCE54 /* AuthAPISignupMethodHandlerTests.swift */,
269273
5C1399132B0EB5F3006DCE54 /* AuthAPIRenewMethodHandlerTests.swift */,
270274
5C1399142B0EB5F3006DCE54 /* AuthAPILoginWithOTPMethodHandlerTests.swift */,
275+
5C1399152B0EB5F3006DCE54 /* AuthAPILoginUsernameOrEmailMethodHandlerTests.swift */,
271276
5C1399162B0EB5F3006DCE54 /* AuthAPIHandlerTests.swift */,
272277
5C1399172B0EB5F3006DCE54 /* AuthAPIResetPasswordMethodHandlerTests.swift */,
273278
5C1399182B0EB5F3006DCE54 /* AuthAPISpies.swift */,
@@ -314,6 +319,7 @@
314319
dependencies = (
315320
331C80DA294CF71000263BE5 /* PBXTargetDependency */,
316321
);
322+
name = RunnerTests;
317323
productName = RunnerTests;
318324
productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;
319325
productType = "com.apple.product-type.bundle.unit-test";
@@ -333,6 +339,7 @@
333339
dependencies = (
334340
33CC11202044C79F0003C045 /* PBXTargetDependency */,
335341
);
342+
name = Runner;
336343
packageProductDependencies = (
337344
78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */,
338345
);
@@ -353,6 +360,7 @@
353360
dependencies = (
354361
5CD8A55C2B1179EE00313321 /* PBXTargetDependency */,
355362
);
363+
name = RunnerUITests;
356364
productName = RunnerUITests;
357365
productReference = 5CD8A5552B1179EE00313321 /* RunnerUITests.xctest */;
358366
productType = "com.apple.product-type.bundle.ui-testing";
@@ -457,6 +465,7 @@
457465
);
458466
runOnlyForDeploymentPostprocessing = 0;
459467
shellPath = /bin/sh;
468+
shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
460469
};
461470
33CC111E2044C6BF0003C045 /* ShellScript */ = {
462471
isa = PBXShellScriptBuildPhase;
@@ -506,6 +515,7 @@
506515
5C13992F2B0EB5F3006DCE54 /* AuthAPIRenewMethodHandlerTests.swift in Sources */,
507516
5C1399332B0EB5F3006DCE54 /* AuthAPIResetPasswordMethodHandlerTests.swift in Sources */,
508517
5C13993A2B0EB5F3006DCE54 /* CredentialsManagerExtensionsTests.swift in Sources */,
518+
5C1399312B0EB5F3006DCE54 /* AuthAPILoginUsernameOrEmailMethodHandlerTests.swift in Sources */,
509519
5C1399382B0EB5F3006DCE54 /* CredentialsManagerSaveMethodHandlerTests.swift in Sources */,
510520
5C13992B2B0EB5F3006DCE54 /* Mocks.swift in Sources */,
511521
5C13993D2B0EB5F3006DCE54 /* CredentialsManagerHandlerTests.swift in Sources */,
@@ -558,6 +568,7 @@
558568
children = (
559569
33CC10F52044A3C60003C045 /* Base */,
560570
);
571+
name = MainMenu.xib;
561572
path = Runner;
562573
sourceTree = "<group>";
563574
};
@@ -576,6 +587,7 @@
576587
SWIFT_VERSION = 5.0;
577588
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example";
578589
};
590+
name = Debug;
579591
};
580592
331C80DC294CF71000263BE5 /* Release */ = {
581593
isa = XCBuildConfiguration;
@@ -589,6 +601,7 @@
589601
SWIFT_VERSION = 5.0;
590602
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example";
591603
};
604+
name = Release;
592605
};
593606
331C80DD294CF71000263BE5 /* Profile */ = {
594607
isa = XCBuildConfiguration;
@@ -602,6 +615,7 @@
602615
SWIFT_VERSION = 5.0;
603616
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example";
604617
};
618+
name = Profile;
605619
};
606620
338D0CE9231458BD00FA5F75 /* Profile */ = {
607621
isa = XCBuildConfiguration;
@@ -647,6 +661,7 @@
647661
SWIFT_COMPILATION_MODE = wholemodule;
648662
SWIFT_OPTIMIZATION_LEVEL = "-O";
649663
};
664+
name = Profile;
650665
};
651666
338D0CEA231458BD00FA5F75 /* Profile */ = {
652667
isa = XCBuildConfiguration;
@@ -666,13 +681,15 @@
666681
PROVISIONING_PROFILE_SPECIFIER = "";
667682
SWIFT_VERSION = 5.0;
668683
};
684+
name = Profile;
669685
};
670686
338D0CEB231458BD00FA5F75 /* Profile */ = {
671687
isa = XCBuildConfiguration;
672688
buildSettings = {
673689
CODE_SIGN_STYLE = Manual;
674690
PRODUCT_NAME = "$(TARGET_NAME)";
675691
};
692+
name = Profile;
676693
};
677694
33CC10F92044A3C60003C045 /* Debug */ = {
678695
isa = XCBuildConfiguration;
@@ -725,6 +742,7 @@
725742
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
726743
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
727744
};
745+
name = Debug;
728746
};
729747
33CC10FA2044A3C60003C045 /* Release */ = {
730748
isa = XCBuildConfiguration;
@@ -770,6 +788,7 @@
770788
SWIFT_COMPILATION_MODE = wholemodule;
771789
SWIFT_OPTIMIZATION_LEVEL = "-O";
772790
};
791+
name = Release;
773792
};
774793
33CC10FC2044A3C60003C045 /* Debug */ = {
775794
isa = XCBuildConfiguration;
@@ -791,6 +810,7 @@
791810
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
792811
SWIFT_VERSION = 5.0;
793812
};
813+
name = Debug;
794814
};
795815
33CC10FD2044A3C60003C045 /* Release */ = {
796816
isa = XCBuildConfiguration;
@@ -810,20 +830,23 @@
810830
PROVISIONING_PROFILE_SPECIFIER = "";
811831
SWIFT_VERSION = 5.0;
812832
};
833+
name = Release;
813834
};
814835
33CC111C2044C6BA0003C045 /* Debug */ = {
815836
isa = XCBuildConfiguration;
816837
buildSettings = {
817838
CODE_SIGN_STYLE = Manual;
818839
PRODUCT_NAME = "$(TARGET_NAME)";
819840
};
841+
name = Debug;
820842
};
821843
33CC111D2044C6BA0003C045 /* Release */ = {
822844
isa = XCBuildConfiguration;
823845
buildSettings = {
824846
CODE_SIGN_STYLE = Automatic;
825847
PRODUCT_NAME = "$(TARGET_NAME)";
826848
};
849+
name = Release;
827850
};
828851
5CD8A55D2B1179EE00313321 /* Debug */ = {
829852
isa = XCBuildConfiguration;
@@ -856,6 +879,7 @@
856879
SWIFT_VERSION = 5.0;
857880
TEST_TARGET_NAME = Runner;
858881
};
882+
name = Debug;
859883
};
860884
5CD8A55E2B1179EE00313321 /* Release */ = {
861885
isa = XCBuildConfiguration;
@@ -886,6 +910,7 @@
886910
SWIFT_VERSION = 5.0;
887911
TEST_TARGET_NAME = Runner;
888912
};
913+
name = Release;
889914
};
890915
5CD8A55F2B1179EE00313321 /* Profile */ = {
891916
isa = XCBuildConfiguration;
@@ -916,6 +941,7 @@
916941
SWIFT_VERSION = 5.0;
917942
TEST_TARGET_NAME = Runner;
918943
};
944+
name = Profile;
919945
};
920946
/* End XCBuildConfiguration section */
921947

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../darwin/auth0_flutter/.build/index-build/checkouts/JWTDecode.swift/.github/CODEOWNERS
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../darwin/auth0_flutter/.build/index-build/checkouts/JWTDecode.swift/.github/ISSUE_TEMPLATE/Bug
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../darwin/auth0_flutter/.build/index-build/checkouts/JWTDecode.swift/.github/PULL_REQUEST_TEMPLATE.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../../darwin/auth0_flutter/.build/index-build/checkouts/JWTDecode.swift/.github/actions/setup/action.yml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../../darwin/auth0_flutter/.build/index-build/checkouts/JWTDecode.swift/.github/actions/test/action.yml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../darwin/auth0_flutter/.build/index-build/checkouts/JWTDecode.swift/.github/stale.yml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../darwin/auth0_flutter/.build/index-build/checkouts/JWTDecode.swift/.github/workflows/main.yml

0 commit comments

Comments
 (0)