From 3f8ec5b4537bb4e092002cd71936ff9109df38db Mon Sep 17 00:00:00 2001 From: Bartosz Polaczyk Date: Thu, 27 Jan 2022 20:45:28 +0100 Subject: [PATCH] WIP --- .github/workflows/ci.yaml | 2 + .gitignore | 6 +- Rakefile | 104 ++++ .../cocoapods-xcremotecache/command/hooks.rb | 2 +- .../project.pbxproj | 477 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../XCRemoteCacheSample/AppDelegate.swift | 48 ++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 98 ++++ .../Assets.xcassets/Contents.json | 6 + .../Base.lproj/LaunchScreen.storyboard | 25 + .../Base.lproj/Main.storyboard | 24 + .../XCRemoteCacheSample/Info.plist | 25 + .../XCRemoteCacheSample/SceneDelegate.swift | 64 +++ .../XCRemoteCacheSample/ViewController.swift | 31 ++ e2eTests/tests/default.Podfile | 8 + e2eTests/tests/multiplePods.Podfile | 11 + 18 files changed, 955 insertions(+), 2 deletions(-) create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.pbxproj create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/AppDelegate.swift create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/Contents.json create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/LaunchScreen.storyboard create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/Main.storyboard create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Info.plist create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/SceneDelegate.swift create mode 100644 e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/ViewController.swift create mode 100644 e2eTests/tests/default.Podfile create mode 100644 e2eTests/tests/multiplePods.Podfile diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 49dffdb..5e3328a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,3 +23,5 @@ jobs: run: rake build[release] - name: Test run: rake test + - name: E2ETests + run: rake e2e diff --git a/.gitignore b/.gitignore index 27a6e4d..3ed07b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,13 @@ .DS_Store /.build /Packages -/*.xcodeproj +*.xcodeproj/ +*.xcworkspace/ DerivedData /.swiftpm/ releases tmp/ .idea/ +xcuserdata +*.gem +Pods/ diff --git a/Rakefile b/Rakefile index 2563fe2..3051bd3 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,5 @@ # encoding: utf-8 +require 'json' ################################ # Rake configuration @@ -77,6 +78,109 @@ task :test do spm_test() end +desc 'run E2E tests with CocoaPods plugin' +task :e2e => [:build, :e2e_only] + +desc 'run E2E tests without building the XCRemoteCache binary' +task :e2e_only do + # Build a plugin + cocoapods_dir = 'cocoapods-plugin' + Dir.chdir(cocoapods_dir) do + gemspec_path = "cocoapods-xcremotecache.gemspec" + gemfile_path = "cocoapods-xcremotecache.gem" + system("gem build #{gemspec_path} -o #{gemfile_path}") + system("gem install #{gemfile_path}") + end + + # Build a docker image + system('docker build -t xcremotecache-demo-server backend-example') + current_branch = `git rev-parse --abbrev-ref HEAD`.chomp + producer_configuration = %{xcremotecache({ + 'cache_addresses' => ['http://localhost:8080/cache/pods'], + 'primary_repo' => '.', + 'primary_branch' => '#{current_branch}', + 'mode' => 'producer', + 'final_target' => 'XCRemoteCacheSample', + 'artifact_maximum_age' => 0 + })} + consumer_configuration = %{xcremotecache({ + 'cache_addresses' => ['http://localhost:8080/cache/pods'], + 'primary_repo' => '.', + 'primary_branch' => '#{current_branch}', + 'mode' => 'consumer', + 'final_target' => 'XCRemoteCacheSample', + 'artifact_maximum_age' => 0 + })} + # Configure remote + system('git remote add self . ; git fetch self') + + log_name = "xcodebuild.log" + # initalize Pods + for podfile_path in Dir.glob('e2eTests/**/*.Podfile') + p "****** Scenario: #{podfile_path}" + # Revert any local changes + system('git clean -xdf e2eTests/XCRemoteCacheSample') + # Link prebuild binaries to the Project + system('ln -s $(pwd)/releases e2eTests/XCRemoteCacheSample/XCRC') + # Run a docker server + system('docker run -it --rm -d -p 8080:8080 --name xcremotecache xcremotecache-demo-server') + + # Create producer Podfile + File.open('e2eTests/XCRemoteCacheSample/Podfile', 'w') do |f| + # Copy podfile + File.foreach(podfile_path) { |line| f.puts line } + + f.write(producer_configuration) + end + + Dir.chdir('e2eTests/XCRemoteCacheSample') do + system('pod install') + p "Building producer ..." + system("xcodebuild -workspace 'XCRemoteCacheSample.xcworkspace' -scheme 'XCRemoteCacheSample' -configuration 'Debug' -sdk 'iphonesimulator' -destination 'generic/platform=iOS Simulator' -derivedDataPath ./DerivedData EXCLUDED_ARCHS='arm64 i386' clean build > #{log_name}") + + # reset stats + system('XCRC/xcprepare stats --reset --format json') + # clean DerivedData + system('rm -rf ./build') + end + + + # Create consumer Podfile + File.open('e2eTests/XCRemoteCacheSample/Podfile', 'w') do |f| + # Copy podfile + File.foreach(podfile_path) { |line| f.puts line; p } + + f.write(consumer_configuration) + end + + Dir.chdir('e2eTests/XCRemoteCacheSample') do + system('pod install') + p "Building consumer ..." + system("xcodebuild -workspace 'XCRemoteCacheSample.xcworkspace' -scheme 'XCRemoteCacheSample' -configuration 'Debug' -sdk 'iphonesimulator' -destination 'generic/platform=iOS Simulator' -derivedDataPath ./DerivedData EXCLUDED_ARCHS='arm64 i386' clean build > #{log_name}") + + # clean DerivedData + system('rm -rf ./build') + + # validate 100% hit rate + stats_json_string = JSON.parse(`XCRC/xcprepare stats --format json`) + misses = stats_json_string.fetch('miss_count', 0) + hits = stats_json_string.fetch('hit_count', 0) + all_targets = misses + hits + raise "Failure: XCRemoteCache is disabled" if all_targets == 0 + hit_rate = hits * 100 / all_targets + raise "Failure: Hit rate is only #{hit_rate}%" if misses != 0 + p "hit rate: #{hit_rate}% (#{hits}/#{all_targets})" + end + + # Kill a docker + system('docker kill xcremotecache') + end + + # Revert remote + system('git origin delete self') +end + + ################################ # Helper functions ################################ diff --git a/cocoapods-plugin/lib/cocoapods-xcremotecache/command/hooks.rb b/cocoapods-plugin/lib/cocoapods-xcremotecache/command/hooks.rb index 0bcf801..1a287b3 100644 --- a/cocoapods-plugin/lib/cocoapods-xcremotecache/command/hooks.rb +++ b/cocoapods-plugin/lib/cocoapods-xcremotecache/command/hooks.rb @@ -375,7 +375,7 @@ module CocoapodsXCRemoteCacheModifier # Always integrate XCRemoteCache to all Pods, in case it will be needed later unless installer_context.pods_project.nil? # Attach XCRemoteCache to Pods targets - installer_context.pods_project.targets.each do |target| + installer_context.pods_project.native_targets.each do |target| next if target.source_build_phase.files_references.empty? next if target.name.start_with?("Pods-") next if target.name.end_with?("Tests") diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.pbxproj b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4a122ca --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.pbxproj @@ -0,0 +1,477 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 3695D9CC27A3218C007F3792 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3695D9CB27A3218C007F3792 /* AppDelegate.swift */; }; + 3695D9CE27A3218C007F3792 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3695D9CD27A3218C007F3792 /* SceneDelegate.swift */; }; + 3695D9D027A3218C007F3792 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3695D9CF27A3218C007F3792 /* ViewController.swift */; }; + 3695D9D327A3218C007F3792 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3695D9D127A3218C007F3792 /* Main.storyboard */; }; + 3695D9D527A3218D007F3792 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3695D9D427A3218D007F3792 /* Assets.xcassets */; }; + 3695D9D827A3218D007F3792 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3695D9D627A3218D007F3792 /* LaunchScreen.storyboard */; }; + E0A28FC0C12F263A640F955C /* Pods_XCRemoteCacheSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3FD0BAE1387E5E29B6D7E35 /* Pods_XCRemoteCacheSample.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 3695D9C827A3218C007F3792 /* XCRemoteCacheSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XCRemoteCacheSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3695D9CB27A3218C007F3792 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 3695D9CD27A3218C007F3792 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 3695D9CF27A3218C007F3792 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 3695D9D227A3218C007F3792 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 3695D9D427A3218D007F3792 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 3695D9D727A3218D007F3792 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 3695D9D927A3218D007F3792 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 3EE12A879EBE767C99B0FC32 /* Pods-XCRemoteCacheSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-XCRemoteCacheSample.debug.xcconfig"; path = "Target Support Files/Pods-XCRemoteCacheSample/Pods-XCRemoteCacheSample.debug.xcconfig"; sourceTree = ""; }; + A3FD0BAE1387E5E29B6D7E35 /* Pods_XCRemoteCacheSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_XCRemoteCacheSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + C7B900612D1F7BD7CA3DFDC9 /* Pods-XCRemoteCacheSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-XCRemoteCacheSample.release.xcconfig"; path = "Target Support Files/Pods-XCRemoteCacheSample/Pods-XCRemoteCacheSample.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3695D9C527A3218C007F3792 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + E0A28FC0C12F263A640F955C /* Pods_XCRemoteCacheSample.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3695D9BF27A3218C007F3792 = { + isa = PBXGroup; + children = ( + 3695D9CA27A3218C007F3792 /* XCRemoteCacheSample */, + 3695D9C927A3218C007F3792 /* Products */, + 4FE2462282E9908CE0357DE3 /* Pods */, + 9736800B94F7D85ED1CA9F7E /* Frameworks */, + ); + sourceTree = ""; + }; + 3695D9C927A3218C007F3792 /* Products */ = { + isa = PBXGroup; + children = ( + 3695D9C827A3218C007F3792 /* XCRemoteCacheSample.app */, + ); + name = Products; + sourceTree = ""; + }; + 3695D9CA27A3218C007F3792 /* XCRemoteCacheSample */ = { + isa = PBXGroup; + children = ( + 3695D9CB27A3218C007F3792 /* AppDelegate.swift */, + 3695D9CD27A3218C007F3792 /* SceneDelegate.swift */, + 3695D9CF27A3218C007F3792 /* ViewController.swift */, + 3695D9D127A3218C007F3792 /* Main.storyboard */, + 3695D9D427A3218D007F3792 /* Assets.xcassets */, + 3695D9D627A3218D007F3792 /* LaunchScreen.storyboard */, + 3695D9D927A3218D007F3792 /* Info.plist */, + ); + path = XCRemoteCacheSample; + sourceTree = ""; + }; + 4FE2462282E9908CE0357DE3 /* Pods */ = { + isa = PBXGroup; + children = ( + 3EE12A879EBE767C99B0FC32 /* Pods-XCRemoteCacheSample.debug.xcconfig */, + C7B900612D1F7BD7CA3DFDC9 /* Pods-XCRemoteCacheSample.release.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + 9736800B94F7D85ED1CA9F7E /* Frameworks */ = { + isa = PBXGroup; + children = ( + A3FD0BAE1387E5E29B6D7E35 /* Pods_XCRemoteCacheSample.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3695D9C727A3218C007F3792 /* XCRemoteCacheSample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3695D9DC27A3218D007F3792 /* Build configuration list for PBXNativeTarget "XCRemoteCacheSample" */; + buildPhases = ( + E722BEC0D6AA112B0DC88BA5 /* [CP] Check Pods Manifest.lock */, + 3695D9C427A3218C007F3792 /* Sources */, + 3695D9C527A3218C007F3792 /* Frameworks */, + 3695D9C627A3218C007F3792 /* Resources */, + 181E10D369F1135B2514CC3B /* [CP] Embed Pods Frameworks */, + 785F3A1B596395970C430424 /* [XCRC] Postbuild */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = XCRemoteCacheSample; + productName = XCRemoteCacheSample; + productReference = 3695D9C827A3218C007F3792 /* XCRemoteCacheSample.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3695D9C027A3218C007F3792 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1320; + LastUpgradeCheck = 1320; + TargetAttributes = { + 3695D9C727A3218C007F3792 = { + CreatedOnToolsVersion = 13.2.1; + }; + }; + }; + buildConfigurationList = 3695D9C327A3218C007F3792 /* Build configuration list for PBXProject "XCRemoteCacheSample" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3695D9BF27A3218C007F3792; + productRefGroup = 3695D9C927A3218C007F3792 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3695D9C727A3218C007F3792 /* XCRemoteCacheSample */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3695D9C627A3218C007F3792 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3695D9D827A3218D007F3792 /* LaunchScreen.storyboard in Resources */, + 3695D9D527A3218D007F3792 /* Assets.xcassets in Resources */, + 3695D9D327A3218C007F3792 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 181E10D369F1135B2514CC3B /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-XCRemoteCacheSample/Pods-XCRemoteCacheSample-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-XCRemoteCacheSample/Pods-XCRemoteCacheSample-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-XCRemoteCacheSample/Pods-XCRemoteCacheSample-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 785F3A1B596395970C430424 /* [XCRC] Postbuild */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + dependencyFile = "$(TARGET_TEMP_DIR)/postbuild.d"; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "$SRCROOT/XCRC/xcpostbuild", + ); + name = "[XCRC] Postbuild"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(TARGET_BUILD_DIR)/$(MODULES_FOLDER_PATH)/$(PRODUCT_MODULE_NAME).swiftmodule/$(XCRC_PLATFORM_PREFERRED_ARCH).swiftmodule.md5", + "$(TARGET_BUILD_DIR)/$(MODULES_FOLDER_PATH)/$(PRODUCT_MODULE_NAME).swiftmodule/$(XCRC_PLATFORM_PREFERRED_ARCH)-$(LLVM_TARGET_TRIPLE_VENDOR)-$(SWIFT_PLATFORM_TARGET_PREFIX)$(LLVM_TARGET_TRIPLE_SUFFIX).swiftmodule.md5", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$SCRIPT_INPUT_FILE_0\""; + }; + E722BEC0D6AA112B0DC88BA5 /* [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-XCRemoteCacheSample-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 */ + 3695D9C427A3218C007F3792 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3695D9D027A3218C007F3792 /* ViewController.swift in Sources */, + 3695D9CC27A3218C007F3792 /* AppDelegate.swift in Sources */, + 3695D9CE27A3218C007F3792 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 3695D9D127A3218C007F3792 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 3695D9D227A3218C007F3792 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 3695D9D627A3218D007F3792 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 3695D9D727A3218D007F3792 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3695D9DA27A3218D007F3792 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 3695D9DB27A3218D007F3792 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3695D9DD27A3218D007F3792 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3EE12A879EBE767C99B0FC32 /* Pods-XCRemoteCacheSample.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = XCRemoteCacheSample/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD = "$SRCROOT/XCRC/xcld"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBTOOL = "$SRCROOT/XCRC/xclibtool"; + MARKETING_VERSION = 1.0; + OTHER_CFLAGS = ( + "$(inherited)", + " -fdebug-prefix-map=$(SRCROOT)=$(XCREMOTE_CACHE_FAKE_SRCROOT)", + ); + OTHER_SWIFT_FLAGS = "$(inherited) -debug-prefix-map $(SRCROOT)=$(XCREMOTE_CACHE_FAKE_SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = com.xcremotecache.XCRemoteCacheSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_EXEC = "$SRCROOT/XCRC/xcswiftc"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + XCRC_PLATFORM_PREFERRED_ARCH = "$(LINK_FILE_LIST_$(CURRENT_VARIANT)_$(PLATFORM_PREFERRED_ARCH):dir:standardizepath:file:default=arm64)"; + XCREMOTE_CACHE_FAKE_SRCROOT = /xxxxxxxxxx; + }; + name = Debug; + }; + 3695D9DE27A3218D007F3792 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C7B900612D1F7BD7CA3DFDC9 /* Pods-XCRemoteCacheSample.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = XCRemoteCacheSample/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD = "$SRCROOT/XCRC/xcld"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBTOOL = "$SRCROOT/XCRC/xclibtool"; + MARKETING_VERSION = 1.0; + OTHER_CFLAGS = ( + "$(inherited)", + " -fdebug-prefix-map=$(SRCROOT)=$(XCREMOTE_CACHE_FAKE_SRCROOT)", + ); + OTHER_SWIFT_FLAGS = "$(inherited) -debug-prefix-map $(SRCROOT)=$(XCREMOTE_CACHE_FAKE_SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = com.xcremotecache.XCRemoteCacheSample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_EXEC = "$SRCROOT/XCRC/xcswiftc"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + XCRC_PLATFORM_PREFERRED_ARCH = "$(LINK_FILE_LIST_$(CURRENT_VARIANT)_$(PLATFORM_PREFERRED_ARCH):dir:standardizepath:file:default=arm64)"; + XCREMOTE_CACHE_FAKE_SRCROOT = /xxxxxxxxxx; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3695D9C327A3218C007F3792 /* Build configuration list for PBXProject "XCRemoteCacheSample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3695D9DA27A3218D007F3792 /* Debug */, + 3695D9DB27A3218D007F3792 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3695D9DC27A3218D007F3792 /* Build configuration list for PBXNativeTarget "XCRemoteCacheSample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3695D9DD27A3218D007F3792 /* Debug */, + 3695D9DE27A3218D007F3792 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3695D9C027A3218C007F3792 /* Project object */; +} diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/AppDelegate.swift b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/AppDelegate.swift new file mode 100644 index 0000000..433b8f1 --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/AppDelegate.swift @@ -0,0 +1,48 @@ +// Copyright (c) 2021 Spotify AB. +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AccentColor.colorset/Contents.json b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AppIcon.appiconset/Contents.json b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/Contents.json b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/LaunchScreen.storyboard b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/Main.storyboard b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/Main.storyboard new file mode 100644 index 0000000..25a7638 --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Info.plist b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/SceneDelegate.swift b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/SceneDelegate.swift new file mode 100644 index 0000000..bc8ea2c --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/SceneDelegate.swift @@ -0,0 +1,64 @@ +// Copyright (c) 2021 Spotify AB. +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/ViewController.swift b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/ViewController.swift new file mode 100644 index 0000000..3447333 --- /dev/null +++ b/e2eTests/XCRemoteCacheSample/XCRemoteCacheSample/ViewController.swift @@ -0,0 +1,31 @@ +// Copyright (c) 2021 Spotify AB. +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/e2eTests/tests/default.Podfile b/e2eTests/tests/default.Podfile new file mode 100644 index 0000000..4814b2d --- /dev/null +++ b/e2eTests/tests/default.Podfile @@ -0,0 +1,8 @@ +plugin 'cocoapods-xcremotecache' + +target 'XCRemoteCacheSample' do + use_frameworks! + + pod 'Firebase/Analytics' + pod 'ReactiveSwift' +end diff --git a/e2eTests/tests/multiplePods.Podfile b/e2eTests/tests/multiplePods.Podfile new file mode 100644 index 0000000..4cd18da --- /dev/null +++ b/e2eTests/tests/multiplePods.Podfile @@ -0,0 +1,11 @@ +plugin 'cocoapods-xcremotecache' + +install! 'cocoapods', :generate_multiple_pod_projects => true + + +target 'XCRemoteCacheSample' do + use_frameworks! + + pod 'Firebase/Analytics' + pod 'ReactiveSwift' +end