Skip to content

Commit

Permalink
feat: IOS GameLoop addition (#1325)
Browse files Browse the repository at this point in the history
This PR adds iOS example project with a game loop.

Scripts for generating IPA file from iOS source code will be added in:
#1345

Support for game loop in Flank will be fully implemented in:
#1341


## Test Plan
> How do we know the code works?

.

## Checklist

- [x] Documented
- [x] Unit tested

_____

Bottom note: Flank doesn't support gameloop mode for iOS yet. 
Flank requires xctestrun-file which doesn't exist in gameloop mode. #1341
  • Loading branch information
zuziaka authored Nov 25, 2020
1 parent e450298 commit 3075194
Show file tree
Hide file tree
Showing 22 changed files with 1,842 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,346 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
3201E305255D3E9D00347837 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3201E304255D3E9D00347837 /* AppDelegate.swift */; };
3201E307255D3E9D00347837 /* GameScene.sks in Resources */ = {isa = PBXBuildFile; fileRef = 3201E306255D3E9D00347837 /* GameScene.sks */; };
3201E309255D3E9D00347837 /* Actions.sks in Resources */ = {isa = PBXBuildFile; fileRef = 3201E308255D3E9D00347837 /* Actions.sks */; };
3201E30B255D3E9D00347837 /* GameScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3201E30A255D3E9D00347837 /* GameScene.swift */; };
3201E30D255D3E9D00347837 /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3201E30C255D3E9D00347837 /* GameViewController.swift */; };
3201E310255D3E9D00347837 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3201E30E255D3E9D00347837 /* Main.storyboard */; };
3201E312255D3E9E00347837 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3201E311255D3E9E00347837 /* Assets.xcassets */; };
3201E33F255D48D900347837 /* FTLGameLoop.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3201E33E255D48D900347837 /* FTLGameLoop.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
3201E301255D3E9D00347837 /* FlankGameLoopExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FlankGameLoopExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
3201E304255D3E9D00347837 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3201E306255D3E9D00347837 /* GameScene.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = GameScene.sks; sourceTree = "<group>"; };
3201E308255D3E9D00347837 /* Actions.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = Actions.sks; sourceTree = "<group>"; };
3201E30A255D3E9D00347837 /* GameScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameScene.swift; sourceTree = "<group>"; };
3201E30C255D3E9D00347837 /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = "<group>"; };
3201E30F255D3E9D00347837 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3201E311255D3E9E00347837 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3201E313255D3E9E00347837 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3201E33E255D48D900347837 /* FTLGameLoop.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FTLGameLoop.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
3201E2FE255D3E9D00347837 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3201E2F8255D3E9D00347837 = {
isa = PBXGroup;
children = (
3201E303255D3E9D00347837 /* flankgameloop */,
3201E302255D3E9D00347837 /* Products */,
);
sourceTree = "<group>";
};
3201E302255D3E9D00347837 /* Products */ = {
isa = PBXGroup;
children = (
3201E301255D3E9D00347837 /* FlankGameLoopExample.app */,
);
name = Products;
sourceTree = "<group>";
};
3201E303255D3E9D00347837 /* flankgameloop */ = {
isa = PBXGroup;
children = (
3201E304255D3E9D00347837 /* AppDelegate.swift */,
3201E306255D3E9D00347837 /* GameScene.sks */,
3201E308255D3E9D00347837 /* Actions.sks */,
3201E30A255D3E9D00347837 /* GameScene.swift */,
3201E30C255D3E9D00347837 /* GameViewController.swift */,
3201E30E255D3E9D00347837 /* Main.storyboard */,
3201E311255D3E9E00347837 /* Assets.xcassets */,
3201E313255D3E9E00347837 /* Info.plist */,
3201E33E255D48D900347837 /* FTLGameLoop.swift */,
);
path = flankgameloop;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
3201E300255D3E9D00347837 /* FlankGameLoopExample */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3201E32C255D3E9E00347837 /* Build configuration list for PBXNativeTarget "FlankGameLoopExample" */;
buildPhases = (
3201E2FD255D3E9D00347837 /* Sources */,
3201E2FE255D3E9D00347837 /* Frameworks */,
3201E2FF255D3E9D00347837 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = FlankGameLoopExample;
productName = flankgameloop;
productReference = 3201E301255D3E9D00347837 /* FlankGameLoopExample.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
3201E2F9255D3E9D00347837 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1210;
LastUpgradeCheck = 1210;
TargetAttributes = {
3201E300255D3E9D00347837 = {
CreatedOnToolsVersion = 12.1;
};
};
};
buildConfigurationList = 3201E2FC255D3E9D00347837 /* Build configuration list for PBXProject "FlankGameLoopExample" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 3201E2F8255D3E9D00347837;
productRefGroup = 3201E302255D3E9D00347837 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
3201E300255D3E9D00347837 /* FlankGameLoopExample */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
3201E2FF255D3E9D00347837 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3201E310255D3E9D00347837 /* Main.storyboard in Resources */,
3201E307255D3E9D00347837 /* GameScene.sks in Resources */,
3201E312255D3E9E00347837 /* Assets.xcassets in Resources */,
3201E309255D3E9D00347837 /* Actions.sks in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
3201E2FD255D3E9D00347837 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3201E30B255D3E9D00347837 /* GameScene.swift in Sources */,
3201E30D255D3E9D00347837 /* GameViewController.swift in Sources */,
3201E33F255D48D900347837 /* FTLGameLoop.swift in Sources */,
3201E305255D3E9D00347837 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
3201E30E255D3E9D00347837 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
3201E30F255D3E9D00347837 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
3201E32A255D3E9E00347837 /* 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++14";
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 = 13.0;
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;
};
3201E32B255D3E9E00347837 /* 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++14";
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 = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
3201E32D255D3E9E00347837 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = L2UF9MLSM6;
INFOPLIST_FILE = flankgameloop/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.gogoapps.flankgameloop;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
3201E32E255D3E9E00347837 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = L2UF9MLSM6;
INFOPLIST_FILE = flankgameloop/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.gogoapps.flankgameloop;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
3201E2FC255D3E9D00347837 /* Build configuration list for PBXProject "FlankGameLoopExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3201E32A255D3E9E00347837 /* Debug */,
3201E32B255D3E9E00347837 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3201E32C255D3E9E00347837 /* Build configuration list for PBXNativeTarget "FlankGameLoopExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3201E32D255D3E9E00347837 /* Debug */,
3201E32E255D3E9E00347837 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 3201E2F9255D3E9D00347837 /* Project object */;
}

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Loading

0 comments on commit 3075194

Please sign in to comment.