leon 8fbb7a3a50 添加部分三轮车游戏用到的接口 | 2 anni fa | |
---|---|---|
IMAGES | 2 anni fa | |
IOSToUnityBundle | 2 anni fa | |
IOSToUnitySDK | 2 anni fa | |
IOSToUnitySDK.xcodeproj | 2 anni fa | |
IOSToUnitySDK.xcworkspace | 2 anni fa | |
SDK | 2 anni fa | |
.DS_Store | 2 anni fa | |
README.md | 2 anni fa |
导出的包在工程目录Products下,右键show in finder可查看
(配置包名:com.Oujia.***,添加App Group、Background Model)
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>App 需要您的同意,才能访问蓝牙连接智能鞋</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App 需要您的同意,才能访问蓝牙连接智能鞋</string>
//跑酷: identifler : RunGame
URL Schemes: com.RunGame.oujia
//跳舞: identifler : DanceGame
URL Schemes: com.DanceGame.oujia
//1.在程序入口UnityAppController.mm文件中导入SDK头文件
#import <IOSToUnitySDK/IOSPlatformSDK.h>
//2.在程序入口中添加启动SDK 代码如下
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
if(launchOptions[UIApplicationLaunchOptionsURLKey]){
NSURL *url = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
NSLog(@"打开方式 通过URL打开的 ===== >> %@",url);
IOSPlatformSDK * sdk = [IOSPlatformSDK sharedInstance];
[sdk startWithUrl:url];
}
}
//3.从趣动App跳转的回调方法中添加如下代码
- (BOOL)application:(UIApplication*)app openURL:(NSURL*)url options:(NSDictionary<NSString*, id>*)options
{
IOSPlatformSDK * sdk = [IOSPlatformSDK sharedInstance];
[sdk startWithUrl:url];
}
1.chmod +x ~/MapFileParser.sh 文件授权
2.添加编译文件PluginInterface.mm
3.修改Enable Bitcode为NO
4.TARGETS下的UnityFramework配置bundle平台为ios+mac