Commit ae5a0d37 cgx

unity_build_framework用于存放unity编译后的framework

1 个父辈 6d339fed
正在显示 74 个修改的文件 包含 757 行增加12 行删除
...@@ -34,9 +34,6 @@ ...@@ -34,9 +34,6 @@
D030C1B8284775930014946F /* RelaxTrainController.m in Sources */ = {isa = PBXBuildFile; fileRef = D030C1B7284775930014946F /* RelaxTrainController.m */; }; D030C1B8284775930014946F /* RelaxTrainController.m in Sources */ = {isa = PBXBuildFile; fileRef = D030C1B7284775930014946F /* RelaxTrainController.m */; };
D033616028502B76005573CF /* DailyTaskTV.m in Sources */ = {isa = PBXBuildFile; fileRef = D033615F28502B76005573CF /* DailyTaskTV.m */; }; D033616028502B76005573CF /* DailyTaskTV.m in Sources */ = {isa = PBXBuildFile; fileRef = D033615F28502B76005573CF /* DailyTaskTV.m */; };
D0336163285035AB005573CF /* DailyBgView.m in Sources */ = {isa = PBXBuildFile; fileRef = D0336162285035AB005573CF /* DailyBgView.m */; }; D0336163285035AB005573CF /* DailyBgView.m in Sources */ = {isa = PBXBuildFile; fileRef = D0336162285035AB005573CF /* DailyBgView.m */; };
D03361942850AA63005573CF /* UnityFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0C10E9528324F2000D2F640 /* UnityFramework.framework */; };
D03361952850AA63005573CF /* UnityFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D0C10E9528324F2000D2F640 /* UnityFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
D03361972850AC68005573CF /* UnityFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0C10E9528324F2000D2F640 /* UnityFramework.framework */; };
D037C497284F4A22000F3089 /* SignTaskView.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C496284F4A22000F3089 /* SignTaskView.m */; }; D037C497284F4A22000F3089 /* SignTaskView.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C496284F4A22000F3089 /* SignTaskView.m */; };
D037C49A284F4F0D000F3089 /* DailyTaskCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C499284F4F0D000F3089 /* DailyTaskCell.m */; }; D037C49A284F4F0D000F3089 /* DailyTaskCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C499284F4F0D000F3089 /* DailyTaskCell.m */; };
D037C49D284F5DE8000F3089 /* DailyTaskSrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C49C284F5DE8000F3089 /* DailyTaskSrollView.m */; }; D037C49D284F5DE8000F3089 /* DailyTaskSrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C49C284F5DE8000F3089 /* DailyTaskSrollView.m */; };
...@@ -220,16 +217,18 @@ ...@@ -220,16 +217,18 @@
D0FAC425281B817D00D4B859 /* GKPhotoBrowser.bundle in Resources */ = {isa = PBXBuildFile; fileRef = D0FAC41B281B817D00D4B859 /* GKPhotoBrowser.bundle */; }; D0FAC425281B817D00D4B859 /* GKPhotoBrowser.bundle in Resources */ = {isa = PBXBuildFile; fileRef = D0FAC41B281B817D00D4B859 /* GKPhotoBrowser.bundle */; };
D0FAC429281B865300D4B859 /* GKYYWebImageManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D0FAC427281B865300D4B859 /* GKYYWebImageManager.m */; }; D0FAC429281B865300D4B859 /* GKYYWebImageManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D0FAC427281B865300D4B859 /* GKYYWebImageManager.m */; };
D0FAC662281BAACB00D4B859 /* YYAnimationImageView+Fix.m in Sources */ = {isa = PBXBuildFile; fileRef = D0FAC661281BAACB00D4B859 /* YYAnimationImageView+Fix.m */; }; D0FAC662281BAACB00D4B859 /* YYAnimationImageView+Fix.m in Sources */ = {isa = PBXBuildFile; fileRef = D0FAC661281BAACB00D4B859 /* YYAnimationImageView+Fix.m */; };
D0FFCD412853421900A01707 /* UnityFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0FFCD402853421900A01707 /* UnityFramework.framework */; };
D0FFCD422853421900A01707 /* UnityFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D0FFCD402853421900A01707 /* UnityFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */ /* Begin PBXCopyFilesBuildPhase section */
D03361962850AA63005573CF /* Embed Frameworks */ = { D0FFCD432853421900A01707 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase; isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
dstPath = ""; dstPath = "";
dstSubfolderSpec = 10; dstSubfolderSpec = 10;
files = ( files = (
D03361952850AA63005573CF /* UnityFramework.framework in Embed Frameworks */, D0FFCD422853421900A01707 /* UnityFramework.framework in Embed Frameworks */,
); );
name = "Embed Frameworks"; name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
...@@ -650,6 +649,7 @@ ...@@ -650,6 +649,7 @@
D0FAC660281BAACB00D4B859 /* YYAnimationImageView+Fix.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "YYAnimationImageView+Fix.h"; sourceTree = "<group>"; }; D0FAC660281BAACB00D4B859 /* YYAnimationImageView+Fix.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "YYAnimationImageView+Fix.h"; sourceTree = "<group>"; };
D0FAC661281BAACB00D4B859 /* YYAnimationImageView+Fix.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "YYAnimationImageView+Fix.m"; sourceTree = "<group>"; }; D0FAC661281BAACB00D4B859 /* YYAnimationImageView+Fix.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "YYAnimationImageView+Fix.m"; sourceTree = "<group>"; };
D0FAC663281BB55C00D4B859 /* CGGeometry+RSKImageCropper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CGGeometry+RSKImageCropper.h"; sourceTree = "<group>"; }; D0FAC663281BB55C00D4B859 /* CGGeometry+RSKImageCropper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CGGeometry+RSKImageCropper.h"; sourceTree = "<group>"; };
D0FFCD402853421900A01707 /* UnityFramework.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UnityFramework.framework; path = unity_build_framework/UnityFramework.framework; sourceTree = "<group>"; };
F02C34A5649294F60932630C /* Pods-DreamSleep.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DreamSleep.release.xcconfig"; path = "Target Support Files/Pods-DreamSleep/Pods-DreamSleep.release.xcconfig"; sourceTree = "<group>"; }; F02C34A5649294F60932630C /* Pods-DreamSleep.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DreamSleep.release.xcconfig"; path = "Target Support Files/Pods-DreamSleep/Pods-DreamSleep.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
...@@ -663,13 +663,12 @@ ...@@ -663,13 +663,12 @@
D046FE1428100342000295AC /* libWeChatSDK.a in Frameworks */, D046FE1428100342000295AC /* libWeChatSDK.a in Frameworks */,
D046FE1228100342000295AC /* libSocialOfficialWeChat.a in Frameworks */, D046FE1228100342000295AC /* libSocialOfficialWeChat.a in Frameworks */,
D046FE1728100342000295AC /* TencentOpenAPI.framework in Frameworks */, D046FE1728100342000295AC /* TencentOpenAPI.framework in Frameworks */,
D03361942850AA63005573CF /* UnityFramework.framework in Frameworks */, D0FFCD412853421900A01707 /* UnityFramework.framework in Frameworks */,
39CC172FB610DA5F29120B56 /* Pods_DreamSleep.framework in Frameworks */, 39CC172FB610DA5F29120B56 /* Pods_DreamSleep.framework in Frameworks */,
D046FE0F28100342000295AC /* UMShare.framework in Frameworks */, D046FE0F28100342000295AC /* UMShare.framework in Frameworks */,
D046FE1128100342000295AC /* libSocialWeChat.a in Frameworks */, D046FE1128100342000295AC /* libSocialWeChat.a in Frameworks */,
D046FE1828100342000295AC /* UMDevice.framework in Frameworks */, D046FE1828100342000295AC /* UMDevice.framework in Frameworks */,
D046FE0E28100342000295AC /* UShareUI.framework in Frameworks */, D046FE0E28100342000295AC /* UShareUI.framework in Frameworks */,
D03361972850AC68005573CF /* UnityFramework.framework in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -682,6 +681,7 @@ ...@@ -682,6 +681,7 @@
D03ABDAB28328F1400DD88B0 /* UnityFramework.framework */, D03ABDAB28328F1400DD88B0 /* UnityFramework.framework */,
D0C10E9528324F2000D2F640 /* UnityFramework.framework */, D0C10E9528324F2000D2F640 /* UnityFramework.framework */,
D03ABDAF28328F4300DD88B0 /* UnityFramework.framework */, D03ABDAF28328F4300DD88B0 /* UnityFramework.framework */,
D0FFCD402853421900A01707 /* UnityFramework.framework */,
D07F9D0627F45CB20036372F /* DKNightVersion.framework */, D07F9D0627F45CB20036372F /* DKNightVersion.framework */,
2D11699D88A7A7BDB6168B71 /* Pods_DreamSleep.framework */, 2D11699D88A7A7BDB6168B71 /* Pods_DreamSleep.framework */,
); );
...@@ -1730,7 +1730,7 @@ ...@@ -1730,7 +1730,7 @@
D0B5EC9E27F2D9DE003EDFE3 /* Frameworks */, D0B5EC9E27F2D9DE003EDFE3 /* Frameworks */,
D0B5EC9F27F2D9DE003EDFE3 /* Resources */, D0B5EC9F27F2D9DE003EDFE3 /* Resources */,
409ED65E54EAA1876017E6E6 /* [CP] Embed Pods Frameworks */, 409ED65E54EAA1876017E6E6 /* [CP] Embed Pods Frameworks */,
D03361962850AA63005573CF /* Embed Frameworks */, D0FFCD432853421900A01707 /* Embed Frameworks */,
); );
buildRules = ( buildRules = (
); );
...@@ -2184,7 +2184,7 @@ ...@@ -2184,7 +2184,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
App_Display_Name = "小梦睡眠-Dev"; App_Display_Name = "小梦睡眠-Dev";
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements; CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 6; CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = 4NDZ6UX8PW; DEVELOPMENT_TEAM = 4NDZ6UX8PW;
...@@ -2197,6 +2197,7 @@ ...@@ -2197,6 +2197,7 @@
"$(PROJECT_DIR)/DreamSleep/Vendors/UMSocial_6.10.4/SocialLibraries/QQ/QQSDK", "$(PROJECT_DIR)/DreamSleep/Vendors/UMSocial_6.10.4/SocialLibraries/QQ/QQSDK",
"$(PROJECT_DIR)/TapiOS/build/ReleaseForRunning-iphoneos", "$(PROJECT_DIR)/TapiOS/build/ReleaseForRunning-iphoneos",
"$(PROJECT_DIR)/TapiOS/build/Release-iphoneos", "$(PROJECT_DIR)/TapiOS/build/Release-iphoneos",
"$(PROJECT_DIR)/unity_build_framework",
); );
GCC_PREFIX_HEADER = "${SRCROOT}/DreamSleep/Basement/DSConfig/PrefixHeader.pch"; GCC_PREFIX_HEADER = "${SRCROOT}/DreamSleep/Basement/DSConfig/PrefixHeader.pch";
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
...@@ -2215,7 +2216,6 @@ ...@@ -2215,7 +2216,6 @@
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 11.0; IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -2266,6 +2266,7 @@ ...@@ -2266,6 +2266,7 @@
"$(PROJECT_DIR)/DreamSleep/Vendors/UMSocial_6.10.4/SocialLibraries/QQ/QQSDK", "$(PROJECT_DIR)/DreamSleep/Vendors/UMSocial_6.10.4/SocialLibraries/QQ/QQSDK",
"$(PROJECT_DIR)/TapiOS/build/ReleaseForRunning-iphoneos", "$(PROJECT_DIR)/TapiOS/build/ReleaseForRunning-iphoneos",
"$(PROJECT_DIR)/TapiOS/build/Release-iphoneos", "$(PROJECT_DIR)/TapiOS/build/Release-iphoneos",
"$(PROJECT_DIR)/unity_build_framework",
); );
GCC_PREFIX_HEADER = "${SRCROOT}/DreamSleep/Basement/DSConfig/PrefixHeader.pch"; GCC_PREFIX_HEADER = "${SRCROOT}/DreamSleep/Basement/DSConfig/PrefixHeader.pch";
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
...@@ -2284,7 +2285,6 @@ ...@@ -2284,7 +2285,6 @@
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 11.0; IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -2397,6 +2397,7 @@ ...@@ -2397,6 +2397,7 @@
"$(PROJECT_DIR)/DreamSleep/Vendors/UMSocial_6.10.4/SocialLibraries/QQ/QQSDK", "$(PROJECT_DIR)/DreamSleep/Vendors/UMSocial_6.10.4/SocialLibraries/QQ/QQSDK",
"$(PROJECT_DIR)/TapiOS/build/ReleaseForRunning-iphoneos", "$(PROJECT_DIR)/TapiOS/build/ReleaseForRunning-iphoneos",
"$(PROJECT_DIR)/TapiOS/build/Release-iphoneos", "$(PROJECT_DIR)/TapiOS/build/Release-iphoneos",
"$(PROJECT_DIR)/unity_build_framework",
); );
GCC_PREFIX_HEADER = "${SRCROOT}/DreamSleep/Basement/DSConfig/PrefixHeader.pch"; GCC_PREFIX_HEADER = "${SRCROOT}/DreamSleep/Basement/DSConfig/PrefixHeader.pch";
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
...@@ -2415,7 +2416,6 @@ ...@@ -2415,7 +2416,6 @@
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
IPHONEOS_DEPLOYMENT_TARGET = 11.0; IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
......
...@@ -115,4 +115,30 @@ ...@@ -115,4 +115,30 @@
[self swiz_viewDidAppear:animated]; [self swiz_viewDidAppear:animated];
} }
#pragma mark - 暗黑模式跟随系统(通过Hook去实现)
/*
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
[super traitCollectionDidChange:previousTraitCollection];
if (@available(iOS 13.0, *)) {
// 应用主题设置添加是否跟随系统按钮,主题模式跟随系统设置
if ([self.traitCollection hasDifferentColorAppearanceComparedToTraitCollection:previousTraitCollection]) {
// 执行操作
NSString *currentTheme = self.dk_manager.themeVersion;
if ([currentTheme isEqualToString:DKThemeVersionNight]) {
currentTheme = DKThemeVersionNormal;
} else if ([currentTheme isEqualToString:DKThemeVersionNormal]) {
currentTheme = DKThemeVersionNight;
}
self.dk_manager.themeVersion = currentTheme;
[BaseNaviController setNavigationBarStyle:[self navigationBarStyle] vc:self];
[self.navigationController preferredStatusBarStyle];
[self setNeedsStatusBarAppearanceUpdate];
}
} else {
// 低版本的不显示跟随系统按钮,主题模式根据用户操作来设置
}
}
*/
@end @end
...@@ -87,6 +87,8 @@ ...@@ -87,6 +87,8 @@
<array> <array>
<string>audio</string> <string>audio</string>
</array> </array>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>UIStatusBarStyle</key> <key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string> <string>UIStatusBarStyleLightContent</string>
</dict> </dict>
......
{
"images" : [
{
"filename" : "start_classic.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "dk_start_classic.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"filename" : "start_classic@2x.png",
"idiom" : "iphone",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "dk_start_classic@2x.png",
"idiom" : "iphone",
"scale" : "2x"
},
{
"filename" : "start_classic@3x.png",
"idiom" : "iphone",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "dk_start_classic@3x.png",
"idiom" : "iphone",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
<linker>
<assembly fullname="UnityEngine">
<type fullname="UnityEngine.Object" preserve="nothing"/>
<type fullname="UnityEditor.VFXManager" preserve="nothing"/>
<type fullname="UnityEngine.Sprite" preserve="nothing"/>
<type fullname="UnityEngine.Texture2D" preserve="nothing"/>
<type fullname="UnityEditor.TagManager" preserve="nothing"/>
<type fullname="UnityEditor.MonoManager" preserve="nothing"/>
<type fullname="UnityEngine.Rendering.GraphicsSettings" preserve="nothing"/>
<type fullname="UnityEngine.Texture" preserve="nothing"/>
<type fullname="UnityEngine.Material" preserve="nothing"/>
<type fullname="UnityEditor.TimeManager" preserve="nothing"/>
<type fullname="UnityEditor.InputManager" preserve="nothing"/>
<type fullname="UnityEngine.Shader" preserve="nothing"/>
<type fullname="UnityEditor.PhysicsManager" preserve="nothing"/>
<type fullname="UnityEngine.TextAsset" preserve="nothing"/>
<type fullname="UnityEditor.MonoScript" preserve="nothing"/>
<type fullname="UnityEditor.AudioManager" preserve="nothing"/>
<type fullname="UnityEditor.Physics2DSettings" preserve="nothing"/>
<type fullname="UnityEditor.PlayerSettings" preserve="nothing"/>
<type fullname="UnityEngine.QualitySettings" preserve="nothing"/>
<type fullname="UnityEngine.AudioBehaviour" preserve="nothing"/>
<type fullname="UnityEngine.AudioListener" preserve="nothing"/>
<type fullname="UnityEngine.Rigidbody2D" preserve="nothing"/>
<type fullname="UnityEngine.CircleCollider2D" preserve="nothing"/>
<type fullname="UnityEngine.Canvas" preserve="nothing"/>
<type fullname="UnityEngine.Behaviour" preserve="nothing"/>
<type fullname="UnityEngine.CanvasGroup" preserve="nothing"/>
<type fullname="UnityEngine.RenderSettings" preserve="nothing"/>
<type fullname="UnityEngine.Transform" preserve="nothing"/>
<type fullname="UnityEngine.Camera" preserve="nothing"/>
<type fullname="UnityEngine.Component" preserve="nothing"/>
<type fullname="UnityEngine.GameObject" preserve="nothing"/>
<type fullname="UnityEngine.AudioClip" preserve="nothing"/>
<type fullname="UnityEngine.MonoBehaviour" preserve="nothing"/>
<type fullname="UnityEngine.PhysicsMaterial2D" preserve="nothing"/>
<type fullname="UnityEngine.Collider2D" preserve="nothing"/>
<type fullname="UnityEngine.RectTransform" preserve="nothing"/>
<type fullname="UnityEngine.CanvasRenderer" preserve="nothing"/>
<type fullname="UnityEngine.LightmapSettings" preserve="nothing"/>
<type fullname="UnityEngine.AudioSource" preserve="nothing"/>
<type fullname="UnityEngine.Video.VideoPlayer" preserve="nothing"/>
<type fullname="UnityEngine.Font" preserve="nothing"/>
<type fullname="UnityEngine.Renderer" preserve="nothing"/>
<type fullname="UnityEngine.ParticleSystemRenderer" preserve="nothing"/>
<type fullname="UnityEngine.ParticleSystem" preserve="nothing"/>
<type fullname="UnityEngine.Mesh" preserve="nothing"/>
<type fullname="UnityEngine.BoxCollider2D" preserve="nothing"/>
<type fullname="UnityEngine.SpriteRenderer" preserve="nothing"/>
<type fullname="UnityEngine.Video.VideoClip" preserve="nothing"/>
</assembly>
<assembly fullname="Assembly-CSharp">
<type fullname="ButtonClose" preserve="nothing"/>
<type fullname="Global" preserve="nothing"/>
<type fullname="MusicFade" preserve="nothing"/>
<type fullname="NorbuMain" preserve="nothing"/>
<type fullname="TapMain" preserve="nothing"/>
<type fullname="ball" preserve="nothing"/>
<type fullname="home" preserve="nothing"/>
<type fullname="process" preserve="nothing"/>
<type fullname="video" preserve="nothing"/>
</assembly>
<assembly fullname="Unity.2D.IK.Runtime">
<type fullname="UnityEditor.U2D.IK.IKEditorManagerHelper" preserve="nothing"/>
</assembly>
<assembly fullname="UnityEngine.UI">
<type fullname="UnityEngine.EventSystems.EventSystem" preserve="nothing"/>
<type fullname="UnityEngine.EventSystems.StandaloneInputModule" preserve="nothing"/>
<type fullname="UnityEngine.UI.Button" preserve="nothing"/>
<type fullname="UnityEngine.UI.CanvasScaler" preserve="nothing"/>
<type fullname="UnityEngine.UI.GraphicRaycaster" preserve="nothing"/>
<type fullname="UnityEngine.UI.Image" preserve="nothing"/>
<type fullname="UnityEngine.UI.RawImage" preserve="nothing"/>
<type fullname="UnityEngine.UI.Text" preserve="nothing"/>
</assembly>
</linker>
-out="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed/tempStrip" -x="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed/TypesInScenes.xml" -d="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed" --include-unity-root-assembly="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --include-unity-root-assembly="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" --include-unity-root-assembly="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed/Unity.2D.IK.Runtime.dll" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed" --editor-settings-flag=Development --rule-set=Conservative --editor-data-file="/Users/maowenyong/Desktop/unity/Tap/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json" --platform=iOS --enable-engine-module-stripping --engine-modules-asset-file="/Applications/Unity/Hub/Editor/2020.2.1f1/PlaybackEngines/iOSSupport/modules.asset"
\ No newline at end of file \ No newline at end of file
{"names":["UnityEngine.dll","UnityEngine.AIModule.dll","UnityEngine.ARModule.dll","UnityEngine.AccessibilityModule.dll","UnityEngine.AndroidJNIModule.dll","UnityEngine.AnimationModule.dll","UnityEngine.AssetBundleModule.dll","UnityEngine.AudioModule.dll","UnityEngine.ClothModule.dll","UnityEngine.CoreModule.dll","UnityEngine.CrashReportingModule.dll","UnityEngine.DSPGraphModule.dll","UnityEngine.DirectorModule.dll","UnityEngine.GIModule.dll","UnityEngine.GameCenterModule.dll","UnityEngine.GridModule.dll","UnityEngine.HotReloadModule.dll","UnityEngine.IMGUIModule.dll","UnityEngine.ImageConversionModule.dll","UnityEngine.InputModule.dll","UnityEngine.InputLegacyModule.dll","UnityEngine.JSONSerializeModule.dll","UnityEngine.LocalizationModule.dll","UnityEngine.ParticleSystemModule.dll","UnityEngine.PerformanceReportingModule.dll","UnityEngine.PhysicsModule.dll","UnityEngine.Physics2DModule.dll","UnityEngine.ProfilerModule.dll","UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll","UnityEngine.ScreenCaptureModule.dll","UnityEngine.SharedInternalsModule.dll","UnityEngine.SpriteMaskModule.dll","UnityEngine.SpriteShapeModule.dll","UnityEngine.StreamingModule.dll","UnityEngine.SubstanceModule.dll","UnityEngine.SubsystemsModule.dll","UnityEngine.TLSModule.dll","UnityEngine.TerrainModule.dll","UnityEngine.TerrainPhysicsModule.dll","UnityEngine.TextCoreModule.dll","UnityEngine.TextRenderingModule.dll","UnityEngine.TilemapModule.dll","UnityEngine.UIModule.dll","UnityEngine.UIElementsModule.dll","UnityEngine.UIElementsNativeModule.dll","UnityEngine.UNETModule.dll","UnityEngine.UmbraModule.dll","UnityEngine.UnityAnalyticsModule.dll","UnityEngine.UnityConnectModule.dll","UnityEngine.UnityCurlModule.dll","UnityEngine.UnityTestProtocolModule.dll","UnityEngine.UnityWebRequestModule.dll","UnityEngine.UnityWebRequestAssetBundleModule.dll","UnityEngine.UnityWebRequestAudioModule.dll","UnityEngine.UnityWebRequestTextureModule.dll","UnityEngine.UnityWebRequestWWWModule.dll","UnityEngine.VFXModule.dll","UnityEngine.VRModule.dll","UnityEngine.VehiclesModule.dll","UnityEngine.VideoModule.dll","UnityEngine.WindModule.dll","UnityEngine.XRModule.dll","Assembly-CSharp.dll","Unity.InternalAPIEngineBridge.001.dll","Unity.2D.PixelPerfect.dll","Unity.Timeline.dll","Unity.TextMeshPro.dll","UnityEngine.UI.dll","Unity.Mathematics.dll","Unity.2D.IK.Runtime.dll","Unity.2D.Animation.Triangle.Runtime.dll","Unity.2D.Animation.Runtime.dll","Unity.2D.Common.Runtime.dll","Unity.2D.SpriteShape.Runtime.dll"],"types":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,16,16,16,16,16,16,16,16,16,16,16,16]}
\ No newline at end of file \ No newline at end of file
player-connection-mode=Listen
player-connection-guid=3942527304
player-connection-debug=0
player-connection-project-name=DreamSleep
player-connection-ip=192.168.2.29
player-connection-ip=198.18.0.1
wait-for-native-debugger=0
hdr-display-enabled=0
gc-max-time-slice=3
#pragma once
// important app life-cycle events
@protocol LifeCycleListener<NSObject>
@optional
- (void)didFinishLaunching:(NSNotification*)notification;
- (void)didBecomeActive:(NSNotification*)notification;
- (void)willResignActive:(NSNotification*)notification;
- (void)didEnterBackground:(NSNotification*)notification;
- (void)willEnterForeground:(NSNotification*)notification;
- (void)willTerminate:(NSNotification*)notification;
- (void)unityDidUnload:(NSNotification*)notification;
- (void)unityDidQuit:(NSNotification*)notification;
@end
void UnityRegisterLifeCycleListener(id<LifeCycleListener> obj);
void UnityUnregisterLifeCycleListener(id<LifeCycleListener> obj);
#ifdef __cplusplus
extern "C" {
#endif
extern __attribute__((visibility("default"))) NSString* const kUnityDidUnload;
extern __attribute__((visibility("default"))) NSString* const kUnityDidQuit;
#ifdef __cplusplus
} // extern "C"
#endif
// DO NOT PUT #pragma once or include guard check here
// This header is designed to be able to be included multiple times
// This header is used to redefine platforms after they were temporary undefined by UndefinePlatforms.h
// Please make sure to always use this paired with the UndefinePlatforms.h header.
//
// ex.
//
// #include "UndefinePlatforms.h"
// #include "Some3rdParty.h"
// #include "RedefinePlatforms.h"
#ifndef DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H
#error "RedefinePlatforms.h can only be used after UndefinePlatforms.h got included before."
#endif
#undef DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H
// define all other platforms to 0
#undef PLATFORM_WIN
#if defined(DETAIL__TEMP_PLATFORM_WIN_WAS_1)
#undef DETAIL__TEMP_PLATFORM_WIN_WAS_1
#define PLATFORM_WIN 1
#else
#define PLATFORM_WIN 0
#endif
#undef PLATFORM_OSX
#if defined(DETAIL__TEMP_PLATFORM_OSX_WAS_1)
#undef DETAIL__TEMP_PLATFORM_OSX_WAS_1
#define PLATFORM_OSX 1
#else
#define PLATFORM_OSX 0
#endif
#undef PLATFORM_LINUX
#if defined(DETAIL__TEMP_PLATFORM_LINUX_WAS_1)
#undef DETAIL__TEMP_PLATFORM_LINUX_WAS_1
#define PLATFORM_LINUX 1
#else
#define PLATFORM_LINUX 0
#endif
#undef PLATFORM_WINRT
#if defined(DETAIL__TEMP_PLATFORM_WINRT_WAS_1)
#undef DETAIL__TEMP_PLATFORM_WINRT_WAS_1
#define PLATFORM_WINRT 1
#else
#define PLATFORM_WINRT 0
#endif
#undef PLATFORM_FAMILY_WINDOWSGAMES
#if defined(DETAIL__TEMP_PLATFORM_FAMILY_WINDOWSGAMES_WAS_1)
#undef DETAIL__TEMP_PLATFORM_FAMILY_WINDOWSGAMES_WAS_1
#define PLATFORM_FAMILY_WINDOWSGAMES 1
#else
#define PLATFORM_FAMILY_WINDOWSGAMES 0
#endif
#undef PLATFORM_WEBGL
#if defined(DETAIL__TEMP_PLATFORM_WEBGL_WAS_1)
#undef DETAIL__TEMP_PLATFORM_WEBGL_WAS_1
#define PLATFORM_WEBGL 1
#else
#define PLATFORM_WEBGL 0
#endif
#undef PLATFORM_WASI
#if defined(DETAIL__TEMP_PLATFORM_WASI_WAS_1)
#undef DETAIL__TEMP_PLATFORM_WASI_WAS_1
#define PLATFORM_WASI 1
#else
#define PLATFORM_WASI 0
#endif
#undef PLATFORM_ANDROID
#if defined(DETAIL__TEMP_PLATFORM_ANDROID_WAS_1)
#undef DETAIL__TEMP_PLATFORM_ANDROID_WAS_1
#define PLATFORM_ANDROID 1
#else
#define PLATFORM_ANDROID 0
#endif
#undef PLATFORM_PS4
#if defined(DETAIL__TEMP_PLATFORM_PS4_WAS_1)
#undef DETAIL__TEMP_PLATFORM_PS4_WAS_1
#define PLATFORM_PS4 1
#else
#define PLATFORM_PS4 0
#endif
#undef PLATFORM_PS5
#if defined(DETAIL__TEMP_PLATFORM_PS5_WAS_1)
#undef DETAIL__TEMP_PLATFORM_PS5_WAS_1
#define PLATFORM_PS5 1
#else
#define PLATFORM_PS5 0
#endif
#undef PLATFORM_IPHONE
#if defined(DETAIL__TEMP_PLATFORM_IPHONE_WAS_1)
#undef DETAIL__TEMP_PLATFORM_IPHONE_WAS_1
#define PLATFORM_IPHONE 1
#else
#define PLATFORM_IPHONE 0
#endif
#undef PLATFORM_IOS
#if defined(DETAIL__TEMP_PLATFORM_IOS_WAS_1)
#undef DETAIL__TEMP_PLATFORM_IOS_WAS_1
#define PLATFORM_IOS 1
#else
#define PLATFORM_IOS 0
#endif
#undef PLATFORM_TVOS
#if defined(DETAIL__TEMP_PLATFORM_TVOS_WAS_1)
#undef DETAIL__TEMP_PLATFORM_TVOS_WAS_1
#define PLATFORM_TVOS 1
#else
#define PLATFORM_TVOS 0
#endif
#undef PLATFORM_XBOXONE
#if defined(DETAIL__TEMP_PLATFORM_XBOXONE_WAS_1)
#undef DETAIL__TEMP_PLATFORM_XBOXONE_WAS_1
#define PLATFORM_XBOXONE 1
#else
#define PLATFORM_XBOXONE 0
#endif
#undef PLATFORM_SWITCH
#if defined(DETAIL__TEMP_PLATFORM_SWITCH_WAS_1)
#undef DETAIL__TEMP_PLATFORM_SWITCH_WAS_1
#define PLATFORM_SWITCH 1
#else
#define PLATFORM_SWITCH 0
#endif
#undef PLATFORM_LUMIN
#if defined(DETAIL__TEMP_PLATFORM_LUMIN_WAS_1)
#undef DETAIL__TEMP_PLATFORM_LUMIN_WAS_1
#define PLATFORM_LUMIN 1
#else
#define PLATFORM_LUMIN 0
#endif
#undef PLATFORM_STADIA
#if defined(DETAIL__TEMP_PLATFORM_STADIA_WAS_1)
#undef DETAIL__TEMP_PLATFORM_STADIA_WAS_1
#define PLATFORM_STADIA 1
#else
#define PLATFORM_STADIA 0
#endif
#undef PLATFORM_NETBSD
#if defined(DETAIL__TEMP_PLATFORM_NETBSD_WAS_1)
#undef DETAIL__TEMP_PLATFORM_NETBSD_WAS_1
#define PLATFORM_NETBSD 1
#else
#define PLATFORM_NETBSD 0
#endif
#pragma once
#include "LifeCycleListener.h"
struct UnityDisplaySurfaceBase; // Unity/UnityRendering.h
struct RenderingSurfaceParams; // Unity/DisplayManager.h
// due to delicate nature of render loop we have just one delegate in app
// if you need to use several rendering delegates you need to do one of:
// 1. create custom delegate that will have code to combine effects by itself
// 2. use helper that simply holds array of delegates (which will work only in easiest cases)
@protocol RenderPluginDelegate<LifeCycleListener, NSObject>
@required
// this will be called right after gles intialization.
// surface pointer will never be changed, so you should keep it.
// the only valid fields in there as of now are layer and context
- (void)mainDisplayInited:(struct UnityDisplaySurfaceBase*)surface;
@optional
// this will be called before recreating main display surface (from [UnityView recreateRenderingSurface])
// you can tweak params here.
// use it for enabling CVTextureCache support and the likes
- (void)onBeforeMainDisplaySurfaceRecreate:(struct RenderingSurfaceParams*)params;
// this will be called right after recreating main display surface (from [UnityView recreateRenderingSurface])
// as [UnityView recreateRenderingSurface] is the only place where unity itself will trigger surface recreate
// you can use this method to update your rendering depending on changes
- (void)onAfterMainDisplaySurfaceRecreate;
// this will be called after frame render and msaa resolve but before blitting to system FB
// you can expect that frame contents are ready (though still in target resolution)
// use it for anylizing/postprocessing rendered frame, taking screenshot and the like
// you should use targetFB if it is not 0
// otherwise use systemFB (covers case of intermediate fb not needed: no msaa, native res, no CVTextureCache involved)
- (void)onFrameResolved;
@end
// simple helper for common plugin stuff
// you can implement protocol directly, but subclassing this will provide some common implementation
@interface RenderPluginDelegate : NSObject<RenderPluginDelegate>
{
struct UnityDisplaySurfaceBase* mainDisplaySurface;
}
- (void)mainDisplayInited:(struct UnityDisplaySurfaceBase*)surface;
@end
// simple helper to have an array of render delegates.
// be warned that it works in simplest cases only, when there is no interop between delegates
@interface RenderPluginArrayDelegate : RenderPluginDelegate
{
NSArray* delegateArray;
}
@property(nonatomic, retain) NSArray* delegateArray;
- (void)mainDisplayInited:(struct UnityDisplaySurfaceBase*)surface;
- (void)onBeforeMainDisplaySurfaceRecreate:(struct RenderingSurfaceParams*)params;
- (void)onAfterMainDisplaySurfaceRecreate;
- (void)onFrameResolved;
- (void)didBecomeActive:(NSNotification*)notification;
- (void)willResignActive:(NSNotification*)notification;
- (void)didEnterBackground:(NSNotification*)notification;
- (void)willEnterForeground:(NSNotification*)notification;
- (void)willTerminate:(NSNotification*)notification;
@end
// DO NOT PUT #pragma once or include guard check here
// This header is designed to be able to be included multiple times
// This header is used to temporary undefine all platform definitions in case there is a naming conflict with
// 3rd party code. Please make sure to always use this paired with the RedefinePlatforms.h header.
//
// ex.
//
// #include "UndefinePlatforms.h"
// #include "Some3rdParty.h"
// #include "RedefinePlatforms.h"
#ifdef DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H
#error "UndefinePlatforms.h has been included more than once or RedefinePlatforms.h is missing."
#endif
// define all other platforms to 0
#if PLATFORM_WIN
#define DETAIL__TEMP_PLATFORM_WIN_WAS_1
#endif
#undef PLATFORM_WIN
#if PLATFORM_OSX
#define DETAIL__TEMP_PLATFORM_OSX_WAS_1
#endif
#undef PLATFORM_OSX
#if PLATFORM_LINUX
#define DETAIL__TEMP_PLATFORM_LINUX_WAS_1
#endif
#undef PLATFORM_LINUX
#if PLATFORM_WINRT
#define DETAIL__TEMP_PLATFORM_WINRT_WAS_1
#endif
#undef PLATFORM_WINRT
#if PLATFORM_FAMILY_WINDOWSGAMES
#define DETAIL__TEMP_PLATFORM_FAMILY_WINDOWSGAMES_WAS_1
#endif
#undef PLATFORM_FAMILY_WINDOWSGAMES
#if PLATFORM_WEBGL
#define DETAIL__TEMP_PLATFORM_WEBGL_WAS_1
#endif
#undef PLATFORM_WEBGL
#if PLATFORM_WASI
#define DETAIL__TEMP_PLATFORM_WASI_WAS_1
#endif
#undef PLATFORM_WASI
#if PLATFORM_ANDROID
#define DETAIL__TEMP_PLATFORM_ANDROID_WAS_1
#endif
#undef PLATFORM_ANDROID
#if PLATFORM_PS4
#define DETAIL__TEMP_PLATFORM_PS4_WAS_1
#endif
#undef PLATFORM_PS4
#if PLATFORM_PS5
#define DETAIL__TEMP_PLATFORM_PS5_WAS_1
#endif
#undef PLATFORM_PS5
#if PLATFORM_IPHONE
#define DETAIL__TEMP_PLATFORM_IPHONE_WAS_1
#endif
#undef PLATFORM_IPHONE
#if PLATFORM_IOS
#define DETAIL__TEMP_PLATFORM_IOS_WAS_1
#endif
#undef PLATFORM_IOS
#if PLATFORM_TVOS
#define DETAIL__TEMP_PLATFORM_TVOS_WAS_1
#endif
#undef PLATFORM_TVOS
#if PLATFORM_XBOXONE
#define DETAIL__TEMP_PLATFORM_XBOXONE_WAS_1
#endif
#undef PLATFORM_XBOXONE
#if PLATFORM_SWITCH
#define DETAIL__TEMP_PLATFORM_SWITCH_WAS_1
#endif
#undef PLATFORM_SWITCH
#if PLATFORM_LUMIN
#define DETAIL__TEMP_PLATFORM_LUMIN_WAS_1
#endif
#undef PLATFORM_LUMIN
#if PLATFORM_STADIA
#define DETAIL__TEMP_PLATFORM_STADIA_WAS_1
#endif
#undef PLATFORM_STADIA
#if PLATFORM_NETBSD
#define DETAIL__TEMP_PLATFORM_NETBSD_WAS_1
#endif
#undef PLATFORM_NETBSD
#define DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H
#pragma once
#import <QuartzCore/CADisplayLink.h>
#include "RenderPluginDelegate.h"
@class UnityView;
@class UnityViewControllerBase;
@class DisplayConnection;
__attribute__ ((visibility("default")))
@interface UnityAppController : NSObject<UIApplicationDelegate>
{
UnityView* _unityView;
CADisplayLink* _displayLink;
UIWindow* _window;
UIView* _rootView;
UIViewController* _rootController;
UIViewController* _snapshotViewController;
DisplayConnection* _mainDisplay;
// We will cache view controllers used for fixed orientation (indexed by UIInterfaceOrientation).
// Default view contoller goes to index 0. The default view controller is used when autorotation is enabled.
//
// There's no way to force iOS to change orientation when autorotation is enabled and the current orientation is disabled.
// [UIViewController attemptRotationToDeviceOrientation] is insufficient to force iOS to change orientation in this circumstance.
// We will recreate _viewControllerForOrientation[0] in that case immediately (see checkOrientationRequest for more comments)
#if UNITY_SUPPORT_ROTATION
UIViewController* _viewControllerForOrientation[5];
UIInterfaceOrientation _curOrientation;
#else
UIViewController* _viewControllerForOrientation[1];
#endif
id<RenderPluginDelegate> _renderDelegate;
}
// override it to add your render plugin delegate
- (void)shouldAttachRenderDelegate;
// this one is called at the very end of didFinishLaunchingWithOptions:
// after views have been created but before initing engine itself
// override it to register plugins, tweak UI etc
- (void)preStartUnity;
// this one is called at first applicationDidBecomeActive
// NB: it will be started with delay 0, so it will run on next run loop iteration
// this is done to make sure that activity indicator animation starts before blocking loading
- (void)startUnity:(UIApplication*)application;
// this is a part of UIApplicationDelegate protocol starting with ios5
// setter will be generated empty
@property (retain, nonatomic) UIWindow* window;
@property (readonly, copy, nonatomic) UnityView* unityView;
@property (readonly, copy, nonatomic) CADisplayLink* unityDisplayLink;
@property (readonly, copy, nonatomic) UIView* rootView;
@property (readonly, copy, nonatomic) UIViewController* rootViewController;
@property (readonly, copy, nonatomic) DisplayConnection* mainDisplay;
#if UNITY_SUPPORT_ROTATION
@property (readonly, nonatomic) UIInterfaceOrientation interfaceOrientation;
#endif
@property (nonatomic, retain) id renderDelegate;
@property (nonatomic, copy) void (^quitHandler)(void);
@end
// accessing app controller
#ifdef __cplusplus
extern "C" {
#endif
extern UnityAppController* _UnityAppController;
extern UnityAppController* GetAppController(void);
#ifdef __cplusplus
} // extern "C"
#endif
// Put this into mm file with your subclass implementation
// pass subclass name to define
#define IMPL_APP_CONTROLLER_SUBCLASS(ClassName) \
@interface ClassName(OverrideAppDelegate) \
{ \
} \
+(void)load; \
@end \
@implementation ClassName(OverrideAppDelegate) \
+(void)load \
{ \
extern const char* AppControllerClassName; \
AppControllerClassName = #ClassName; \
} \
@end \
// plugins
#define APP_CONTROLLER_RENDER_PLUGIN_METHOD(method) \
do { \
id<RenderPluginDelegate> delegate = GetAppController().renderDelegate; \
if([delegate respondsToSelector:@selector(method)]) \
[delegate method]; \
} while(0)
#define APP_CONTROLLER_RENDER_PLUGIN_METHOD_ARG(method, arg) \
do { \
id<RenderPluginDelegate> delegate = GetAppController().renderDelegate; \
if([delegate respondsToSelector:@selector(method:)]) \
[delegate method:arg]; \
} while(0)
// these are simple wrappers about ios api, added for convenience
void AppController_SendNotification(NSString* name);
void AppController_SendNotificationWithArg(NSString* name, id arg);
void AppController_SendUnityViewControllerNotification(NSString* name);
// in the case when apple adds new api that has easy fallback path for old ios
// we will add new api methods at runtime on older ios, so we can switch to new api universally
// in that case we still need actual declaration: we will do it here as it is the most convenient place
// history:
// [CADisplayLink preferredFramesPerSecond], [UIScreen maximumFramesPerSecond], [UIView safeAreaInsets]
// were removed after we started to enforce xcode9 (sdk 11)
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "UnityAppController.h"
#include "UndefinePlatforms.h"
#include <mach-o/ldsyms.h>
typedef struct
#ifdef __LP64__
mach_header_64
#else
mach_header
#endif
MachHeader;
#include "RedefinePlatforms.h"
//! Project version number for UnityFramework.
FOUNDATION_EXPORT double UnityFrameworkVersionNumber;
//! Project version string for UnityFramework.
FOUNDATION_EXPORT const unsigned char UnityFrameworkVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <UnityFramework/PublicHeader.h>
#pragma once
// important app life-cycle events
__attribute__ ((visibility("default")))
@protocol UnityFrameworkListener<NSObject>
@optional
- (void)unityDidUnload:(NSNotification*)notification;
- (void)unityDidQuit:(NSNotification*)notification;
@end
__attribute__ ((visibility("default")))
@interface UnityFramework : NSObject
{
}
- (UnityAppController*)appController;
+ (UnityFramework*)getInstance;
- (void)setDataBundleId:(const char*)bundleId;
- (void)runUIApplicationMainWithArgc:(int)argc argv:(char*[])argv;
- (void)runEmbeddedWithArgc:(int)argc argv:(char*[])argv appLaunchOpts:(NSDictionary*)appLaunchOpts;
- (void)unloadApplication;
- (void)quitApplication:(int)exitCode;
- (void)registerFrameworkListener:(id<UnityFrameworkListener>)obj;
- (void)unregisterFrameworkListener:(id<UnityFrameworkListener>)obj;
- (void)showUnityWindow;
- (void)pause:(bool)pause;
- (void)setExecuteHeader:(const MachHeader*)header;
- (void)sendMessageToGOWithName:(const char*)goName functionName:(const char*)name message:(const char*)msg;
@end
extern "C"
{
extern void iOSExit ();
extern int iOSReadUserGameData();
extern int iOSWriteUserGameData(int i);
}
\ No newline at end of file \ No newline at end of file
framework module UnityFramework {
umbrella header "UnityFramework.h"
export *
module * { export * }
}
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!