From 0db5730a70da24e93e4b64022d4d1787b1dda473 Mon Sep 17 00:00:00 2001 From: seilylook Date: Mon, 11 Mar 2024 16:01:30 +0900 Subject: [PATCH 1/4] config: patrol setting --- lib/app_test.dart | 5 ---- macos/Flutter/GeneratedPluginRegistrant.swift | 2 -- pubspec.lock | 26 +------------------ pubspec.yaml | 10 ++++++- 4 files changed, 10 insertions(+), 33 deletions(-) diff --git a/lib/app_test.dart b/lib/app_test.dart index 3928a70..8b13789 100644 --- a/lib/app_test.dart +++ b/lib/app_test.dart @@ -1,6 +1 @@ -import 'package:tunefun_front/main.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:patrol/patrol.dart'; -void main() {} diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 7dbf262..12808e0 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -12,7 +12,6 @@ import firebase_messaging import flutter_local_notifications import package_info_plus import path_provider_foundation -import patrol func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AmplifySecureStoragePlugin.register(with: registry.registrar(forPlugin: "AmplifySecureStoragePlugin")) @@ -22,5 +21,4 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin")) FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) - PatrolPlugin.register(with: registry.registrar(forPlugin: "PatrolPlugin")) } diff --git a/pubspec.lock b/pubspec.lock index e93a2d2..3eb5cad 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -217,14 +217,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.14.1" - equatable: - dependency: transitive - description: - name: equatable - sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2 - url: "https://pub.dev" - source: hosted - version: "2.0.5" fake_async: dependency: transitive description: @@ -599,22 +591,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.1" - patrol: - dependency: "direct main" - description: - name: patrol - sha256: a3934bc7bfef4bbe46ebcc24ed755f9ff1414dfb25cd91b419dfa8e1db6bde81 - url: "https://pub.dev" - source: hosted - version: "3.5.2" - patrol_finders: - dependency: transitive - description: - name: patrol_finders - sha256: ac33527cc1b63e3aa131dbd7107cfda8ee2df0fb4a4a423c067174a2e60db77b - url: "https://pub.dev" - source: hosted - version: "2.0.2" petitparser: dependency: transitive description: @@ -918,4 +894,4 @@ packages: version: "6.5.0" sdks: dart: ">=3.2.3 <4.0.0" - flutter: ">=3.16.0" + flutter: ">=3.10.0" diff --git a/pubspec.yaml b/pubspec.yaml index 647e872..f008006 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,7 +40,6 @@ dependencies: flutter_svg: ^2.0.9 http: ^1.2.0 fpdart: ^1.1.0 - patrol: ^3.5.2 amplify_flutter: ^1.6.1 amplify_core: ^1.6.3 amplify_analytics_pinpoint: ^1.6.3 @@ -64,6 +63,15 @@ dev_dependencies: # rules and activating additional ones. flutter_lints: ^2.0.0 +patrol: + app_name: tunefun_front + android: + package_name: com.example.tunefun_front + ios: + bundle_id: com.example.tunefunFront + macos: + bundle_id: com.example.tunefunFront.RunnerTests + # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec From 37c06dc06b4a34ea2b63b04d2c500c6cb009c055 Mon Sep 17 00:00:00 2001 From: seilylook Date: Wed, 13 Mar 2024 18:03:52 +0900 Subject: [PATCH 2/4] config: patrol integrate with android,ios,macos --- android/app/build.gradle | 12 +- .../tunefun_front/MainActivityTest.java | 33 ++ {lib => integration_test}/app_test.dart | 0 integration_test/example_test.dart | 30 ++ integration_test/test_bundle.dart | 83 ++++ ios/Podfile | 4 + ios/Podfile.lock | 10 +- ios/Runner.xcodeproj/project.pbxproj | 276 ++++++++++++- .../xcshareddata/xcschemes/Runner.xcscheme | 10 + ios/RunnerTests-Bridging-Header.h | 4 + ios/RunnerUITests.m | 46 +++ ios/RunnerUITests/RunnerUITests.m | 6 + macos/Flutter/GeneratedPluginRegistrant.swift | 2 + macos/Podfile | 6 +- macos/Podfile.lock | 155 ++++++++ macos/Runner.xcodeproj/project.pbxproj | 376 +++++++++++++++++- .../xcshareddata/xcschemes/Runner.xcscheme | 11 + .../contents.xcworkspacedata | 3 + macos/Runner/DebugProfile.entitlements | 2 + macos/RunnerUITests/DebugProfile.entitlements | 14 + macos/RunnerUITests/Release.entitlements | 8 + macos/RunnerUITests/RunnerUITests.m | 5 + pubspec.lock | 26 +- pubspec.yaml | 1 + 24 files changed, 1108 insertions(+), 15 deletions(-) create mode 100644 android/app/src/androidTest/java/com/example/tunefun_front/MainActivityTest.java rename {lib => integration_test}/app_test.dart (100%) create mode 100644 integration_test/example_test.dart create mode 100644 integration_test/test_bundle.dart create mode 100644 ios/RunnerTests-Bridging-Header.h create mode 100644 ios/RunnerUITests.m create mode 100644 ios/RunnerUITests/RunnerUITests.m create mode 100644 macos/Podfile.lock create mode 100644 macos/RunnerUITests/DebugProfile.entitlements create mode 100644 macos/RunnerUITests/Release.entitlements create mode 100644 macos/RunnerUITests/RunnerUITests.m diff --git a/android/app/build.gradle b/android/app/build.gradle index 9b5be0e..a4e98ec 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -27,6 +27,11 @@ android { compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion + testOptions { + execution "ANDROIDX_TEST_ORCHESTRATOR" + } + + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 @@ -49,6 +54,9 @@ android { targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName + testInstrumentationRunner "pl.leancode.patrol.PatrolJUnitRunner" + testInstrumentationRunnerArguments clearPackageData: "true" + } buildTypes { @@ -64,4 +72,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + androidTestUtil "androidx.test:orchestrator:1.4.2" +} diff --git a/android/app/src/androidTest/java/com/example/tunefun_front/MainActivityTest.java b/android/app/src/androidTest/java/com/example/tunefun_front/MainActivityTest.java new file mode 100644 index 0000000..e70b440 --- /dev/null +++ b/android/app/src/androidTest/java/com/example/tunefun_front/MainActivityTest.java @@ -0,0 +1,33 @@ +package com.example.tunefun_front; // replace "com.example.myapp" with your app's package + +import androidx.test.platform.app.InstrumentationRegistry; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameters; +import pl.leancode.patrol.PatrolJUnitRunner; + +@RunWith(Parameterized.class) +public class MainActivityTest { + @Parameters(name = "{0}") + public static Object[] testCases() { + PatrolJUnitRunner instrumentation = (PatrolJUnitRunner) InstrumentationRegistry.getInstrumentation(); + // replace "MainActivity.class" with "io.flutter.embedding.android.FlutterActivity.class" + // if your AndroidManifest is using: android:name="io.flutter.embedding.android.FlutterActivity" + instrumentation.setUp(MainActivity.class); + instrumentation.waitForPatrolAppService(); + return instrumentation.listDartTests(); + } + + public MainActivityTest(String dartTestName) { + this.dartTestName = dartTestName; + } + + private final String dartTestName; + + @Test + public void runDartTest() { + PatrolJUnitRunner instrumentation = (PatrolJUnitRunner) InstrumentationRegistry.getInstrumentation(); + instrumentation.runDartTest(dartTestName); + } +} diff --git a/lib/app_test.dart b/integration_test/app_test.dart similarity index 100% rename from lib/app_test.dart rename to integration_test/app_test.dart diff --git a/integration_test/example_test.dart b/integration_test/example_test.dart new file mode 100644 index 0000000..2cc69fb --- /dev/null +++ b/integration_test/example_test.dart @@ -0,0 +1,30 @@ +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:patrol/patrol.dart'; + +void main() { + patrolTest( + 'counter state is the same after going to home and switching apps', + ($) async { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + // Replace later with your app's main widget + await $.pumpWidgetAndSettle( + MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('app')), + backgroundColor: Colors.blue, + ), + ), + ); + + expect($('app'), findsOneWidget); + if (!Platform.isMacOS) { + await $.native.pressHome(); + } + }, + ); +} diff --git a/integration_test/test_bundle.dart b/integration_test/test_bundle.dart new file mode 100644 index 0000000..a6ae301 --- /dev/null +++ b/integration_test/test_bundle.dart @@ -0,0 +1,83 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND AND DO NOT COMMIT TO VERSION CONTROL +// ignore_for_file: type=lint, invalid_use_of_internal_member + +import 'dart:async'; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:patrol/patrol.dart'; +import 'package:patrol/src/native/contracts/contracts.dart'; +import 'package:test_api/src/backend/invoker.dart'; + +// START: GENERATED TEST IMPORTS +import 'example_test.dart' as example_test; +// END: GENERATED TEST IMPORTS + +Future main() async { + // This is the entrypoint of the bundled Dart test. + // + // Its responsibilies are: + // * Running a special Dart test that runs before all the other tests and + // explores the hierarchy of groups and tests. + // * Hosting a PatrolAppService, which the native side of Patrol uses to get + // the Dart tests, and to request execution of a specific Dart test. + // + // When running on Android, the Android Test Orchestrator, before running the + // tests, makes an initial run to gather the tests that it will later run. The + // native side of Patrol (specifically: PatrolJUnitRunner class) is hooked + // into the Android Test Orchestrator lifecycle and knows when that initial + // run happens. When it does, PatrolJUnitRunner makes an RPC call to + // PatrolAppService and asks it for Dart tests. + // + // When running on iOS, the native side of Patrol (specifically: the + // PATROL_INTEGRATION_TEST_IOS_RUNNER macro) makes an initial run to gather + // the tests that it will later run (same as the Android). During that initial + // run, it makes an RPC call to PatrolAppSevice and asks it for Dart tests. + // + // Once the native runner has the list of Dart tests, it dynamically creates + // native test cases from them. On Android, this is done using the + // Parametrized JUnit runner. On iOS, new test case methods are swizzled into + // the RunnerUITests class, taking advantage of the very dynamic nature of + // Objective-C runtime. + // + // Execution of these dynamically created native test cases is then fully + // managed by the underlying native test framework (JUnit on Android, XCTest + // on iOS). The native test cases do only one thing - request execution of the + // Dart test (out of which they had been created) and wait for it to complete. + // The result of running the Dart test is the result of the native test case. + + final nativeAutomator = NativeAutomator(config: NativeAutomatorConfig()); + await nativeAutomator.initialize(); + final binding = PatrolBinding.ensureInitialized(NativeAutomatorConfig()); + final testExplorationCompleter = Completer(); + + // A special test to explore the hierarchy of groups and tests. This is a hack + // around https://github.com/dart-lang/test/issues/1998. + // + // This test must be the first to run. If not, the native side likely won't + // receive any tests, and everything will fall apart. + test('patrol_test_explorer', () { + // Maybe somewhat counterintuitively, this callback runs *after* the calls + // to group() below. + final topLevelGroup = Invoker.current!.liveTest.groups.first; + final dartTestGroup = createDartTestGroup(topLevelGroup); + testExplorationCompleter.complete(dartTestGroup); + print('patrol_test_explorer: obtained Dart-side test hierarchy:'); + printGroupStructure(dartTestGroup); + }); + + // START: GENERATED TEST GROUPS + group('example_test', example_test.main); + // END: GENERATED TEST GROUPS + + final dartTestGroup = await testExplorationCompleter.future; + final appService = PatrolAppService(topLevelDartTestGroup: dartTestGroup); + binding.patrolAppService = appService; + await runAppService(appService); + + // Until now, the native test runner was waiting for us, the Dart side, to + // come alive. Now that we did, let's tell it that we're ready to be asked + // about Dart tests. + await nativeAutomator.markPatrolAppServiceReady(); + + await appService.testExecutionCompleted; +} diff --git a/ios/Podfile b/ios/Podfile index 3e44f9c..e154956 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -35,6 +35,10 @@ target 'Runner' do target 'RunnerTests' do inherit! :search_paths end + + target 'RunnerUITests' do + inherit! :complete + end end post_install do |installer| diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 3c64df5..c8520e8 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -9,10 +9,10 @@ PODS: - Firebase/Messaging (10.20.0): - Firebase/CoreOnly - FirebaseMessaging (~> 10.20.0) - - firebase_core (2.25.5): + - firebase_core (2.25.4): - Firebase/CoreOnly (= 10.20.0) - Flutter - - firebase_messaging (14.7.17): + - firebase_messaging (14.7.16): - Firebase/Messaging (= 10.20.0) - firebase_core - Flutter @@ -130,8 +130,8 @@ SPEC CHECKSUMS: CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6 Firebase: 10c8cb12fb7ad2ae0c09ffc86cd9c1ab392a0031 - firebase_core: c8628c7ce80f79439149549052bff22f6784fbf5 - firebase_messaging: 6ea1e266713728834610c2bc380084a01b1b555d + firebase_core: a46c312d8bae4defa3d009b2aa7b5b413aeb394e + firebase_messaging: e7062cef946e12f93b42abea96937004f8d914d6 FirebaseCore: 28045c1560a2600d284b9c45a904fe322dc890b6 FirebaseCoreInternal: efeeb171ac02d623bdaefe121539939821e10811 FirebaseInstallations: 390ea1d10a4d02b20c965cbfd527ee9b3b412acb @@ -147,6 +147,6 @@ SPEC CHECKSUMS: patrol: 3e21d514020dbee24b3e3383caac9e8e051292ac PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 -PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5 +PODFILE CHECKSUM: 0b25cf511934e20b19acdc39cdaef593fb6e25cc COCOAPODS: 1.14.3 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index d61b161..e36295f 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -11,8 +11,10 @@ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 5541174A0D2431177BDACFD2 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 98B57664721CDA2E7698DCA7 /* Pods_Runner.framework */; }; + 59C4F6E12BA16E8700BFA001 /* RunnerUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 59C4F6E02BA16E8700BFA001 /* RunnerUITests.m */; }; 6206A499CB1103629BA0E717 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C2F93A5F044C6A13AA9FB354 /* Pods_RunnerTests.framework */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 7EFE7AED1C1419C0A6A8372E /* Pods_Runner_RunnerUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 400244D71FB9624E341E8B18 /* Pods_Runner_RunnerUITests.framework */; }; 8A307EFBB020E13643F433EB /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 15CD48A4434360ED109D3EEC /* GoogleService-Info.plist */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; @@ -27,6 +29,13 @@ remoteGlobalIDString = 97C146ED1CF9000F007C117D; remoteInfo = Runner; }; + 59C4F6E42BA16E8700BFA001 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -49,8 +58,14 @@ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 400244D71FB9624E341E8B18 /* Pods_Runner_RunnerUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner_RunnerUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 59C4F6D72BA16BF400BFA001 /* RunnerTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RunnerTests-Bridging-Header.h"; sourceTree = ""; }; + 59C4F6DE2BA16E8600BFA001 /* RunnerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 59C4F6E02BA16E8700BFA001 /* RunnerUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerUITests.m; sourceTree = ""; }; + 60AA247494279EA91FAED9C2 /* Pods-Runner-RunnerUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.debug.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.debug.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 76056EBDFF5F00CE29EAA633 /* Pods-Runner-RunnerUITests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.profile.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.profile.xcconfig"; sourceTree = ""; }; 79F48023EE3F9B7E9FCA6AF0 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; @@ -61,6 +76,7 @@ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 98B57664721CDA2E7698DCA7 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + A360C25BF05F8E921E2B6839 /* Pods-Runner-RunnerUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.release.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.release.xcconfig"; sourceTree = ""; }; BDFB0E5DD49B60721FCC0F43 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; C1F02E77B7B0798B2BA4D204 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; C2F93A5F044C6A13AA9FB354 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -78,6 +94,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 59C4F6DB2BA16E8600BFA001 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 7EFE7AED1C1419C0A6A8372E /* Pods_Runner_RunnerUITests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -106,11 +130,21 @@ 79F48023EE3F9B7E9FCA6AF0 /* Pods-RunnerTests.debug.xcconfig */, BDFB0E5DD49B60721FCC0F43 /* Pods-RunnerTests.release.xcconfig */, CB3DBE652C30B5F94D7E5BC4 /* Pods-RunnerTests.profile.xcconfig */, + 60AA247494279EA91FAED9C2 /* Pods-Runner-RunnerUITests.debug.xcconfig */, + A360C25BF05F8E921E2B6839 /* Pods-Runner-RunnerUITests.release.xcconfig */, + 76056EBDFF5F00CE29EAA633 /* Pods-Runner-RunnerUITests.profile.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; + 59C4F6DF2BA16E8700BFA001 /* RunnerUITests */ = { + isa = PBXGroup; + children = ( + 59C4F6E02BA16E8700BFA001 /* RunnerUITests.m */, + ); + path = RunnerUITests; + sourceTree = ""; + }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -127,11 +161,13 @@ children = ( 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, + 59C4F6DF2BA16E8700BFA001 /* RunnerUITests */, 97C146EF1CF9000F007C117D /* Products */, 331C8082294A63A400263BE5 /* RunnerTests */, 414277C911E429FE823CA8F8 /* Pods */, D2BFC4CE61812D0DD746DF69 /* Frameworks */, 15CD48A4434360ED109D3EEC /* GoogleService-Info.plist */, + 59C4F6D72BA16BF400BFA001 /* RunnerTests-Bridging-Header.h */, ); sourceTree = ""; }; @@ -140,6 +176,7 @@ children = ( 97C146EE1CF9000F007C117D /* Runner.app */, 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + 59C4F6DE2BA16E8600BFA001 /* RunnerUITests.xctest */, ); name = Products; sourceTree = ""; @@ -164,6 +201,7 @@ children = ( 98B57664721CDA2E7698DCA7 /* Pods_Runner.framework */, C2F93A5F044C6A13AA9FB354 /* Pods_RunnerTests.framework */, + 400244D71FB9624E341E8B18 /* Pods_Runner_RunnerUITests.framework */, ); name = Frameworks; sourceTree = ""; @@ -190,6 +228,28 @@ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; + 59C4F6DD2BA16E8600BFA001 /* RunnerUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 59C4F6E62BA16E8700BFA001 /* Build configuration list for PBXNativeTarget "RunnerUITests" */; + buildPhases = ( + EB1F78EC693498C648A65279 /* [CP] Check Pods Manifest.lock */, + 59C4F6EC2BA1774800BFA001 /* xcode_backend build */, + 59C4F6DA2BA16E8600BFA001 /* Sources */, + 59C4F6DB2BA16E8600BFA001 /* Frameworks */, + 59C4F6DC2BA16E8600BFA001 /* Resources */, + BD747E58909020900784FEAD /* [CP] Embed Pods Frameworks */, + 59C4F6EB2BA1770900BFA001 /* xcode_backend embed_and_thin */, + ); + buildRules = ( + ); + dependencies = ( + 59C4F6E52BA16E8700BFA001 /* PBXTargetDependency */, + ); + name = RunnerUITests; + productName = RunnerUITests; + productReference = 59C4F6DE2BA16E8600BFA001 /* RunnerUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; @@ -224,6 +284,11 @@ TargetAttributes = { 331C8080294A63A400263BE5 = { CreatedOnToolsVersion = 14.0; + LastSwiftMigration = 1520; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 59C4F6DD2BA16E8600BFA001 = { + CreatedOnToolsVersion = 15.2; TestTargetID = 97C146ED1CF9000F007C117D; }; 97C146ED1CF9000F007C117D = { @@ -247,6 +312,7 @@ targets = ( 97C146ED1CF9000F007C117D /* Runner */, 331C8080294A63A400263BE5 /* RunnerTests */, + 59C4F6DD2BA16E8600BFA001 /* RunnerUITests */, ); }; /* End PBXProject section */ @@ -259,6 +325,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 59C4F6DC2BA16E8600BFA001 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EC1CF9000F007C117D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -290,6 +363,42 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; + 59C4F6EB2BA1770900BFA001 /* xcode_backend embed_and_thin */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "xcode_backend embed_and_thin"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n"; + }; + 59C4F6EC2BA1774800BFA001 /* xcode_backend build */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "xcode_backend build"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n"; + }; 799D38875135BB29E52E4A55 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -327,6 +436,23 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; + BD747E58909020900784FEAD /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; C65F51797FBFD4D7E120CC27 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -366,6 +492,28 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; + EB1F78EC693498C648A65279 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-RunnerUITests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -377,6 +525,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 59C4F6DA2BA16E8600BFA001 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 59C4F6E12BA16E8700BFA001 /* RunnerUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EA1CF9000F007C117D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -394,6 +550,11 @@ target = 97C146ED1CF9000F007C117D /* Runner */; targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; }; + 59C4F6E52BA16E8700BFA001 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 59C4F6E42BA16E8700BFA001 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -457,7 +618,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -476,6 +637,7 @@ DEVELOPMENT_TEAM = 7Z5U7CM33F; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -493,6 +655,7 @@ baseConfigurationReference = 79F48023EE3F9B7E9FCA6AF0 /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; @@ -500,6 +663,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OBJC_BRIDGING_HEADER = "RunnerTests-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -511,12 +675,14 @@ baseConfigurationReference = BDFB0E5DD49B60721FCC0F43 /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "RunnerTests-Bridging-Header.h"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; }; @@ -527,17 +693,107 @@ baseConfigurationReference = CB3DBE652C30B5F94D7E5BC4 /* Pods-RunnerTests.profile.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "RunnerTests-Bridging-Header.h"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; }; name = Profile; }; + 59C4F6E72BA16E8700BFA001 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Runner; + }; + name = Debug; + }; + 59C4F6E82BA16E8700BFA001 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Runner; + }; + name = Release; + }; + 59C4F6E92BA16E8700BFA001 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Runner; + }; + name = Profile; + }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -585,7 +841,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -634,7 +890,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -655,6 +911,7 @@ DEVELOPMENT_TEAM = 7Z5U7CM33F; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -678,6 +935,7 @@ DEVELOPMENT_TEAM = 7Z5U7CM33F; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -703,6 +961,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 59C4F6E62BA16E8700BFA001 /* Build configuration list for PBXNativeTarget "RunnerUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 59C4F6E72BA16E8700BFA001 /* Debug */, + 59C4F6E82BA16E8700BFA001 /* Release */, + 59C4F6E92BA16E8700BFA001 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 87131a0..d462283 100644 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,16 @@ ReferencedContainer = "container:Runner.xcodeproj"> + + + + + +@interface RunnerUITests : XCTestCase + +@end + +@implementation RunnerUITests + +- (void)setUp { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + self.continueAfterFailure = NO; + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. +} + +- (void)testExample { + // UI tests must launch the application that they test. + XCUIApplication *app = [[XCUIApplication alloc] init]; + [app launch]; + + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +- (void)testLaunchPerformance { + if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *)) { + // This measures how long it takes to launch your application. + [self measureWithMetrics:@[[[XCTApplicationLaunchMetric alloc] init]] block:^{ + [[[XCUIApplication alloc] init] launch]; + }]; + } +} + +@end diff --git a/ios/RunnerUITests/RunnerUITests.m b/ios/RunnerUITests/RunnerUITests.m new file mode 100644 index 0000000..cbf9e1b --- /dev/null +++ b/ios/RunnerUITests/RunnerUITests.m @@ -0,0 +1,6 @@ +@import XCTest; +@import patrol; +@import ObjectiveC.runtime; + +PATROL_INTEGRATION_TEST_IOS_RUNNER(RunnerUITests) + diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 12808e0..7dbf262 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -12,6 +12,7 @@ import firebase_messaging import flutter_local_notifications import package_info_plus import path_provider_foundation +import patrol func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AmplifySecureStoragePlugin.register(with: registry.registrar(forPlugin: "AmplifySecureStoragePlugin")) @@ -21,4 +22,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin")) FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) + PatrolPlugin.register(with: registry.registrar(forPlugin: "PatrolPlugin")) } diff --git a/macos/Podfile b/macos/Podfile index c795730..9ae972f 100644 --- a/macos/Podfile +++ b/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.14' +platform :osx, '13.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' @@ -34,6 +34,10 @@ target 'Runner' do target 'RunnerTests' do inherit! :search_paths end + + target 'RunnerUITests' do + inherit! :complete + end end post_install do |installer| diff --git a/macos/Podfile.lock b/macos/Podfile.lock new file mode 100644 index 0000000..0221e52 --- /dev/null +++ b/macos/Podfile.lock @@ -0,0 +1,155 @@ +PODS: + - amplify_secure_storage (0.0.1): + - FlutterMacOS + - CocoaAsyncSocket (7.6.5) + - device_info_plus (0.0.1): + - FlutterMacOS + - Firebase/CoreOnly (10.20.0): + - FirebaseCore (= 10.20.0) + - Firebase/Messaging (10.20.0): + - Firebase/CoreOnly + - FirebaseMessaging (~> 10.20.0) + - firebase_core (2.25.4): + - Firebase/CoreOnly (~> 10.20.0) + - FlutterMacOS + - firebase_messaging (14.7.16): + - Firebase/CoreOnly (~> 10.20.0) + - Firebase/Messaging (~> 10.20.0) + - firebase_core + - FlutterMacOS + - FirebaseCore (10.20.0): + - FirebaseCoreInternal (~> 10.0) + - GoogleUtilities/Environment (~> 7.12) + - GoogleUtilities/Logger (~> 7.12) + - FirebaseCoreInternal (10.22.0): + - "GoogleUtilities/NSData+zlib (~> 7.8)" + - FirebaseInstallations (10.22.0): + - FirebaseCore (~> 10.0) + - GoogleUtilities/Environment (~> 7.8) + - GoogleUtilities/UserDefaults (~> 7.8) + - PromisesObjC (~> 2.1) + - FirebaseMessaging (10.20.0): + - FirebaseCore (~> 10.0) + - FirebaseInstallations (~> 10.0) + - GoogleDataTransport (~> 9.3) + - GoogleUtilities/AppDelegateSwizzler (~> 7.8) + - GoogleUtilities/Environment (~> 7.8) + - GoogleUtilities/Reachability (~> 7.8) + - GoogleUtilities/UserDefaults (~> 7.8) + - nanopb (< 2.30910.0, >= 2.30908.0) + - flutter_local_notifications (0.0.1): + - FlutterMacOS + - FlutterMacOS (1.0.0) + - GoogleDataTransport (9.4.1): + - GoogleUtilities/Environment (~> 7.7) + - nanopb (< 2.30911.0, >= 2.30908.0) + - PromisesObjC (< 3.0, >= 1.2) + - GoogleUtilities/AppDelegateSwizzler (7.13.0): + - GoogleUtilities/Environment + - GoogleUtilities/Logger + - GoogleUtilities/Network + - GoogleUtilities/Privacy + - GoogleUtilities/Environment (7.13.0): + - GoogleUtilities/Privacy + - PromisesObjC (< 3.0, >= 1.2) + - GoogleUtilities/Logger (7.13.0): + - GoogleUtilities/Environment + - GoogleUtilities/Privacy + - GoogleUtilities/Network (7.13.0): + - GoogleUtilities/Logger + - "GoogleUtilities/NSData+zlib" + - GoogleUtilities/Privacy + - GoogleUtilities/Reachability + - "GoogleUtilities/NSData+zlib (7.13.0)": + - GoogleUtilities/Privacy + - GoogleUtilities/Privacy (7.13.0) + - GoogleUtilities/Reachability (7.13.0): + - GoogleUtilities/Logger + - GoogleUtilities/Privacy + - GoogleUtilities/UserDefaults (7.13.0): + - GoogleUtilities/Logger + - GoogleUtilities/Privacy + - nanopb (2.30909.1): + - nanopb/decode (= 2.30909.1) + - nanopb/encode (= 2.30909.1) + - nanopb/decode (2.30909.1) + - nanopb/encode (2.30909.1) + - package_info_plus (0.0.1): + - FlutterMacOS + - path_provider_foundation (0.0.1): + - Flutter + - FlutterMacOS + - patrol (0.0.1): + - CocoaAsyncSocket (~> 7.6) + - Flutter + - FlutterMacOS + - PromisesObjC (2.4.0) + +DEPENDENCIES: + - amplify_secure_storage (from `Flutter/ephemeral/.symlinks/plugins/amplify_secure_storage/macos`) + - device_info_plus (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos`) + - firebase_core (from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`) + - firebase_messaging (from `Flutter/ephemeral/.symlinks/plugins/firebase_messaging/macos`) + - flutter_local_notifications (from `Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos`) + - FlutterMacOS (from `Flutter/ephemeral`) + - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) + - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) + - patrol (from `Flutter/ephemeral/.symlinks/plugins/patrol/darwin`) + +SPEC REPOS: + trunk: + - CocoaAsyncSocket + - Firebase + - FirebaseCore + - FirebaseCoreInternal + - FirebaseInstallations + - FirebaseMessaging + - GoogleDataTransport + - GoogleUtilities + - nanopb + - PromisesObjC + +EXTERNAL SOURCES: + amplify_secure_storage: + :path: Flutter/ephemeral/.symlinks/plugins/amplify_secure_storage/macos + device_info_plus: + :path: Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos + firebase_core: + :path: Flutter/ephemeral/.symlinks/plugins/firebase_core/macos + firebase_messaging: + :path: Flutter/ephemeral/.symlinks/plugins/firebase_messaging/macos + flutter_local_notifications: + :path: Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos + FlutterMacOS: + :path: Flutter/ephemeral + package_info_plus: + :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos + path_provider_foundation: + :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin + patrol: + :path: Flutter/ephemeral/.symlinks/plugins/patrol/darwin + +SPEC CHECKSUMS: + amplify_secure_storage: 2ec88824d58d3e8fc45fc14ff0c5a0a0d5473d4b + CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 + device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f + Firebase: 10c8cb12fb7ad2ae0c09ffc86cd9c1ab392a0031 + firebase_core: 2e1a33fd13fb581f0dc809c18be25cdc1a2e10db + firebase_messaging: 0ea7ba8abbaa3228b36b1e64b5ad5268996b0d1a + FirebaseCore: 28045c1560a2600d284b9c45a904fe322dc890b6 + FirebaseCoreInternal: bca337352024b18424a61e478460547d46c4c753 + FirebaseInstallations: 763814908793c0da14c18b3dcffdec71e29ed55e + FirebaseMessaging: 06c414a21b122396a26847c523d5c370f8325df5 + flutter_local_notifications: 3805ca215b2fb7f397d78b66db91f6a747af52e4 + FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 + GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a + GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152 + nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 + package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce + path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c + patrol: 3e21d514020dbee24b3e3383caac9e8e051292ac + PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 + +PODFILE CHECKSUM: 5349f88132a12d84dc9d841b11c6ddbccbaf4f1e + +COCOAPODS: 1.14.3 diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 2ec0013..cc944f2 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -27,7 +27,11 @@ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 59C4F6F42BA181FA00BFA001 /* RunnerUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 59C4F6F32BA181FA00BFA001 /* RunnerUITests.m */; }; + 96E8F07CCC0C3D021EF54263 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7CC98148683193D16B2682E /* Pods_Runner.framework */; }; + A7BA24A8E9D785906D23B67A /* Pods_Runner_RunnerUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DCC851F3D30A987DD3C122F /* Pods_Runner_RunnerUITests.framework */; }; AC72B3E9512D59083ED1A88C /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 4C10DC4E5E0199495925B206 /* GoogleService-Info.plist */; }; + DAB3ED4DF0E5AB5C868A7231 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B98C908F28D6642F1C36CE91 /* Pods_RunnerTests.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -45,6 +49,13 @@ remoteGlobalIDString = 33CC111A2044C6BA0003C045; remoteInfo = FLX; }; + 59C4F6F72BA181FA00BFA001 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -61,6 +72,9 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 21CCCB3D0D42108849F6E9D3 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + 25F0833FE6F1D6B5CB3877BD /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 2DCC851F3D30A987DD3C122F /* Pods_Runner_RunnerUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner_RunnerUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; @@ -78,8 +92,19 @@ 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 4C10DC4E5E0199495925B206 /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = ""; }; + 59C4F6F12BA181FA00BFA001 /* RunnerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 59C4F6F32BA181FA00BFA001 /* RunnerUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerUITests.m; sourceTree = ""; }; + 6E6A35E8ACFBE6B43E877A94 /* Pods-Runner-RunnerUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.release.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.release.xcconfig"; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 814A97B1BD46C644E9EBDDD8 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 9525253881CF414F883464BE /* Pods-Runner-RunnerUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.debug.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.debug.xcconfig"; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + B7CC98148683193D16B2682E /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + B98C908F28D6642F1C36CE91 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BED00203B3F86AC2CC385AD2 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + C7CB58EC0A9CD51C49717E24 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + CB02BE5982F48907143E3884 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + F7A34C9AED079E8C4F3D365A /* Pods-Runner-RunnerUITests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.profile.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.profile.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -87,6 +112,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + DAB3ED4DF0E5AB5C868A7231 /* Pods_RunnerTests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -94,6 +120,15 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 96E8F07CCC0C3D021EF54263 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 59C4F6EE2BA181FA00BFA001 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A7BA24A8E9D785906D23B67A /* Pods_Runner_RunnerUITests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -125,9 +160,11 @@ 33FAB671232836740065AC1E /* Runner */, 33CEB47122A05771004F2AC0 /* Flutter */, 331C80D6294CF71000263BE5 /* RunnerTests */, + 59C4F6F22BA181FA00BFA001 /* RunnerUITests */, 33CC10EE2044A3C60003C045 /* Products */, D73912EC22F37F3D000D13A0 /* Frameworks */, 4C10DC4E5E0199495925B206 /* GoogleService-Info.plist */, + 54BB3AB19B65CE21E24FF4D7 /* Pods */, ); sourceTree = ""; }; @@ -136,6 +173,7 @@ children = ( 33CC10ED2044A3C60003C045 /* tunefun_front.app */, 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + 59C4F6F12BA181FA00BFA001 /* RunnerUITests.xctest */, ); name = Products; sourceTree = ""; @@ -175,9 +213,36 @@ path = Runner; sourceTree = ""; }; + 54BB3AB19B65CE21E24FF4D7 /* Pods */ = { + isa = PBXGroup; + children = ( + 25F0833FE6F1D6B5CB3877BD /* Pods-Runner.debug.xcconfig */, + CB02BE5982F48907143E3884 /* Pods-Runner.release.xcconfig */, + 814A97B1BD46C644E9EBDDD8 /* Pods-Runner.profile.xcconfig */, + 9525253881CF414F883464BE /* Pods-Runner-RunnerUITests.debug.xcconfig */, + 6E6A35E8ACFBE6B43E877A94 /* Pods-Runner-RunnerUITests.release.xcconfig */, + F7A34C9AED079E8C4F3D365A /* Pods-Runner-RunnerUITests.profile.xcconfig */, + 21CCCB3D0D42108849F6E9D3 /* Pods-RunnerTests.debug.xcconfig */, + C7CB58EC0A9CD51C49717E24 /* Pods-RunnerTests.release.xcconfig */, + BED00203B3F86AC2CC385AD2 /* Pods-RunnerTests.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + 59C4F6F22BA181FA00BFA001 /* RunnerUITests */ = { + isa = PBXGroup; + children = ( + 59C4F6F32BA181FA00BFA001 /* RunnerUITests.m */, + ); + path = RunnerUITests; + sourceTree = ""; + }; D73912EC22F37F3D000D13A0 /* Frameworks */ = { isa = PBXGroup; children = ( + B7CC98148683193D16B2682E /* Pods_Runner.framework */, + 2DCC851F3D30A987DD3C122F /* Pods_Runner_RunnerUITests.framework */, + B98C908F28D6642F1C36CE91 /* Pods_RunnerTests.framework */, ); name = Frameworks; sourceTree = ""; @@ -189,6 +254,7 @@ isa = PBXNativeTarget; buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildPhases = ( + B2E64781131310F06E9E7F9A /* [CP] Check Pods Manifest.lock */, 331C80D1294CF70F00263BE5 /* Sources */, 331C80D2294CF70F00263BE5 /* Frameworks */, 331C80D3294CF70F00263BE5 /* Resources */, @@ -207,11 +273,13 @@ isa = PBXNativeTarget; buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( + D5939090244E6B0515755D29 /* [CP] Check Pods Manifest.lock */, 33CC10E92044A3C60003C045 /* Sources */, 33CC10EA2044A3C60003C045 /* Frameworks */, 33CC10EB2044A3C60003C045 /* Resources */, 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, + D331F51056A3E51175E2A10B /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -223,6 +291,28 @@ productReference = 33CC10ED2044A3C60003C045 /* tunefun_front.app */; productType = "com.apple.product-type.application"; }; + 59C4F6F02BA181FA00BFA001 /* RunnerUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 59C4F6FC2BA181FA00BFA001 /* Build configuration list for PBXNativeTarget "RunnerUITests" */; + buildPhases = ( + E07F32F8C4C859EE0F012816 /* [CP] Check Pods Manifest.lock */, + 59C4F6FD2BA1930200BFA001 /* xcode_backend build */, + 59C4F6ED2BA181FA00BFA001 /* Sources */, + 59C4F6EE2BA181FA00BFA001 /* Frameworks */, + 59C4F6EF2BA181FA00BFA001 /* Resources */, + 3954ACB0183B9F0AEDDE2B2D /* [CP] Embed Pods Frameworks */, + 59C4F6FE2BA1930500BFA001 /* xcode_backend embed_and_thin */, + ); + buildRules = ( + ); + dependencies = ( + 59C4F6F82BA181FA00BFA001 /* PBXTargetDependency */, + ); + name = RunnerUITests; + productName = RunnerUITests; + productReference = 59C4F6F12BA181FA00BFA001 /* RunnerUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -251,6 +341,10 @@ CreatedOnToolsVersion = 9.2; ProvisioningStyle = Manual; }; + 59C4F6F02BA181FA00BFA001 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 33CC10EC2044A3C60003C045; + }; }; }; buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; @@ -269,6 +363,7 @@ 33CC10EC2044A3C60003C045 /* Runner */, 331C80D4294CF70F00263BE5 /* RunnerTests */, 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + 59C4F6F02BA181FA00BFA001 /* RunnerUITests */, ); }; /* End PBXProject section */ @@ -291,6 +386,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 59C4F6EF2BA181FA00BFA001 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ @@ -332,6 +434,142 @@ shellPath = /bin/sh; shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; }; + 3954ACB0183B9F0AEDDE2B2D /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 59C4F6FD2BA1930200BFA001 /* xcode_backend build */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "xcode_backend build"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/macos_assemble.sh\" build\n"; + }; + 59C4F6FE2BA1930500BFA001 /* xcode_backend embed_and_thin */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "xcode_backend embed_and_thin"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/macos_assemble.sh\" embed\n"; + }; + B2E64781131310F06E9E7F9A /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + D331F51056A3E51175E2A10B /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + D5939090244E6B0515755D29 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + E07F32F8C4C859EE0F012816 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-RunnerUITests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -353,6 +591,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 59C4F6ED2BA181FA00BFA001 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 59C4F6F42BA181FA00BFA001 /* RunnerUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -366,6 +612,11 @@ target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; }; + 59C4F6F82BA181FA00BFA001 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 59C4F6F72BA181FA00BFA001 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -383,10 +634,12 @@ /* Begin XCBuildConfiguration section */ 331C80DB294CF71000263BE5 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 21CCCB3D0D42108849F6E9D3 /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -397,10 +650,12 @@ }; 331C80DC294CF71000263BE5 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = C7CB58EC0A9CD51C49717E24 /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -411,10 +666,12 @@ }; 331C80DD294CF71000263BE5 /* Profile */ = { isa = XCBuildConfiguration; + baseConfigurationReference = BED00203B3F86AC2CC385AD2 /* Pods-RunnerTests.profile.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -461,7 +718,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -483,6 +740,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 13.0; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; @@ -540,7 +798,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -587,7 +845,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -609,6 +867,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 13.0; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -629,6 +888,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 13.0; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; @@ -650,6 +910,106 @@ }; name = Release; }; + 59C4F6F92BA181FA00BFA001 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9525253881CF414F883464BE /* Pods-Runner-RunnerUITests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_ENTITLEMENTS = RunnerUITests/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GENERATE_INFOPLIST_FILE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "bundle-id--com.example.tunefunFront.RunnerTests-----bundle-id--com.example.tunefunFront.RunnerTests-com.example.tunefunFront.RunnerTests.RunnerUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TEST_TARGET_NAME = Runner; + }; + name = Debug; + }; + 59C4F6FA2BA181FA00BFA001 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6E6A35E8ACFBE6B43E877A94 /* Pods-Runner-RunnerUITests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_ENTITLEMENTS = RunnerUITests/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GENERATE_INFOPLIST_FILE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "bundle-id--com.example.tunefunFront.RunnerTests-----bundle-id--com.example.tunefunFront.RunnerTests-com.example.tunefunFront.RunnerTests.RunnerUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TEST_TARGET_NAME = Runner; + }; + name = Release; + }; + 59C4F6FB2BA181FA00BFA001 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F7A34C9AED079E8C4F3D365A /* Pods-Runner-RunnerUITests.profile.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_ENTITLEMENTS = RunnerUITests/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GENERATE_INFOPLIST_FILE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "bundle-id--com.example.tunefunFront.RunnerTests-----bundle-id--com.example.tunefunFront.RunnerTests-com.example.tunefunFront.RunnerTests.RunnerUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TEST_TARGET_NAME = Runner; + }; + name = Profile; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -693,6 +1053,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 59C4F6FC2BA181FA00BFA001 /* Build configuration list for PBXNativeTarget "RunnerUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 59C4F6F92BA181FA00BFA001 /* Debug */, + 59C4F6FA2BA181FA00BFA001 /* Release */, + 59C4F6FB2BA181FA00BFA001 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 33CC10E52044A3C60003C045 /* Project object */; diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 9616c96..3953dcd 100644 --- a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,17 @@ ReferencedContainer = "container:Runner.xcodeproj"> + + + + + + diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements index dddb8a3..3ba6c12 100644 --- a/macos/Runner/DebugProfile.entitlements +++ b/macos/Runner/DebugProfile.entitlements @@ -6,6 +6,8 @@ com.apple.security.cs.allow-jit + com.apple.security.network.client + com.apple.security.network.server diff --git a/macos/RunnerUITests/DebugProfile.entitlements b/macos/RunnerUITests/DebugProfile.entitlements new file mode 100644 index 0000000..3ba6c12 --- /dev/null +++ b/macos/RunnerUITests/DebugProfile.entitlements @@ -0,0 +1,14 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.client + + com.apple.security.network.server + + + diff --git a/macos/RunnerUITests/Release.entitlements b/macos/RunnerUITests/Release.entitlements new file mode 100644 index 0000000..852fa1a --- /dev/null +++ b/macos/RunnerUITests/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/macos/RunnerUITests/RunnerUITests.m b/macos/RunnerUITests/RunnerUITests.m new file mode 100644 index 0000000..b257a45 --- /dev/null +++ b/macos/RunnerUITests/RunnerUITests.m @@ -0,0 +1,5 @@ +@import XCTest; +@import patrol; +@import ObjectiveC.runtime; + +PATROL_INTEGRATION_TEST_MACOS_RUNNER(RunnerUITests) diff --git a/pubspec.lock b/pubspec.lock index 3eb5cad..e93a2d2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -217,6 +217,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.14.1" + equatable: + dependency: transitive + description: + name: equatable + sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2 + url: "https://pub.dev" + source: hosted + version: "2.0.5" fake_async: dependency: transitive description: @@ -591,6 +599,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.1" + patrol: + dependency: "direct main" + description: + name: patrol + sha256: a3934bc7bfef4bbe46ebcc24ed755f9ff1414dfb25cd91b419dfa8e1db6bde81 + url: "https://pub.dev" + source: hosted + version: "3.5.2" + patrol_finders: + dependency: transitive + description: + name: patrol_finders + sha256: ac33527cc1b63e3aa131dbd7107cfda8ee2df0fb4a4a423c067174a2e60db77b + url: "https://pub.dev" + source: hosted + version: "2.0.2" petitparser: dependency: transitive description: @@ -894,4 +918,4 @@ packages: version: "6.5.0" sdks: dart: ">=3.2.3 <4.0.0" - flutter: ">=3.10.0" + flutter: ">=3.16.0" diff --git a/pubspec.yaml b/pubspec.yaml index f008006..1459934 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -48,6 +48,7 @@ dependencies: firebase_messaging: ^14.7.10 flutter_local_notifications: ^16.3.2 uuid: ^4.3.3 + patrol: ^3.5.2 dev_dependencies: flutter_test: From 2e42813a3dd058a1430269d8f50af6304e83c2c3 Mon Sep 17 00:00:00 2001 From: seilylook Date: Mon, 25 Mar 2024 11:57:12 +0900 Subject: [PATCH 3/4] config: CIpipeline with Patrol & Gcloud & Firebase Test lab --- .github/workflows/android-release.yml | 128 ++++++++++++++++++++ .github/workflows/ios-release.yml | 141 +++++++++++++++++++++++ .github/workflows/send_slack_message.yml | 0 integration_test/app_test.dart | 28 +++++ integration_test/example_test.dart | 30 ----- integration_test/test_bundle.dart | 4 +- ios/Runner.xcodeproj/project.pbxproj | 24 +++- pubspec.lock | 2 +- pubspec.yaml | 1 + test/widget_test.dart | 42 ++++--- 10 files changed, 346 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/android-release.yml create mode 100644 .github/workflows/ios-release.yml create mode 100644 .github/workflows/send_slack_message.yml delete mode 100644 integration_test/example_test.dart diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml new file mode 100644 index 0000000..6baf0c2 --- /dev/null +++ b/.github/workflows/android-release.yml @@ -0,0 +1,128 @@ +name: Run Flutter E2E (android) test +on: + push: + branches: + - develop + pull_request: + branches: + - develop + +jobs: + e2e: + runs-on: ubuntu-latest + outputs: + SLACK_MESSAGE_TITLE: Flutter E2E Test on ${{ matrix.os }} ${{ matrix.os_version }} + TESTS_EXIT_CODE: ${{ steps.tests_step.outputs.TESTS_EXIT_CODE }} + URL_TO_DETAILS: ${{ steps.tests_step.outputs.URL_TO_DETAILS }} + + strategy: # 테스트를 하고자 하는 디바이스 설정 + matrix: + os: ["Android API"] + include: + - device_model: "oriole" + os_version: "33" + + steps: + # 1. 코드 체크아웃 + - name: Github Checkout + uses: actions/checkout@v3 + + # 2.1 Flutter 설치 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + + # 2.2. 의존성 설치 + - name: Install dependencies + run: flutter pub get + + # 2.3. Gradle wrapper 생성 + - name: Generate Gradle wrapper + run: flutter build apk --config-only + + # 3.1. Patrol CLI 설치 + - name: Set up Patrol CLI + run: dart pub global activate patrol_cli + + # 3.2. Patrol 빌드 + - name: patrol build android + run: patrol build android + + # 4.1. service-account.json 인증 + - name: Authenticate to Google Cloud + uses: google-github-actions/auth@v1 + with: + credentials_json: "${{secrets.GCP_STAGE_SERVICE_ACCOUNT_JSON}}" + + # 4.2. gcloud 설정 + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@v1 + + # 4.3 ENV 설정 + - name: Create .env File + uses: iamsauravsharma/create-dotenv@v1.2.2 + with: + env-prefix: "envkey_" + file-name: ".env" + directory: "/home/runner/work/tunefun_front/assets/config/" + env: + IS_SERVER: true + PUBLIC_BASE_URL: ${{secrets.PUBLIC_BASE_URL}} + PUBLIC_USER_REGISTER_URL: ${{secrets.PUBLIC_USER_REGISTER_URL}} + PUBLIC_USER_LOGIN_URL: ${{secrets.PUBLIC_USER_LOGIN_URL}} + PUBLIC_USER_LOGOUT_URL: ${{secrets.PUBLIC_USER_LOGOUT_URL}} + PUBLIC_USER_FIND_USERNAME: ${{secrets.PUBLIC_USER_FIND_USERNAME}} + PUBLIC_USER_ACCESS_TOKEN: ${{secrets.PUBLIC_USER_ACCESS_TOKEN}} + PUBLIC_USER_SET_NEW_PASSWORD: ${{secrets.PUBLIC_USER_SET_NEW_PASSWORD}} + PUBLIC_USER_UPDATE_NICKNAME: ${{secrets.PUBLIC_USER_UPDATE_NICKNAME}} + PUBLIC_USER_FORGOT_PASSWORD_SEND_OTP: ${{secrets.PUBLIC_USER_FORGOT_PASSWORD_SEND_OTP}} + PUBLIC_USER_OTP_RESEND: ${{secrets.PUBLIC_USER_OTP_RESEND}} + PUBLIC_USER_OTP_VERIFY: ${{secrets.PUBLIC_USER_OTP_VERIFY}} + PUBLIC_USER_CHECK_EMAIL_DUPLICATE: ${{secrets.PUBLIC_USER_CHECK_EMAIL_DUPLICATE}} + PUBLIC_USER_CHECK_EMAIL_VERIFIED: ${{secrets.PUBLIC_USER_CHECK_EMAIL_VERIFIED}} + PUBLIC_USER_CHECK_USERNAME_DUPLICATE: ${{secrets.PUBLIC_USER_CHECK_USERNAME_DUPLICATE}} + + # 5. Firebase Test Lab 에 APK 업로드 및 테스트 실행 + - name: Upload APKs to Firebase Test Lab and wait for tests to finish + id: tests_step + env: + ANDROID_DEVICE_MODEL: ${{ matrix.device_model }} + ANDROID_DEVICE_VERSION: ${{ matrix.os_version }} + run: | + set +e + set -euo pipefail + + # Firebase Test Lab 실행 및 결과 저장 + output=$(set -euo pipefail && \ + gcloud firebase test android run \ + --type instrumentation \ + --app build/app/outputs/apk/debug/app-debug.apk \ + --test build/app/outputs/apk/androidTest/debug/ap-debug-androidTest.apk \ + --device model="$ANDROID_DEVICE_MODEL",version="$ANDROID_DEVICE_VERSION",locale=en,orientation=portrait \ + --timeout 10m \ + --results-bucket="tunefun-6edf5.appspot.com" \ + --use-orchestrator \ + --environment-variables clearPackageData=true 2>&1) + + TESTS_EXIT_CODE=$? + set -e + + # Extract the last link using grep, tail, and sed, and write it to Github Summary + link="$(echo "$output" | grep -o 'https://[^ ]*' | tail -1 | sed 's/\[//;s/\]//')" + echo "[Test details on Firebase Test Lab]($link) (Firebase members only)" >> "$GITHUB_STEP_SUMMARY" + + echo "URL_TO_DETAILS=$link" >> "$GITHUB_OUTPUT" + echo "TESTS_EXIT_CODE=$TESTS_EXIT_CODE" >> "$GITHUB_OUTPUT" + exit $TESTS_EXIT_CODE + + # 6. Slack 메시지 전송 + # call_send_slack_message: + # name: Notify on Slack + # uses: ./.github/workflows/send_slack_message.yml + # needs: e2e + # if: always() + # with: + # TESTS_EXIT_CODE: ${{ needs.e2e.outputs.TESTS_EXIT_CODE }} + # SLACK_MESSAGE_TITLE: ${{ needs.e2e.outputs.SLACK_MESSAGE_TITLE }} + # URL_TO_DETAILS: ${{ needs.e2e.outputs.URL_TO_DETAILS }} + # secrets: inherit diff --git a/.github/workflows/ios-release.yml b/.github/workflows/ios-release.yml new file mode 100644 index 0000000..cc7d1c2 --- /dev/null +++ b/.github/workflows/ios-release.yml @@ -0,0 +1,141 @@ +name: Run Flutter E2E (ios) test +on: + push: + branches: + - develop + pull_request: + branches: + - develop +jobs: + e2e: + runs-on: macos-latest + outputs: + SLACK_MESSAGE_TITLE: Flutter E2E Test on ${{ matrix.os }} ${{ matrix.os_version }} + TESTS_EXIT_CODE: ${{ steps.tests_step.outputs.TESTS_EXIT_CODE }} + URL_TO_DETAILS: ${{ steps.tests_step.outputs.URL_TO_DETAILS }} + strategy: + # 테스트를 하고자 하는 디바이스 설정 + matrix: + device_model: ["iphone15pro"] + os_version: ["17.2"] + os: [iOS] + steps: + # 1. 코드 체크아웃 + - uses: actions/checkout@v3 + + # 2.1 Flutter 설치 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + + # 2.2. 의존성 설치 + - name: Install dependencies + run: flutter pub get + + # 3.1 Ruby 설치 (Fastlane 사용을 위해) + - name: Install Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7.2 + bundler-cache: true + + # 3.2 bundle 설치 (Fastlane 사용을 위해) + - name: Install bundle + run: | + cd ios + bundle config path vendor/bundle + bundle install --jobs 4 --retry 3 + + # 4. Fastlane 사용하여 Certificate, Provisioning Profile 설치 + # 5. Fastlane 사용하여 Xcode Code Signing 변경 + - name: Sign iOS app + uses: maierj/fastlane-action@v3.0.0 + with: + lane: code_sign_developemnt + subdirectory: ios + + # 6.1 Patrol CLI 설치 + - name: Set up Patrol CLI + run: dart pub global activate patrol_cli + + # 6.2 Patrol 빌드 + - name: patrol build ios + run: patrol build ios + + # 7.1 service-account.json 인증 + - name: Authenticate to Google Cloud + uses: google-github-actions/auth@v1 + with: + credentials_json: "${{secrets.GCP_STAGE_SERVICE_ACCOUNT_JSON}}" + + # 7.2 gcloud 설정 + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@v1 + + # 7.3 ENV 설정 + - name: Create .env File + uses: iamsauravsharma/create-dotenv@v1.2.2 + with: + env-prefix: "envkey_" + file-name: ".env" + directory: "/home/runner/work/tunefun_front/assets/config/" + env: + IS_SERVER: true + PUBLIC_BASE_URL: ${{secrets.PUBLIC_BASE_URL}} + PUBLIC_USER_REGISTER_URL: ${{secrets.PUBLIC_USER_REGISTER_URL}} + PUBLIC_USER_LOGIN_URL: ${{secrets.PUBLIC_USER_LOGIN_URL}} + PUBLIC_USER_LOGOUT_URL: ${{secrets.PUBLIC_USER_LOGOUT_URL}} + PUBLIC_USER_FIND_USERNAME: ${{secrets.PUBLIC_USER_FIND_USERNAME}} + PUBLIC_USER_ACCESS_TOKEN: ${{secrets.PUBLIC_USER_ACCESS_TOKEN}} + PUBLIC_USER_SET_NEW_PASSWORD: ${{secrets.PUBLIC_USER_SET_NEW_PASSWORD}} + PUBLIC_USER_UPDATE_NICKNAME: ${{secrets.PUBLIC_USER_UPDATE_NICKNAME}} + PUBLIC_USER_FORGOT_PASSWORD_SEND_OTP: ${{secrets.PUBLIC_USER_FORGOT_PASSWORD_SEND_OTP}} + PUBLIC_USER_OTP_RESEND: ${{secrets.PUBLIC_USER_OTP_RESEND}} + PUBLIC_USER_OTP_VERIFY: ${{secrets.PUBLIC_USER_OTP_VERIFY}} + PUBLIC_USER_CHECK_EMAIL_DUPLICATE: ${{secrets.PUBLIC_USER_CHECK_EMAIL_DUPLICATE}} + PUBLIC_USER_CHECK_EMAIL_VERIFIED: ${{secrets.PUBLIC_USER_CHECK_EMAIL_VERIFIED}} + PUBLIC_USER_CHECK_USERNAME_DUPLICATE: ${{secrets.PUBLIC_USER_CHECK_USERNAME_DUPLICATE}} + + # 8. Firebase Test Lab 에 APK 업로드 및 테스트 실행 + - name: Upload iOS App to Firebase Test Lab and wait for tests to finish + id: tests_step + env: + IOS_DEVICE_MODEL: ${{ matrix.device_model }} + IOS_DEVICE_VERSION: ${{ matrix.os_version }} + run: | + set +e + + # iOS 테스트 준비 및 Firebase Test Lab 실행 + output=$(cd build/ios_integ/Build/Products && \ + rm -f ios_tests.zip && \ + zip -r ios_tests.zip Release-iphoneos/*.app *.xctestrun && \ + cd - && \ + gcloud firebase test ios run \ + --type xctest \ + --test "build/ios_integ/Build/Products/ios_tests.zip" \ + --device model="$IOS_DEVICE_MODEL",version="$IOS_DEVICE_VERSION",locale=en_US,orientation=portrait \ + --timeout 10m \ + --results-bucket="tunefun-6edf5.appspot.com" 2>&1) + + TESTS_EXIT_CODE=$? + set -e + + # 출력 및 링크 추출 + echo "$output" + link="$(echo "$output" | grep -o 'https://[^ ]*' | tail -1 | sed 's/\[//;s/\]//')" + echo "[Test details on Firebase Test Lab]($link) (Firebase members only)" >> "$GITHUB_STEP_SUMMARY" + echo "URL_TO_DETAILS=$link" >> "$GITHUB_OUTPUT" + echo "TESTS_EXIT_CODE=$TESTS_EXIT_CODE" >> "$GITHUB_OUTPUT" + exit $TESTS_EXIT_CODE + + # 9. Slack 메시지 전송 + # call_send_slack_message: + # name: Notify on Slack + # uses: ./.github/workflows/send_slack_message.yml + # needs: e2e + # if: always() + # with: + # TESTS_EXIT_CODE: ${{ needs.e2e.outputs.TESTS_EXIT_CODE }} + # SLACK_MESSAGE_TITLE: ${{ needs.e2e.outputs.SLACK_MESSAGE_TITLE }} + # URL_TO_DETAILS: ${{ needs.e2e.outputs.URL_TO_DETAILS }} + # secrets: inherit diff --git a/.github/workflows/send_slack_message.yml b/.github/workflows/send_slack_message.yml new file mode 100644 index 0000000..e69de29 diff --git a/integration_test/app_test.dart b/integration_test/app_test.dart index 8b13789..ca8d1d8 100644 --- a/integration_test/app_test.dart +++ b/integration_test/app_test.dart @@ -1 +1,29 @@ +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:patrol/patrol.dart'; +import 'package:tunefun_front/constants/dummy_data.dart'; +import 'package:tunefun_front/features/article/widgets/article_card.dart'; +import 'package:tunefun_front/features/article/widgets/article_list.dart'; +import 'package:tunefun_front/features/home/views/home_view.dart'; +import 'package:tunefun_front/main.dart'; +import 'package:patrol_finders/patrol_finders.dart'; +void main() { + testWidgets( + 'Main Screen test', + (WidgetTester tester) async { + PatrolTester $ = PatrolTester( + tester: tester, + config: const PatrolTesterConfig(), + ); + await $.pumpWidget( + const ProviderScope( + child: MyApp(), + ), + ); + expect($('TuneFun'), findsWidgets); + expect($(const HomeScreen()), findsOneWidget); + expect($(const ArticleList()), findsWidgets); + }, + ); +} diff --git a/integration_test/example_test.dart b/integration_test/example_test.dart deleted file mode 100644 index 2cc69fb..0000000 --- a/integration_test/example_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -import 'dart:io'; - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:integration_test/integration_test.dart'; -import 'package:patrol/patrol.dart'; - -void main() { - patrolTest( - 'counter state is the same after going to home and switching apps', - ($) async { - IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - - // Replace later with your app's main widget - await $.pumpWidgetAndSettle( - MaterialApp( - home: Scaffold( - appBar: AppBar(title: const Text('app')), - backgroundColor: Colors.blue, - ), - ), - ); - - expect($('app'), findsOneWidget); - if (!Platform.isMacOS) { - await $.native.pressHome(); - } - }, - ); -} diff --git a/integration_test/test_bundle.dart b/integration_test/test_bundle.dart index a6ae301..e2268b7 100644 --- a/integration_test/test_bundle.dart +++ b/integration_test/test_bundle.dart @@ -9,7 +9,7 @@ import 'package:patrol/src/native/contracts/contracts.dart'; import 'package:test_api/src/backend/invoker.dart'; // START: GENERATED TEST IMPORTS -import 'example_test.dart' as example_test; +import 'app_test.dart' as app_test; // END: GENERATED TEST IMPORTS Future main() async { @@ -66,7 +66,7 @@ Future main() async { }); // START: GENERATED TEST GROUPS - group('example_test', example_test.main); + group('app_test', app_test.main); // END: GENERATED TEST GROUPS final dartTestGroup = await testExplorationCompleter.future; diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index e36295f..af8ff41 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -633,8 +633,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 7Z5U7CM33F; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; @@ -644,6 +646,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -718,8 +721,10 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = ""; ENABLE_USER_SCRIPT_SANDBOXING = NO; GCC_C_LANGUAGE_STANDARD = gnu17; GENERATE_INFOPLIST_FILE = YES; @@ -730,6 +735,7 @@ MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerUITests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = NO; TARGETED_DEVICE_FAMILY = "1,2"; TEST_TARGET_NAME = Runner; @@ -748,8 +754,10 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = ""; ENABLE_USER_SCRIPT_SANDBOXING = NO; GCC_C_LANGUAGE_STANDARD = gnu17; GENERATE_INFOPLIST_FILE = YES; @@ -759,6 +767,7 @@ MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerUITests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = NO; TARGETED_DEVICE_FAMILY = "1,2"; TEST_TARGET_NAME = Runner; @@ -777,8 +786,10 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = ""; ENABLE_USER_SCRIPT_SANDBOXING = NO; GCC_C_LANGUAGE_STANDARD = gnu17; GENERATE_INFOPLIST_FILE = YES; @@ -788,6 +799,7 @@ MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront.RunnerUITests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = NO; TARGETED_DEVICE_FAMILY = "1,2"; TEST_TARGET_NAME = Runner; @@ -907,8 +919,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 7Z5U7CM33F; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; @@ -918,6 +932,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -931,8 +946,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 7Z5U7CM33F; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; @@ -942,6 +959,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = com.example.tunefunFront; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; diff --git a/pubspec.lock b/pubspec.lock index e93a2d2..f39f066 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -608,7 +608,7 @@ packages: source: hosted version: "3.5.2" patrol_finders: - dependency: transitive + dependency: "direct dev" description: name: patrol_finders sha256: ac33527cc1b63e3aa131dbd7107cfda8ee2df0fb4a4a423c067174a2e60db77b diff --git a/pubspec.yaml b/pubspec.yaml index 1459934..c68c2ac 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -63,6 +63,7 @@ dev_dependencies: # package. See that file for information about deactivating specific lint # rules and activating additional ones. flutter_lints: ^2.0.0 + patrol_finders: ^2.0.2 patrol: app_name: tunefun_front diff --git a/test/widget_test.dart b/test/widget_test.dart index 2265e55..f8df25a 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -5,26 +5,32 @@ // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. -import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_test/flutter_test.dart'; - +import 'package:tunefun_front/constants/dummy_data.dart'; +import 'package:tunefun_front/features/article/widgets/article_card.dart'; +import 'package:tunefun_front/features/article/widgets/article_list.dart'; +import 'package:tunefun_front/features/home/views/home_view.dart'; import 'package:tunefun_front/main.dart'; +import 'package:patrol_finders/patrol_finders.dart'; void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); + testWidgets( + 'Main Screen test', + (WidgetTester tester) async { + PatrolTester $ = PatrolTester( + tester: tester, + config: const PatrolTesterConfig(), + ); + await $.pumpWidget( + const ProviderScope( + child: MyApp(), + ), + ); + expect($('TuneFun'), findsWidgets); + expect($(const HomeScreen()), findsOneWidget); + expect($(const ArticleList()), findsWidgets); + final articles = DummyData.articles; + }, + ); } From 087b09a4ed8482f889bd859b80530c26f47e27bf Mon Sep 17 00:00:00 2001 From: seilylook Date: Mon, 25 Mar 2024 11:59:24 +0900 Subject: [PATCH 4/4] config: delete slack message send --- .github/workflows/send_slack_message.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .github/workflows/send_slack_message.yml diff --git a/.github/workflows/send_slack_message.yml b/.github/workflows/send_slack_message.yml deleted file mode 100644 index e69de29..0000000