├── .gitee ├── ISSUE_TEMPLATE.zh-CN.md └── PULL_REQUEST_TEMPLATE.zh-CN.md ├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── android ├── .gitignore ├── build.gradle ├── gradle.properties ├── settings.gradle └── src │ └── main │ ├── AndroidManifest.xml │ ├── kotlin │ └── com │ │ └── jarvanmo │ │ └── nautilus │ │ ├── Constants.kt │ │ ├── LoginServiceHandler.kt │ │ ├── NautilusPlugin.kt │ │ └── TradeHandler.kt │ └── res │ └── values │ ├── ids.xml │ └── strings.xml ├── arts ├── ali.jpeg ├── logo.png └── wx.jpeg ├── example ├── .gitignore ├── .metadata ├── README.md ├── android │ ├── app │ │ ├── build.gradle │ │ ├── debug.keystore │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── jarvanmo │ │ │ │ └── nautilusexample │ │ │ │ └── MainActivity.kt │ │ │ └── res │ │ │ ├── drawable │ │ │ ├── launch_background.xml │ │ │ └── yw_1222.jpg │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ └── settings.gradle ├── ios │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Podfile │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ ├── Runner │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ │ └── LaunchImage.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ └── README.md │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── main.m │ └── config │ │ └── yw_1222.jpg ├── lib │ ├── login_page.dart │ ├── main.dart │ └── open_page.dart ├── pubspec.yaml └── test │ └── widget_test.dart ├── ios ├── .gitignore ├── Assets │ └── .gitkeep ├── Classes │ ├── Constant │ │ ├── NautilusConstants.h │ │ └── NautilusConstants.m │ ├── Handler │ │ ├── NautilusLoginService.m │ │ └── NautilusTradeHandler.m │ ├── Headers │ │ ├── NautilusLoginService.h │ │ ├── NautilusPlugin.h │ │ └── NautilusTradeHandler.h │ ├── Helper │ │ ├── NautilusStringUtil.h │ │ └── NautilusStringUtil.m │ └── NautilusPlugin.m ├── Frameworks │ ├── AlibabaAuthExt.framework │ │ ├── AlibabaAuthExt │ │ ├── Headers │ │ │ └── AlibabaAuthExt.h │ │ └── Info.plist │ ├── AlibabaAuthSDK.framework │ │ ├── AlibabaAuthSDK │ │ ├── AlibabaAuthSDK.bundle │ │ │ ├── alibaba_auth_sdk.png │ │ │ └── alimember_navbar_left@2x.png │ │ ├── Headers │ │ │ ├── ALBBEnvConfig.h │ │ │ ├── ALBBSDK.h │ │ │ ├── ALBBSession.h │ │ │ └── ALBBUser.h │ │ └── Info.plist │ ├── AlibcLinkPartnerSDK.framework │ │ ├── ALPLinkPartnerSDK.bundle │ │ │ └── localConfig.json │ │ ├── AlibcLinkPartnerSDK │ │ ├── Headers │ │ │ ├── ALPAppShare.h │ │ │ ├── ALPError.h │ │ │ ├── ALPJumpFailedStrategy.h │ │ │ ├── ALPJumpParam.h │ │ │ ├── ALPOpenUtil.h │ │ │ ├── ALPReflectionUtil.h │ │ │ ├── ALPSafeMutableDictionary.h │ │ │ ├── ALPTBDetailParam.h │ │ │ ├── ALPTBLinkPartnerSDK.h │ │ │ ├── ALPTBShopParam.h │ │ │ └── ALPTBURIParam.h │ │ └── Info.plist │ ├── AlibcTradeBiz.framework │ │ ├── AlibcTradeBiz │ │ ├── Headers │ │ │ ├── AlibcAlipayBridge.h │ │ │ ├── AlibcAuthService.h │ │ │ ├── AlibcChannelModule.h │ │ │ ├── AlibcConfigService.h │ │ │ ├── AlibcHintProtocol.h │ │ │ ├── AlibcLinkPartnerBridge.h │ │ │ ├── AlibcLoginBridge.h │ │ │ ├── AlibcTokenService.h │ │ │ ├── AlibcTrackParams.h │ │ │ ├── AlibcTradeBiz.h │ │ │ ├── AlibcTradeBizEvent.h │ │ │ ├── AlibcTradeBizSDK.h │ │ │ ├── AlibcTradeEnv.h │ │ │ ├── AlibcTradeError.h │ │ │ ├── AlibcTradeTaokeParams.h │ │ │ ├── AlibcUserAgent.h │ │ │ └── AlibcWebViewController.h │ │ ├── Info.plist │ │ ├── Modules │ │ │ └── module.modulemap │ │ └── NBResource.bundle │ │ │ ├── Root.plist │ │ │ ├── back@2x.png │ │ │ ├── back@3x.png │ │ │ ├── close@2x.png │ │ │ ├── close@3x.png │ │ │ ├── en.lproj │ │ │ └── Root.strings │ │ │ ├── localConfig.json │ │ │ ├── urlConfig.json │ │ │ ├── whiteClose@2x.png │ │ │ └── whiteClose@3x.png │ ├── AlibcTradeCommon.framework │ │ ├── AlibcTradeCommon │ │ ├── Headers │ │ │ ├── AliBCUserTrack.h │ │ │ ├── AlibcConfig.h │ │ │ ├── AlibcHybridContext.h │ │ │ ├── AlibcJSBridgeDynamicHandler.h │ │ │ ├── AlibcJSBridgeParam.h │ │ │ ├── AlibcJSBridgeService.h │ │ │ ├── AlibcJSON.h │ │ │ ├── AlibcLog.h │ │ │ ├── AlibcMonitorUtil.h │ │ │ ├── AlibcMsgBus.h │ │ │ ├── AlibcMsgBusHelp.h │ │ │ ├── AlibcMtopBridge.h │ │ │ ├── AlibcMtopCmd.h │ │ │ ├── AlibcMtopRequestHelp.h │ │ │ ├── AlibcMultiDelegates.h │ │ │ ├── AlibcNet.h │ │ │ ├── AlibcNetError.h │ │ │ ├── AlibcNetMock.h │ │ │ ├── AlibcNetPacket.h │ │ │ ├── AlibcNetServiceBase.h │ │ │ ├── AlibcNetServiceMtop.h │ │ │ ├── AlibcNumber.h │ │ │ ├── AlibcReflectionUtil.h │ │ │ ├── AlibcSecurityGuardBridge.h │ │ │ ├── AlibcString.h │ │ │ ├── AlibcThread.h │ │ │ ├── AlibcTradeBenchmarkable.h │ │ │ ├── AlibcTradeCommon.h │ │ │ ├── AlibcTradeCommonSDK.h │ │ │ ├── AlibcTradeInitMonitor.h │ │ │ ├── AlibcTradeMonitor.h │ │ │ ├── AlibcURL.h │ │ │ ├── AlibcURLBus.h │ │ │ ├── AlibcURLBusContext.h │ │ │ ├── AlibcUT.h │ │ │ ├── AlibcUTDefine.h │ │ │ ├── AlibcWebViewDelegate.h │ │ │ ├── AlibcWebViewEventListener.h │ │ │ ├── AlibcWebViewService.h │ │ │ ├── AlibcWebViewServiceImpl.h │ │ │ ├── AlibcWebviewHookHelp.h │ │ │ ├── NSDictionary+TrimNSNull.h │ │ │ ├── NSString+AlibcURL.h │ │ │ └── NSURL+ALIURL.h │ │ ├── Info.plist │ │ └── Modules │ │ │ └── module.modulemap │ ├── AlibcTradeSDK.framework │ │ ├── AlibcTradeSDK │ │ ├── Headers │ │ │ ├── AlibcTradePageFactory.h │ │ │ ├── AlibcTradeResult.h │ │ │ ├── AlibcTradeSDK.h │ │ │ ├── AlibcTradeSDKDefines.h │ │ │ ├── AlibcTradeService.h │ │ │ ├── AlibcTradeShowParams.h │ │ │ └── AlibcTradeTrackService.h │ │ └── Info.plist │ ├── AlipaySDK.framework │ │ ├── AlipaySDK │ │ ├── Headers │ │ │ ├── APayAuthInfo.h │ │ │ └── AlipaySDK.h │ │ ├── Info.plist │ │ └── en.lproj │ │ │ └── InfoPlist.strings │ ├── OpenMtopExt.framework │ │ ├── Headers │ │ │ ├── MtopAuthProtocol.h │ │ │ ├── MtopError.h │ │ │ ├── MtopErrorDefine.h │ │ │ ├── MtopExtRequest.h │ │ │ ├── MtopExtResponse.h │ │ │ ├── MtopLoginProtocol.h │ │ │ ├── MtopService.h │ │ │ ├── OpenMtopExt.h │ │ │ └── TBSDKConfiguration.h │ │ ├── Info.plist │ │ ├── OpenMtopExt │ │ ├── OpenMtopExt-Info.plist │ │ └── OpenMtopSDK.podspec │ ├── OpenMtopSDK.framework │ │ ├── Headers │ │ │ ├── JsonUtils.h │ │ │ ├── NetworkSDKDefine.h │ │ │ ├── TBSDKConnection.h │ │ │ ├── TBSDKConnectionDelegate.h │ │ │ ├── TBSDKConnectionProtocol.h │ │ │ ├── TBSDKEncryptionUntil.h │ │ │ ├── TBSDKErrorHandleDelegate.h │ │ │ ├── TBSDKErrorRule.h │ │ │ ├── TBSDKHTTPRequestOperation.h │ │ │ ├── TBSDKLogUtil.h │ │ │ ├── TBSDKMTOPEnvConfig.h │ │ │ ├── TBSDKNetworkProgressProtocol.h │ │ │ ├── TBSDKNetworkSDK.h │ │ │ ├── TBSDKNetworkSDKUtil.h │ │ │ ├── TBSDKPersistentStorage.h │ │ │ ├── TBSDKProgressDelegate.h │ │ │ ├── TBSDKRequest.h │ │ │ ├── TBSDKRequestDelegate.h │ │ │ ├── TBSDKRequestProgressProtocol.h │ │ │ ├── TBSDKSendFileObject.h │ │ │ ├── TBSDKServerQueue+Private.h │ │ │ ├── TBSDKServerQueue.h │ │ │ ├── TBSDKThreadSafeMutableArry.h │ │ │ ├── TBSDKThreadSafeMutableDictionary.h │ │ │ ├── TBSDKURLConnectionOperation.h │ │ │ ├── TBSDSKServerRule.h │ │ │ ├── TBSDkSignUtility.h │ │ │ └── UIDevice+TBSDKIdentifierAddition.h │ │ ├── OpenMtopSDK │ │ └── OpenMtopSDK.podspec │ ├── SGMain.framework │ │ ├── Headers │ │ │ ├── ISecurityGuardOpenAtlasEncrypt.h │ │ │ ├── ISecurityGuardOpenDataCollection.h │ │ │ ├── ISecurityGuardOpenDynamicDataEncrypt.h │ │ │ ├── ISecurityGuardOpenDynamicDataStore.h │ │ │ ├── ISecurityGuardOpenInitialize.h │ │ │ ├── ISecurityGuardOpenOpenSDK.h │ │ │ ├── ISecurityGuardOpenSafeToken.h │ │ │ ├── ISecurityGuardOpenSecureSignature.h │ │ │ ├── ISecurityGuardOpenStaticDataEncrypt.h │ │ │ ├── ISecurityGuardOpenStaticDataStore.h │ │ │ ├── ISecurityGuardOpenStaticKeyEncrypt.h │ │ │ └── ISecurityGuardOpenUMID.h │ │ ├── Info.plist │ │ └── SGMain │ ├── SGSecurityBody.framework │ │ ├── Headers │ │ │ ├── ISecurityGuardOpenJAQVerification.h │ │ │ └── ISecurityGuardOpenSimulatorDetect.h │ │ ├── Info.plist │ │ └── SGSecurityBody │ ├── SecurityGuardSDK.framework │ │ ├── Headers │ │ │ ├── JAQ │ │ │ │ ├── SecurityCipher.h │ │ │ │ ├── SecuritySignature.h │ │ │ │ ├── SecurityStorage.h │ │ │ │ ├── SecurityVerification.h │ │ │ │ └── SimulatorDetect.h │ │ │ └── Open │ │ │ │ ├── IOpenSecurityGuardPlugin.h │ │ │ │ ├── OpenAtlasEncrypt │ │ │ │ └── IOpenAtlasEncryptComponent.h │ │ │ │ ├── OpenDataCollection │ │ │ │ └── IOpenDataCollectionComponent.h │ │ │ │ ├── OpenDynamicDataEncrypt │ │ │ │ └── IOpenDynamicDataEncryptComponent.h │ │ │ │ ├── OpenDynamicDataStore │ │ │ │ └── IOpenDynamicDataStoreComponent.h │ │ │ │ ├── OpenInitialize │ │ │ │ └── IOpenInitializeComponent.h │ │ │ │ ├── OpenNoCaptcha │ │ │ │ ├── IOpenNoCaptchaComponent.h │ │ │ │ └── OpenNoCaptchaDefine.h │ │ │ │ ├── OpenOpenSDK │ │ │ │ └── IOpenOpenSDKComponent.h │ │ │ │ ├── OpenSecureSignature │ │ │ │ ├── IOpenSecureSignatureComponent.h │ │ │ │ └── OpenSecureSignatureDefine.h │ │ │ │ ├── OpenSecurityGuardManager.h │ │ │ │ ├── OpenSecurityGuardParamContext.h │ │ │ │ ├── OpenSimulatorDetect │ │ │ │ └── IOpenSimulatorDetectComponent.h │ │ │ │ ├── OpenStaticDataEncrypt │ │ │ │ ├── IOpenStaticDataEncryptComponent.h │ │ │ │ └── OpenStaticDataEncryptDefine.h │ │ │ │ ├── OpenStaticDataStore │ │ │ │ ├── IOpenStaticDataStoreComponent.h │ │ │ │ └── OpenStaticDataStoreDefine.h │ │ │ │ ├── OpenStaticKeyEncrypt │ │ │ │ ├── IOpenStaticKeyEncryptComponent.h │ │ │ │ └── OpenStaticKeyEncryptDefine.h │ │ │ │ └── OpenUMID │ │ │ │ └── IOpenUMIDComponent.h │ │ ├── Info.plist │ │ └── SecurityGuardSDK │ ├── TUnionTradeSDK.framework │ │ ├── Headers │ │ │ ├── NSDictionary+TUnionJson.h │ │ │ ├── NSString+TUnionJson.h │ │ │ ├── NSURL+TUnionString.h │ │ │ ├── TUnionABTestService.h │ │ │ ├── TUnionCache.h │ │ │ ├── TUnionCommonProtocol.h │ │ │ ├── TUnionMacros.h │ │ │ ├── TUnionMemCache.h │ │ │ ├── TUnionMtopRequest.h │ │ │ ├── TUnionNetworkProtocol.h │ │ │ ├── TUnionNetworkWrapper.h │ │ │ ├── TUnionTradeDeviceInfo.h │ │ │ ├── TUnionTradeHeader.h │ │ │ ├── TUnionTradeSDK.h │ │ │ ├── TUnionUtProtocol.h │ │ │ ├── TUnionWebViewProtocol.h │ │ │ └── TradeTypeDefine.h │ │ ├── Info.plist │ │ └── TUnionTradeSDK │ ├── UTDID.framework │ │ ├── Headers │ │ ├── Resources │ │ ├── UTDID │ │ └── Versions │ │ │ ├── A │ │ │ ├── Headers │ │ │ │ ├── AidProtocol.h │ │ │ │ └── UTDevice.h │ │ │ ├── Resources │ │ │ │ └── Info.plist │ │ │ └── UTDID │ │ │ └── Current │ └── UTMini.framework │ │ ├── Headers │ │ ├── Resources │ │ ├── UTMini │ │ └── Versions │ │ ├── A │ │ ├── Headers │ │ │ ├── AppMonitor.h │ │ │ ├── AppMonitorAlarm.h │ │ │ ├── AppMonitorBase.h │ │ │ ├── AppMonitorCounter.h │ │ │ ├── AppMonitorDimension.h │ │ │ ├── AppMonitorDimensionSet.h │ │ │ ├── AppMonitorDimensionValueSet.h │ │ │ ├── AppMonitorMeasure.h │ │ │ ├── AppMonitorMeasureSet.h │ │ │ ├── AppMonitorMeasureValue.h │ │ │ ├── AppMonitorMeasureValueSet.h │ │ │ ├── AppMonitorStat.h │ │ │ ├── AppMonitorTable.h │ │ │ ├── UT.h │ │ │ ├── UTAnalytics.h │ │ │ ├── UTBaseRequestAuthentication.h │ │ │ ├── UTCustomHitBuilder.h │ │ │ ├── UTHitBuilder.h │ │ │ ├── UTICrashCaughtListener.h │ │ │ ├── UTIRequestAuthentication.h │ │ │ ├── UTOirginalCustomHitBuilder.h │ │ │ ├── UTPageHitBuilder.h │ │ │ ├── UTSecuritySDKRequestAuthentication.h │ │ │ └── UTTracker.h │ │ ├── Resources │ │ │ └── Info.plist │ │ └── UTMini │ │ └── Current ├── Resources │ ├── AlibabaAuthSDK.bundle │ │ ├── alibaba_auth_sdk.png │ │ └── alimember_navbar_left@2x.png │ └── NBResource.bundle │ │ ├── Root.plist │ │ ├── back@2x.png │ │ ├── back@3x.png │ │ ├── close@2x.png │ │ ├── close@3x.png │ │ ├── en.lproj │ │ └── Root.strings │ │ ├── localConfig.json │ │ ├── urlConfig.json │ │ ├── whiteClose@2x.png │ │ └── whiteClose@3x.png └── nautilus.podspec ├── lib ├── nautilus.dart └── src │ ├── login │ └── login_service.dart │ ├── nautilus_iml.dart │ └── trade │ └── trade_sdk.dart └── pubspec.yaml /.gitee/ISSUE_TEMPLATE.zh-CN.md: -------------------------------------------------------------------------------- 1 | ### 该问题是怎么引起的? 2 | 3 | 4 | 5 | ### 重现步骤 6 | 7 | 8 | 9 | ### 报错信息 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md: -------------------------------------------------------------------------------- 1 | ### 该Pull Request关联的Issue 2 | 3 | 4 | ### 修改描述 5 | 6 | 7 | 8 | ### 测试用例 9 | 10 | 11 | 12 | ### 修复效果的截屏 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | pubspec.lock 7 | 8 | build/ 9 | .idea/ 10 | *.iml 11 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: d8cbb80206db06d151206f8b599b7dde5a386a2d 8 | channel: beta 9 | 10 | project_type: plugin 11 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.7 2 | * ios 不用重写AppDelegate了 3 | 4 | ## 0.0.6 5 | * 修复Bug。 6 | 7 | ## 0.0.5 8 | * 字段名变更。 9 | * 修复Bug。 10 | 11 | ## 0.0.4 12 | * 现在User类的信息更全了。 13 | 14 | ## 0.0.3 15 | * 移除android初始化失败toast。 16 | 17 | ## 0.0.2 18 | * 修复android初始化失败的问题。 19 | 20 | ## 0.0.1 21 | 22 | * 首个版本发布. 23 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'nautilus' 2 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/src/main/kotlin/com/jarvanmo/nautilus/Constants.kt: -------------------------------------------------------------------------------- 1 | package com.jarvanmo.nautilus 2 | 3 | /*** 4 | * Created by mo on 2018/11/22 5 | * 冷风如刀,以大地为砧板,视众生为鱼肉。 6 | * 万里飞雪,将穹苍作烘炉,熔万物为白银。 7 | **/ 8 | internal const val keyPlatform ="platform" 9 | internal const val keyAndroid ="android" 10 | internal const val keyResult ="result" 11 | internal const val keyErrorCode ="errorCode" 12 | internal const val keyErrorMessage ="errorMessage" -------------------------------------------------------------------------------- /android/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello blank fragment 5 | 6 | 7 | -------------------------------------------------------------------------------- /arts/ali.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/arts/ali.jpeg -------------------------------------------------------------------------------- /arts/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/arts/logo.png -------------------------------------------------------------------------------- /arts/wx.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/arts/wx.jpeg -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter/Dart/Pub related 23 | **/doc/api/ 24 | .dart_tool/ 25 | .flutter-plugins 26 | .packages 27 | .pub-cache/ 28 | .pub/ 29 | build/ 30 | 31 | # Android related 32 | **/android/**/gradle-wrapper.jar 33 | **/android/.gradle 34 | **/android/captures/ 35 | **/android/gradlew 36 | **/android/gradlew.bat 37 | **/android/local.properties 38 | **/android/**/GeneratedPluginRegistrant.java 39 | 40 | # iOS/XCode related 41 | **/ios/**/*.mode1v3 42 | **/ios/**/*.mode2v3 43 | **/ios/**/*.moved-aside 44 | **/ios/**/*.pbxuser 45 | **/ios/**/*.perspectivev3 46 | **/ios/**/*sync/ 47 | **/ios/**/.sconsign.dblite 48 | **/ios/**/.tags* 49 | **/ios/**/.vagrant/ 50 | **/ios/**/DerivedData/ 51 | **/ios/**/Icon? 52 | **/ios/**/Pods/ 53 | **/ios/**/.symlinks/ 54 | **/ios/**/profile 55 | **/ios/**/xcuserdata 56 | **/ios/.generated/ 57 | **/ios/Flutter/App.framework 58 | **/ios/Flutter/Flutter.framework 59 | **/ios/Flutter/Generated.xcconfig 60 | **/ios/Flutter/app.flx 61 | **/ios/Flutter/app.zip 62 | **/ios/Flutter/flutter_assets/ 63 | **/ios/ServiceDefinitions.json 64 | **/ios/Runner/GeneratedPluginRegistrant.* 65 | 66 | # Exceptions to above rules. 67 | !**/ios/**/default.mode1v3 68 | !**/ios/**/default.mode2v3 69 | !**/ios/**/default.pbxuser 70 | !**/ios/**/default.perspectivev3 71 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 72 | -------------------------------------------------------------------------------- /example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: d8cbb80206db06d151206f8b599b7dde5a386a2d 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # nautilus_example 2 | 3 | Demonstrates how to use the nautilus plugin. 4 | 5 | ## Getting Started 6 | 7 | For help getting started with Flutter, view our online 8 | [documentation](https://flutter.io/). 9 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/android/app/debug.keystore -------------------------------------------------------------------------------- /example/android/app/src/main/kotlin/com/jarvanmo/nautilusexample/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.jarvanmo.nautilusexample 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/yw_1222.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/android/app/src/main/res/drawable/yw_1222.jpg -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.41' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.4.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | android.enableJetifier=true 2 | android.useAndroidX=true 3 | org.gradle.jvmargs=-Xmx1536M 4 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 21 09:26:02 CST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 7 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | #include 4 | 5 | @implementation AppDelegate 6 | 7 | - (BOOL)application:(UIApplication *)application 8 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 9 | [GeneratedPluginRegistrant registerWithRegistry:self]; 10 | // Override point for customization after application launch. 11 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 12 | } 13 | 14 | 15 | //- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ 16 | // // 如果百川处理过会返回YES 17 | // if (![[AlibcTradeSDK sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation]) { 18 | // // 处理其他app跳转到自己的app 19 | // } 20 | // return YES; 21 | //} 22 | // 23 | // 24 | ////IOS9.0 系统新的处理openURL 的API 25 | //- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { 26 | // 27 | // 28 | // __unused BOOL isHandledByALBBSDK=[[AlibcTradeSDK sharedInstance] application:application openURL:url options:options];//处理其他app跳转到自己的app,如果百川处理过会返回YES 29 | // 30 | // return YES; 31 | // 32 | // 33 | //} 34 | @end 35 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/ios/config/yw_1222.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/example/ios/config/yw_1222.jpg -------------------------------------------------------------------------------- /example/lib/login_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:nautilus/nautilus.dart' as nautilus ; 3 | 4 | class LoginPage extends StatefulWidget { 5 | @override 6 | _LoginPageState createState() => _LoginPageState(); 7 | } 8 | 9 | class _LoginPageState extends State { 10 | 11 | String _result =""; 12 | String _initResult = "未初始化"; 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar(title: Text("Login With Taobao"),), 18 | body: Column( 19 | children: [ 20 | FlatButton(onPressed: (){ 21 | nautilus.login().then((data){ 22 | setState(() { 23 | if(data.isSuccessful){ 24 | _result ="nick->${data?.user?.nick}"; 25 | }else{ 26 | _result = "error->${data.errorMessage}"; 27 | } 28 | 29 | }); 30 | }); 31 | }, child: Text("Login with TaoBao")), 32 | Text(_result) 33 | ], 34 | ), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /example/lib/open_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:nautilus/nautilus.dart' as nautilus; 3 | 4 | class OpenByPage extends StatefulWidget { 5 | @override 6 | _OpenByPageState createState() => _OpenByPageState(); 7 | } 8 | 9 | class _OpenByPageState extends State { 10 | @override 11 | Widget build(BuildContext context) { 12 | return Scaffold( 13 | appBar: AppBar( 14 | title: Text("OpenByPage"), 15 | ), 16 | body: ListView( 17 | children: [ 18 | FlatButton( 19 | onPressed: _openItemDetail, 20 | child: Text("打开淘宝详情"), 21 | ), 22 | FlatButton( 23 | onPressed: _openUrl, 24 | child: Text("打开Url"), 25 | ) 26 | ], 27 | ), 28 | ); 29 | } 30 | 31 | _openItemDetail() { 32 | nautilus.openItemDetail(itemID: "41576306115",taoKeParams: nautilus.TaoKeParams( 33 | unionId: "", subPid: "mm_26632322_6858406_23810104", pid: "mm_26632322_6858406_23810104", adzoneId: "57328044")); 34 | } 35 | 36 | _openUrl() { 37 | nautilus.openUrl( 38 | pageUrl: 39 | "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2165762428&activityId=5698d91c0b474d9caf88279009bda4f3", 40 | taoKeParams: nautilus.TaoKeParams( 41 | unionId: "", subPid: "mm_26632322_6858406_23810104", pid: "mm_26632322_6858406_23810104", adzoneId: "57328044")); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /example/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:nautilus_example/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Verify Platform version', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(new MyApp()); 17 | 18 | // Verify that platform version is retrieved. 19 | expect( 20 | find.byWidgetPredicate( 21 | (Widget widget) => 22 | widget is Text && widget.data.startsWith('Running on:'), 23 | ), 24 | findsOneWidget); 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | -------------------------------------------------------------------------------- /ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /ios/Classes/Constant/NautilusConstants.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by mo on 2018/11/22. 3 | // 4 | 5 | #import 6 | 7 | extern NSString *const nautilusKeyIOS; 8 | extern NSString *const nautilusKeyResult; 9 | extern NSString *const nautilusKeyPlatform; 10 | extern NSString *const nautilusKeyErrorCode ; 11 | extern NSString *const nautilusKeyErrorMessage; 12 | @interface NautilusConstants : NSObject 13 | @end -------------------------------------------------------------------------------- /ios/Classes/Constant/NautilusConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // Created by mo on 2018/11/22. 3 | // 4 | 5 | #import "NautilusConstants.h" 6 | 7 | 8 | NSString *const nautilusKeyIOS = @"iOS"; 9 | NSString *const nautilusKeyResult = @"result"; 10 | NSString *const nautilusKeyPlatform =@"platform"; 11 | NSString *const nautilusKeyErrorCode = @"errorCode"; 12 | NSString *const nautilusKeyErrorMessage =@"errorMessage"; 13 | @implementation NautilusConstants { 14 | 15 | } 16 | @end -------------------------------------------------------------------------------- /ios/Classes/Headers/NautilusLoginService.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by mo on 2018/11/22. 3 | // 4 | 5 | #import 6 | #import 7 | 8 | @interface NautilusLoginService : NSObject 9 | - (void) handleLogin:(FlutterMethodCall *)call result:(FlutterResult)result; 10 | - (void) handleIsLogin:(FlutterMethodCall *)call result:(FlutterResult)result; 11 | - (void) handleGetUser:(FlutterMethodCall *)call result:(FlutterResult)result; 12 | - (void) handleLogout:(FlutterResult)result; 13 | @end 14 | -------------------------------------------------------------------------------- /ios/Classes/Headers/NautilusPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NautilusLoginService.h" 3 | #import "NautilusTradeHandler.h" 4 | @interface NautilusPlugin : NSObject 5 | 6 | - (instancetype)initWithRegistrar:(NSObject *)registrar; 7 | @end 8 | -------------------------------------------------------------------------------- /ios/Classes/Headers/NautilusTradeHandler.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by mo on 2018/11/23. 3 | // 4 | 5 | #import 6 | #import 7 | 8 | @interface NautilusTradeHandler : NSObject 9 | - (void)initTradeAsync:(FlutterMethodCall *)call result:(FlutterResult)result; 10 | - (void)openItemDetail:(FlutterMethodCall *)call result:(FlutterResult)result; 11 | - (void)openUrl:(FlutterMethodCall *)call result:(FlutterResult)result; 12 | @end -------------------------------------------------------------------------------- /ios/Classes/Helper/NautilusStringUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by mo on 2018/8/15. 3 | // 4 | 5 | #import 6 | 7 | 8 | @interface NautilusStringUtil : NSObject 9 | + (BOOL) isBlank:(NSString *)string; 10 | + (NSString *) nilToEmpty:(NSString *) string; 11 | @end -------------------------------------------------------------------------------- /ios/Classes/Helper/NautilusStringUtil.m: -------------------------------------------------------------------------------- 1 | // 2 | // Created by mo on 2018/8/15. 3 | // 4 | 5 | #import "NautilusStringUtil.h" 6 | 7 | 8 | @implementation NautilusStringUtil 9 | 10 | + (BOOL) isBlank:(NSString *)string { 11 | 12 | if (string == nil) { 13 | 14 | return YES; 15 | 16 | } 17 | 18 | 19 | if ([string isKindOfClass:[NSNull class]]) { 20 | 21 | return YES; 22 | 23 | } 24 | return [[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length] == 0; 25 | 26 | } 27 | 28 | + (NSString *)nilToEmpty:(NSString *)string { 29 | return string == nil?@"":string; 30 | } 31 | @end -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthExt.framework/AlibabaAuthExt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibabaAuthExt.framework/AlibabaAuthExt -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthExt.framework/Headers/AlibabaAuthExt.h: -------------------------------------------------------------------------------- 1 | // 2 | // AlibabaAuthExt.h 3 | // AlibabaAuthSDK 4 | // 5 | // Created by Bangzhe Liu on 9/9/16. 6 | // Copyright © 2016 alibaba. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AlibabaAuthExt : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthSDK.framework/AlibabaAuthSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibabaAuthSDK.framework/AlibabaAuthSDK -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthSDK.framework/Headers/ALBBEnvConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // aluEnvConfig.h 3 | // AliUniversalAccount 4 | // 5 | // Created by ethan on 12/14/15. 6 | // Copyright © 2015 Alipay. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /** 环境 */ 12 | typedef NS_ENUM (NSUInteger, ALBBEnvironment) { 13 | /** 测试环境 */ 14 | ALBBEnvironmentDaily, 15 | /** 预发环境 */ 16 | ALBBEnvironmentPreRelease, 17 | /** 线上环境 */ 18 | ALBBEnvironmentRelease, 19 | }; 20 | 21 | @interface ALBBEnvConfig : NSObject 22 | 23 | @property (nonatomic, strong)NSString *additional; 24 | 25 | + (instancetype)shareInstance; 26 | 27 | - (void) setGWServerSettings:(ALBBEnvironment) env; 28 | 29 | - (BOOL) isDaily; 30 | - (BOOL) isPre; 31 | - (BOOL) isOnline; 32 | - (void)setSecAdditional:(NSString *)additional; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthSDK.framework/Headers/ALBBSession.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALBBSession.h 3 | // AlibabaAuthSDK 4 | // 5 | // Created by Bangzhe Liu on 6/17/16. 6 | // Copyright © 2016 taobao. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ALBBUser.h" 11 | 12 | @interface ALBBSession : NSObject 13 | @property(nonatomic, assign)BOOL isCanceledByUser; 14 | @property(nonatomic, copy)NSString* bindCode; 15 | 16 | /** 17 | @return 返回单例 18 | */ 19 | + (ALBBSession *)sharedInstance; 20 | 21 | /** 22 | 如果未登录或者登录态已经过期,返回NO 23 | @return 当前会话是否登录有效 24 | */ 25 | - (BOOL)isLogin; 26 | 27 | /** 28 | @return 返回User对象 29 | */ 30 | - (ALBBUser *)getUser; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibabaAuthSDK.framework/Headers/ALBBUser.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALBBUser.h 3 | // AlibabaAuthSDK 4 | // 5 | // Created by Bangzhe Liu on 6/17/16. 6 | // Copyright © 2016 taobao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ALBBUser : NSObject 12 | 13 | /** 昵称 */ 14 | @property (nonatomic, copy, readonly) NSString *nick; 15 | /** 头像地址 */ 16 | @property (nonatomic, copy, readonly) NSString *avatarUrl; 17 | 18 | @property (nonatomic, copy, readonly) NSString *openId; 19 | @property (nonatomic, copy, readonly) NSString *openSid; 20 | @property (nonatomic, copy, readonly) NSString *topAccessToken; 21 | @property (nonatomic, copy, readonly) NSString *topAuthCode; 22 | 23 | - (instancetype)initWithNick:(NSString *)nick avatarUrl:(NSString *)avatarUrl openId:(NSString *)openId openSid:(NSString *)openSid topAccessToken:(NSString *)topAccessToken topAuthCode:(NSString*)authCode; 24 | 25 | - (NSString *)ALBBUserDescription; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/ALPLinkPartnerSDK.bundle/localConfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "iosAppLinkConfig": { 3 | "exp" : 600, 4 | "degradeType" : 0, 5 | "canDeepLink" : 0, 6 | "appScheme":{ 7 | "taobao" : "tbopen://m.taobao.com/tbopen/index.html", 8 | "tmall" : "tmall://page.tm/appLink", 9 | }, 10 | "h5Scheme":{ 11 | "detail":"https://h5.m.taobao.com/awp/core/detail.htm", 12 | "shop":"https://shop.m.taobao.com/shop/shopIndex.htm", 13 | "activity":"https://huodong.m.taobao.com/go/2085.html", 14 | }, 15 | "dynamicParam":{ 16 | "k1":"v1" 17 | }, 18 | "downloadUrl":{ 19 | "taobao":"https://itunes.apple.com/cn/app/tao-bao-sui-shi-sui-xiang/id387682726?mt=8", 20 | "tmall":"https://itunes.apple.com/cn/app/tian-mao-zhi-bo-gou-wu-xin/id518966501?mt=8" 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/AlibcLinkPartnerSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcLinkPartnerSDK.framework/AlibcLinkPartnerSDK -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPAppShare.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPAppShare.h 3 | // AlibcLinkPartnerSDK 4 | // 5 | // Created by czp on 17/3/9. 6 | // Copyright © 2017年 czp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // type定义 12 | #define ALIBC_APPSHARE_TYPE_ID @"id" 13 | #define ALIBC_APPSHARE_TYPE_RED @"red" 14 | #define ALIBC_APPSHARE_TYPE_DEEP @"deep" 15 | 16 | @interface ALPAppShare : NSObject 17 | 18 | /** 19 | * 写入共享的信息 20 | * @info 具体信息(info 中内容必须是可序列化类型,参考NSKeyedArchiver) 21 | * @type 类型 22 | * 23 | */ 24 | + (void)writeInfo:(NSDictionary*)info byType:(NSString*)type; 25 | 26 | /** 27 | * 删除共享的信息 28 | * @type 类型 29 | */ 30 | + (void)removeInfoByType:(NSString*)type; 31 | 32 | /** 33 | * 读取共享信息 34 | * @type 类型 35 | * @return 具体信息 36 | */ 37 | + (NSDictionary*)readInfoByType:(NSString*)type; 38 | 39 | @end 40 | 41 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPError.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPError.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/9/22. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSInteger, LinkPartnerErrorType) 12 | { 13 | LINKPARTNER_ERROR_NOT_INIT = 1,//没有初始化 14 | LINKPARTNER_ERROR_PARAM_MISSING = 2,//跳转参数缺失 15 | LINKPARTNER_ERROR_URL_ERROR = 3,//错误的linkKey或者跳转URL 为nil 16 | LINKPARTNER_ERROR_ITEMID_ILLEGAL = 4,//参数非法,例如itemId为空或含有非数字字符 17 | LINKPARTNER_ERROR_SHOPID_ILLEGAL = 5,//同上 shoopID非法 18 | LINKPARTNER_ERROR_H5HURL_ILLEGAL = 6,//URL非法法, 必须为URL格式 例如http://www.taobao.com 19 | LINKPARTNER_ERROR_SIGN_MISSING = 7,//sign缺失,未设置黑匣子,或者appSecret缺失 20 | LINKPARTNER_ERROR_NOT_INSTALL = 8,//跳转APP未安装 21 | LINKPARTNER_ERROR_DEGRADE_URL_NIL = 9,//降级地址为空,未配置降级地址 22 | LINKPARTNER_ERROR_DEGRADE_WEBVIEW_NIL = 10,//降级到h5,webview为nil 23 | LINKPARTNER_ERROR_DOWNLOAD_URL_NIL = 11,//下载页地址为空,未配置下载页地址 24 | LINKPARTNER_ERROR_ROUTERULE_NIL = 12,//插件路由规则为nil 25 | }; 26 | 27 | @interface ALPError : NSObject 28 | 29 | @property (nonatomic, assign) LinkPartnerErrorType errorCode; 30 | 31 | + (instancetype)initWithErrorType:(LinkPartnerErrorType)errorType; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPJumpFailedStrategy.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPJumpFailedStrategy.h 3 | // AlibcLinkPartnerSDK 4 | // 5 | // Created by czp on 16/11/24. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSInteger, ALPJumpFailedMode) 12 | { 13 | ALPJumpFailedModeOpenH5 = 0,//降级到h5(默认) 14 | ALPJumpFailedModeOpenDownloadPage = 1,//跳转到下载页 15 | ALPJumpFailedModeOpenBrowser = 2,//跳转到浏览器 16 | ALPJumpFailedModeOpenNone = 3 //不处理返回错误信息 17 | }; 18 | 19 | @protocol ALPJumpFailedStrategyDelegate 20 | 21 | - (void)failToShowH5WithUrl:(NSString *)url; 22 | 23 | @end 24 | 25 | @interface ALPJumpFailedStrategy : NSObject 26 | 27 | /** 28 | * 跳转失败处理(可选),不设置默认跳转失败,返回错误信息 29 | */ 30 | @property (nonatomic, assign) ALPJumpFailedMode failedMode; 31 | 32 | /** 33 | * 跳转失败H5页面打开时,自定义webview 34 | */ 35 | @property (nonatomic, strong) UIWebView *webview; 36 | 37 | /** 38 | * 跳转失败,自定义显示webview的代理 39 | */ 40 | @property (nonatomic, weak) id failToH5Delegate; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPJumpParam.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPJumpParam.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/9/22. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ALPError.h" 11 | 12 | //对应的linkKey 13 | FOUNDATION_EXTERN NSString *const ALPTaobaoLinkKey; //打开淘宝 14 | FOUNDATION_EXTERN NSString *const ALPTmallLinkKey; //打开天猫 15 | 16 | @interface ALPJumpParam : NSObject 17 | 18 | /** 19 | * 优先拉起的app,link协议key,linkKey为空,默认是拉起手淘 20 | */ 21 | @property (nonatomic, copy) NSString *linkKey; 22 | 23 | /** 24 | * 返回的跳转地址(可选) 25 | */ 26 | @property (nonatomic, copy) NSString *backURL; 27 | 28 | /** 29 | * 跳出模块的业务标识 30 | */ 31 | @property (nonatomic, copy) NSString *visa; 32 | 33 | /** 34 | * 跳转是未安装跳转APP,对应的降级地址 35 | */ 36 | @property (nonatomic, copy) NSString *degradeToH5Url; 37 | 38 | /** 39 | * 模块,h5,detail,shop,auth;不需要改动 40 | */ 41 | @property (nonatomic, copy) NSString *module; 42 | 43 | /** 44 | * 跳转时当前页面,用于坑位统计 45 | */ 46 | @property (nonatomic, copy) NSString *currentViewName; 47 | 48 | /** 49 | * AlibcFlowCustoms SDK 插件匹配规则,触发对应插件执行 50 | */ 51 | @property (nonatomic, copy) NSString *routeRule; 52 | 53 | /** 54 | * 额外参数(可选) 55 | */ 56 | @property (nonatomic, strong) NSMutableDictionary *extraParam; 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPOpenUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPOpenUtil.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/9/22. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import "ALPJumpParam.h" 10 | #import 11 | 12 | @interface ALPOpenUtil : NSObject 13 | 14 | /** 15 | * 把dictionary转为json 16 | * 17 | */ 18 | + (NSString *)pareseToJSONWithDictionary:(NSDictionary *)dictionary; 19 | 20 | /** 21 | * 把json转为dictionary 22 | * 23 | */ 24 | + (NSDictionary *)parseToDictionaryWithJSON:(NSString *)json; 25 | 26 | 27 | + (NSString *)encodeALLWithURL:(NSString *)url; 28 | 29 | /** 30 | * query转Dictionary 31 | */ 32 | + (NSDictionary*)queryDictionaryFromURL:(NSString*)urlString; 33 | 34 | /** 35 | * Dictionary转query 36 | * 37 | * @param dic 字典 38 | * 39 | * @return query字符串 40 | */ 41 | + (NSString *)queryStringFromDictionary:(NSDictionary *)dic; 42 | 43 | /** 44 | * md5加密算法,传入待加密string 45 | */ 46 | + (NSString *)encodeToMD5:(NSString *)string; 47 | 48 | /** 49 | * 获取ttid 50 | */ 51 | + (NSString *)getTtid; 52 | 53 | /** 54 | * 当前viewController 55 | * 56 | * @return 当前viewController 57 | */ 58 | + (UIViewController *)currentVC; 59 | 60 | /** 61 | * urldecode 62 | */ 63 | + (NSString *)urlDecoded:(NSString *)string; 64 | 65 | /* 66 | * 转换为base64字符串 67 | */ 68 | + (NSString *)base64EncodedWithString:(NSString*)str; 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPReflectionUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPReflectionUtil.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/10/26. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ALPReflectionUtil : NSObject 12 | 13 | + (id)getSharedInstance:(NSString *)className; 14 | 15 | + (id)getInstance:(NSString *)className instanceMethodName:(NSString *)instanceMethodName; 16 | 17 | + (id)getInstanceWithClazz:(id)clazz instanceMethodName:(NSString *)instanceMethodName; 18 | 19 | + (id)executeInstanceMethod:(NSString *)methodName instance:(id)instance params:(NSArray *)params; 20 | 21 | + (id)executeClassMethod:(NSString *)methodName clazz:(Class)clazz; 22 | 23 | + (id)executeInstanceMethod:(NSString *)methodName instanceAndargs:(id)instance,...; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPSafeMutableDictionary.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPSafeMutableDictionary.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/10/24. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ALPSafeMutableDictionary : NSMutableDictionary 12 | 13 | 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPTBDetailParam.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPTBDetailParam.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/9/22. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import "ALPJumpParam.h" 10 | 11 | @interface ALPTBDetailParam : ALPJumpParam 12 | 13 | /** 14 | * itemId,要跳转到的商品 15 | */ 16 | @property (nonatomic, strong) NSString *itemId; 17 | 18 | /** 19 | * 初始化,itemId(必传) 20 | * 21 | * @param itemId itemId 22 | */ 23 | -(instancetype)initWithItemId:(NSString *)itemId; 24 | 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPTBShopParam.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPTBShopParam.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/9/22. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import "ALPJumpParam.h" 10 | 11 | @interface ALPTBShopParam : ALPJumpParam 12 | 13 | /** 14 | * shopId,要跳转到的店铺 15 | */ 16 | @property (nonatomic, strong) NSString *shopId; 17 | 18 | 19 | /** 20 | * 初始化,shopId必传 21 | * 22 | * @param shopId shopId 23 | */ 24 | -(instancetype)initWithShopId:(NSString *)shopId; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcLinkPartnerSDK.framework/Headers/ALPTBURIParam.h: -------------------------------------------------------------------------------- 1 | // 2 | // ALPTBURIParam.h 3 | // ALPLinkPartnerSDK 4 | // 5 | // Created by czp on 16/9/22. 6 | // Copyright © 2016年 czp. All rights reserved. 7 | // 8 | 9 | #import "ALPJumpParam.h" 10 | 11 | @interface ALPTBURIParam : ALPJumpParam 12 | 13 | /** 14 | * 要跳转到的H5页面的url 15 | */ 16 | @property (nonatomic, strong) NSString *uri; 17 | 18 | /** 19 | * 初始化,传入h5URL 20 | */ 21 | - (instancetype)initWithURI:(NSString *)URI; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/AlibcTradeBiz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/AlibcTradeBiz -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcAlipayBridge.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcAlipayBridge.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "UIKit/UIKit.h" 15 | 16 | #ifndef AlibcAlipayBridge_h 17 | #define AlibcAlipayBridge_h 18 | 19 | 20 | /** 支付结果 */ 21 | @interface AlibcTradePayResult : NSObject 22 | /** 支付成功订单 */ 23 | @property(nonatomic, copy, nullable, readonly) NSArray *paySuccessOrders; 24 | /** 支付失败订单 */ 25 | @property(nonatomic, copy, nullable, readonly) NSArray *payFailedOrders; 26 | 27 | @end 28 | 29 | @interface AlibcAlipayBridge : NSObject 30 | 31 | @property(nonatomic, copy, nullable) NSArray *orderIds; 32 | 33 | 34 | + (nonnull instancetype)sharedInstance; 35 | 36 | + (BOOL)isAlipayAvaleable; 37 | 38 | + (BOOL)isPaymentSuccess:(nullable NSDictionary *)payment; 39 | 40 | 41 | /** 支付订单 */ 42 | - (void)payOrder:(nonnull NSString *)order scheme:(nonnull NSString *)scheme callback:(nullable void (^)(NSDictionary *__nullable result))callback; 43 | 44 | /** 支付结果 */ 45 | - (void)receiptURL:(nullable NSURL *)url callback:(nullable void (^)(NSDictionary *__nullable result))callback; 46 | 47 | /** 解析支付结果 */ 48 | - (void)processPayment:(NSDictionary *__nullable)payment callback:(nullable void (^)(AlibcTradePayResult *__nullable result, NSError *__nullable error))callback; 49 | 50 | 51 | @end 52 | 53 | #endif //AlibcAlipayBridge_h 54 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcAuthService.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcAuthService.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcHintProtocol.h" 15 | 16 | #ifndef ALiAuthService_h 17 | #define ALiAuthService_h 18 | 19 | @interface AlibcAuthService : NSObject 20 | + (nonnull instancetype)sharedInstantce; 21 | 22 | - (void)installHintService:(nonnull id )hint; 23 | 24 | @end 25 | 26 | #endif //ALiAuthService_h 27 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcChannelModule.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcChannelModule.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #ifndef ALiChannelModule_h 14 | #define ALiChannelModule_h 15 | 16 | #import 17 | 18 | //添加umpChannel u_channel isvCode,ybhpss,ttid参数 19 | @interface AlibcChannelModule : NSObject 20 | 21 | + (void)addChannelParam:(NSMutableDictionary *)param; 22 | 23 | @end 24 | 25 | #endif /* ALiChannelModule_h */ 26 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcHintProtocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcHintProtocol.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #ifndef ALiHintProtocal_h 14 | #define ALiHintProtocal_h 15 | 16 | @protocol AlibcHintProtocol 17 | 18 | //根据bizid返回组件的全量权限点 19 | - (NSArray *)getHintList:(NSString *)bizID; 20 | 21 | //上报组件返回的权限点有缺失 22 | - (void)reportHintLost:(NSString *)bizID hintId:(NSString *)hintId; 23 | @end 24 | 25 | #endif /* ALiMtopHintProtocol_h */ 26 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcLoginBridge.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcLoginBridge.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import 15 | 16 | #ifndef AlibcLoginBridge_h 17 | #define AlibcLoginBridge_h 18 | 19 | @interface AlibcLoginBridge : NSObject 20 | 21 | 22 | /** 23 | 登录模块标准初始化接口 24 | */ 25 | + (void)initLogin; 26 | 27 | 28 | /** 29 | 登录模块极简版初始化接口 30 | 31 | @brief 极简版没有依赖安全模块, 需要手动传入 Appkey 32 | 33 | @param appkey appkey 34 | */ 35 | + (void)initLoginWithAppkey:(NSString *)appkey; 36 | 37 | + (BOOL)isLoginSvrAvaleable; 38 | 39 | + (void)showLogin:(UIViewController *)parentController 40 | successCallback:(void (^)(NSString *userID))onSuccess 41 | failedCallback:(void (^)(NSError *error))onFailure; 42 | 43 | + (void)logout; 44 | 45 | + (void)setEnvironment:(AlibcEnvironment)env; 46 | 47 | /** 48 | 是否是登陆URL 49 | */ 50 | + (BOOL)isLoginURL:(NSString *)url; 51 | 52 | /** 53 | 是否是登出URL 54 | */ 55 | + (BOOL)isLogoutUrl:(NSString *)url; 56 | 57 | /** 58 | 是否是手淘跳回url 59 | */ 60 | + (BOOL)isTBBackUrl:(NSString *)url; 61 | 62 | /** 63 | 手淘跳转回来,拿到url调用 64 | */ 65 | + (void)loginByURL:(NSURL *)url; 66 | 67 | @end 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTokenService.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTokenService.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcTokenService_h 16 | #define AlibcTokenService_h 17 | 18 | typedef void(^TokenRequestCallback)(NSError *_Nullable error, NSString *_Nullable dataObj); 19 | 20 | 21 | @interface AlibcTokenService : NSObject 22 | @property(nonatomic, strong) NSString *_Nullable token; 23 | @property(nonatomic, strong) NSDate *_Nullable expire; 24 | @property(nonatomic, strong) NSDate *_Nullable lastUpdate; 25 | 26 | 27 | + (nonnull instancetype)sharedInstantce; 28 | 29 | - (nullable NSString *)getLocalToken; 30 | 31 | - (void)setTokenInvalid; 32 | 33 | - (void)getRemoteToken:(nonnull NSArray *)list callBack:(nonnull TokenRequestCallback)callBack; 34 | 35 | @end 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTrackParams.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTrackParams.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcTrackParams_h 16 | #define AlibcTrackParams_h 17 | 18 | @interface AlibcTrackParams : NSObject 19 | /**必填: 供计算效果用,由推荐模块输出内容后,曝光埋点使用 */ 20 | @property(nonatomic, strong) NSString *scm; 21 | /**必填: 供计算效果用,由推荐模块输出内容后,曝光埋点使用 */ 22 | @property(nonatomic, strong) NSString *pvid; 23 | /**必填: 三方app的用户识别id,用于百川识别该用户行为并对推荐效果进行优化 */ 24 | @property(nonatomic, strong) NSString *puid; 25 | /** 三方app页面名称*/ 26 | @property(nonatomic, strong) NSString *page; 27 | /** 三方app控件名称 */ 28 | @property(nonatomic, strong) NSString *label; 29 | 30 | 31 | /* 32 | * trackParam 参数key说明 33 | */ 34 | #define track_scm @"scm" 35 | #define track_pvid @"pvid" 36 | #define track_isv_code @"isv_code" 37 | 38 | /** 39 | * 生成Dictionary 40 | */ 41 | - (NSDictionary *)toDictionary; 42 | 43 | + (NSString *)ybhpssStringForDictionary:(NSDictionary *)params; 44 | 45 | @end 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTradeBiz.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeBiz.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | //! Project version number for AlibcTradeBiz. 16 | FOUNDATION_EXPORT double AlibcTradeBizVersionNumber; 17 | 18 | //! Project version string for AlibcTradeBiz. 19 | FOUNDATION_EXPORT const unsigned char AlibcTradeBizVersionString[]; 20 | 21 | // In this header, you should import all the public headers of your framework using statements like #import 22 | 23 | #ifndef AlibcTradeBiz_h 24 | #define AlibcTradeBiz_h 25 | 26 | #import "AlibcTradeEnv.h" 27 | #import "AlibcHintProtocol.h" 28 | #import "AlibcAuthService.h" 29 | #import "AlibcTradeError.h" 30 | #import "AlibcConfigService.h" 31 | #import "AlibcAlipayBridge.h" 32 | #import "AlibcTrackParams.h" 33 | #import "AlibcTradeBizSDK.h" 34 | #import "AlibcLinkPartnerBridge.h" 35 | #import "AlibcTradeTaokeParams.h" 36 | #import "AlibcChannelModule.h" 37 | #import "AlibcTradeBizEvent.h" 38 | #import "AlibcWebViewController.h" 39 | #import "AlibcUserAgent.h" 40 | #import "AlibcTokenService.h" 41 | #import "AlibcLoginBridge.h" 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTradeBizEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeBizEvent.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | 16 | #ifndef AlibcTradeBizEvent_h 17 | #define AlibcTradeBizEvent_h 18 | 19 | //核心事件监听类,事件的监听和上报都通过ALiMsgBus触发 20 | //目前包含登陆,支付事件的触发上报, 21 | 22 | //登陆成功 23 | #define ALIBCBIZLOGINSUCCESS @"ALI.BC.Biz.LoginSuccess" 24 | //-(void)alibcLoginSUccess:(ALBBSession *)session 25 | 26 | //登陆失败 27 | #define ALIBCBIZLOGINFAIL @"ALI.BC.Biz.LoginFail" 28 | //-(void)alibcLoginFail:(NSError *)error 29 | 30 | //支付成功 31 | #define ALIBCBIZLPAYSUCCESS @"ALI.BC.Biz.PaySuccess" 32 | //-(void)alibcPaySuccess:(AlibcTradePayResult *)result context:(ALiURLBusContext*)context 33 | 34 | //支付失败 35 | #define ALIBCBIZLPAYFAIL @"ALI.BC.Biz.PayFail" 36 | //-(void)alibcPayFail:(NSError *)error context:(ALiURLBusContext*)context 37 | 38 | //webview被关闭 39 | #define ALIBCBIZWEBVIEWCLOSE @"ALI.BC.Biz.WebviewClose" 40 | //-(void)alibcWebviewClose:(ALiURLBusContext*)context 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTradeBizSDK.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeBizSDK.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import 15 | 16 | #ifndef AlibcTradeBizSDK_h 17 | #define AlibcTradeBizSDK_h 18 | 19 | #define AlibcTradeBizSDKVersion @"3.1.1.200" 20 | 21 | 22 | @interface AlibcTradeBizSDK : NSObject 23 | 24 | /** 25 | * 初始化函数,初始化成功后方可正常使用SDK中的功能 26 | * 27 | * @param onSuccess 初始化成功的回调 28 | * @param onFailure 初始化失败的回调 29 | */ 30 | + (void)asyncInitWithSuccess:(void (^)())onSuccess 31 | failure:(void (^)(NSError *error))onFailure; 32 | @end 33 | 34 | 35 | @interface AlibcTradeBizSDK (Settings) 36 | 37 | /** 38 | * 设置环境 39 | */ 40 | + (void)setEnv:(AlibcEnvironment)env; 41 | 42 | 43 | /** 44 | 开启/关闭 Debug 模式日志 45 | 46 | @param isDebugLogOpen 开启/关闭 47 | */ 48 | + (void)setDebugLogOpen:(BOOL)isDebugLogOpen; 49 | 50 | 51 | /** 52 | 上层需要运行时获取 SDK Version 时,可以使用这个接口获取 53 | 54 | @return AlibcTradeBizSDKVersion 55 | */ 56 | + (NSString *)getSDKVersion; 57 | 58 | @end 59 | 60 | #endif //AlibcTradeBizSDK_h 61 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTradeEnv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeEnv.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef ALiTradeEnv_h 16 | #define ALiTradeEnv_h 17 | 18 | NS_ASSUME_NONNULL_BEGIN 19 | 20 | /** 地址 */ 21 | @interface AlibcTradeEnv : NSObject 22 | /** 真实ID商品详情页地址 */ 23 | + (nullable NSString *)itemURLWithItemType:(NSString *)itemID; 24 | 25 | /** 迷你商品详情页地址 */ 26 | + (nullable NSString *)miniItemURLWithItemID:(NSString *)itemID; 27 | 28 | /** 直接加购页地址 */ 29 | + (nullable NSString *)addCardURL:(NSString *)itemID; 30 | 31 | /** 购物车地址 */ 32 | + (nullable NSString *)cartURL; 33 | 34 | /** 我的订单地址 */ 35 | + (nullable NSString *)myOrdersURLWithTabCode:(NSString *)tabCode condition:(nullable NSString *)condition; 36 | 37 | /** 店铺页地址 */ 38 | + (nullable NSString *)shopURLWithShopID:(nonnull NSString *)shopID; 39 | 40 | /** 淘宝首页 */ 41 | + (nullable NSString *)taobaoHomeURL; 42 | 43 | /** 配置服务端host地址(营造维护) */ 44 | + (nullable NSString *)configServerHost; 45 | @end 46 | 47 | NS_ASSUME_NONNULL_END 48 | 49 | #endif //ALiTradeEnv_h 50 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTradeError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeError.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #ifndef AlibcError_h 14 | #define AlibcError_h 15 | 16 | #import 17 | 18 | /** 交易错误码 */ 19 | typedef NS_ENUM (NSUInteger, AlibcTradeError) { 20 | /** 交易链路失败 */ 21 | AlibcErrorProcessFailed = 3001, 22 | /** 交易链路中用户取消了操作 */ 23 | AlibcErrorCancelled = 3002, 24 | /** 交易链路中发生支付但是支付失败 */ 25 | AlibcErrorPaymentFailed = 3003, 26 | /** itemId无效 */ 27 | AlibcErrorInvalidItemID = 3004, 28 | /** page url为空 */ 29 | AlibcErrorNullPageURL = 3005, 30 | /** shopId无效 */ 31 | AlibcErrorInvalidShopID = 3006, 32 | }; 33 | 34 | extern NSString *const AlibcTradeErrorDomain; 35 | 36 | #endif /* AlibcError_h */ 37 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcTradeTaokeParams.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeTaokeParams.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcTradeTaokeParams_h 16 | #define AlibcTradeTaokeParams_h 17 | 18 | /** 19 | * 统一的 key 写法 20 | */ 21 | static NSString *const AlibcTradeTaokeParamsAdzoneId = @"adzoneid"; 22 | static NSString *const AlibcTradeTaokeParamsPid = @"pid"; 23 | static NSString *const AlibcTradeTaokeParamsUnionID = @"unionId"; 24 | static NSString *const AlibcTradeTaokeParamsSubPid = @"subpid"; 25 | 26 | /** 淘客参数 */ 27 | @interface AlibcTradeTaokeParams : NSObject 28 | /** 淘客ID */ 29 | @property(nonatomic, copy) NSString *adzoneId; 30 | @property(nonatomic, copy) NSString *pid; 31 | 32 | /** */ 33 | @property(nonatomic, copy) NSString *unionId; 34 | /** */ 35 | @property(nonatomic, copy) NSString *subPid; 36 | 37 | @property(nonatomic, strong) NSDictionary *extParams; 38 | 39 | @end 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcUserAgent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcUserAgent.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcUserAgent_h 16 | #define AlibcUserAgent_h 17 | 18 | FOUNDATION_EXPORT NSString *AlibcUserAgentContextKeyWebView; 19 | 20 | @interface AlibcUserAgent : NSObject 21 | /** 装载 22 | * !!!: 需要主线程调用 23 | * */ 24 | + (void)install:(NSDictionary *)context; 25 | 26 | /** 卸载 */ 27 | + (void)uninstall:(NSDictionary *)context; 28 | 29 | @end 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Headers/AlibcWebViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcWebViewController.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeBiz 6 | * 发布时间:3.1.1.204 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import 15 | 16 | #ifndef AlibcWebViewController_h 17 | #define AlibcWebViewController_h 18 | 19 | @interface AlibcWebViewController : UIViewController 20 | @property(strong, nonatomic) UIWebView *webView; 21 | @end 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15G31 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | AlibcTradeBiz 11 | CFBundleIdentifier 12 | com.AlibcTradeBiz 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | AlibcTradeBiz 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 3.1.1.204-SNAPSHOT 21 | CFBundleSupportedPlatforms 22 | 23 | iPhoneOS 24 | 25 | CFBundleVersion 26 | 1 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 14B72 31 | DTPlatformName 32 | iphoneos 33 | DTPlatformVersion 34 | 10.1 35 | DTSDKBuild 36 | 14B72 37 | DTSDKName 38 | iphoneos10.1 39 | DTXcode 40 | 0810 41 | DTXcodeBuild 42 | 8B62 43 | MinimumOSVersion 44 | 7.0 45 | UIDeviceFamily 46 | 47 | 1 48 | 2 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module AlibcTradeBiz { 2 | umbrella header "AlibcTradeBiz.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/back@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/back@2x.png -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/back@3x.png -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/close@2x.png -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/close@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/close@3x.png -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/en.lproj/Root.strings -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/localConfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "group0": { 3 | "dataId": "com.alibaba.baichuan.nbcp.meta.default", 4 | "group": "1.0.0", 5 | "lastUpdate": "Jun 14, 2016 2:12:22 PM", 6 | "sign": "" 7 | }, 8 | "albbTradeConfig": { 9 | "isSyncForTaoke": "YES", 10 | "isForceH5": "NO", 11 | "isNeedAlipay": "YES", 12 | "loginDegarade": "NO", 13 | "double11OpenType":"0", 14 | "sampling":"10000" 15 | }, 16 | "group2": { 17 | "abc1": "agc1", 18 | "abc2": "agc2", 19 | "abc3": "agc3", 20 | "11111":"11111" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/urlConfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "Release": { 3 | "trade.tmallTradeItemUrlHost": "https://detail.m.tmall.com/item.htm", 4 | "trade.taobaoMobileTradeItemUrlHost": "https://h5.m.taobao.com/awp/core/detail.htm", 5 | "trade.myOrdersUrl": "https://h5.m.taobao.com/mlapp/olist.html", 6 | "trade.shopUrlHost": "https://shop.m.taobao.com/shop/shop_index.htm", 7 | "trade.cartUrl": "https://h5.m.taobao.com/mlapp/cart.html", 8 | "trade.taobaoHomeUrl": "https://h5.m.taobao.com", 9 | "trade.taobaoTradeItemMiniUrlHost": "https://h5.m.taobao.com/trade/detail.html", 10 | "trade.taobaoTradeItemUrlHost": "https://h5.m.taobao.com/cm/snap/index.html" 11 | }, 12 | "PreRelease": { 13 | }, 14 | "Daily": { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/whiteClose@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/whiteClose@2x.png -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/whiteClose@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeBiz.framework/NBResource.bundle/whiteClose@3x.png -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/AlibcTradeCommon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeCommon.framework/AlibcTradeCommon -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AliBCUserTrack.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AliBCUserTrack.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcJSBridgeDynamicHandler.h" 15 | 16 | #ifndef AliBCUserTrack_h 17 | #define AliBCUserTrack_h 18 | 19 | @interface AliBCUserTrack : AlibcJSBridgeDynamicHandler 20 | + (void)toUT:(AlibcHybridContext *)context param:(NSDictionary *)param; 21 | 22 | @end 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcJSBridgeDynamicHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcJSBridgeDynamicHandler.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcHybridContext.h" 15 | 16 | #ifndef AlibcJSBridgeDynamicHandler_h 17 | #define AlibcJSBridgeDynamicHandler_h 18 | 19 | //继承该类,并且实现一个如下格式的函数即可 20 | @interface AlibcJSBridgeDynamicHandler : NSObject 21 | //+ (void)yourFun:(AlibcHybridContext*)context param:(NSDictionary*)param; 22 | 23 | @end 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcJSBridgeParam.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcJSBridgeParam.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcJSBridgeParam_h 16 | #define AlibcJSBridgeParam_h 17 | 18 | @interface AlibcJSBridgeParam : NSObject 19 | @property(nonatomic, copy) NSString *className; 20 | @property(nonatomic, copy) NSString *requestId; 21 | @property(nonatomic, copy) NSString *methodName; 22 | @property(nonatomic, copy) NSDictionary *param; 23 | 24 | - (instancetype)initWithURL:(NSURL *)url; 25 | 26 | - (BOOL)isDataRight; 27 | @end 28 | 29 | @interface AlibcJSBridgeResult : NSObject 30 | @property(nonatomic, strong) NSString *code; 31 | @property(nonatomic, strong) NSString *msg; 32 | @property(nonatomic, strong) NSDictionary *data; 33 | 34 | + (instancetype)build:(NSDictionary *)data; 35 | 36 | + (instancetype)build:(NSString *)code message:(NSString *)message data:(NSDictionary *)data; 37 | @end 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcJSBridgeService.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcJSBridgeService.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcJSBridgeService_h 16 | #define AlibcJSBridgeService_h 17 | 18 | @class AlibcURLBusContext; 19 | 20 | @interface AlibcJSBridgeService : NSObject 21 | + (instancetype)sharedInstance; 22 | 23 | + (BOOL)handle:(NSURLRequest *)request context:(AlibcURLBusContext *)context; 24 | 25 | @end 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcJSON.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcJSON.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcJSON_h 16 | #define AlibcJSON_h 17 | 18 | @interface AlibcJSON : NSObject 19 | 20 | + (id)jsonDataToObject:(NSData *)jsonData class:(Class)clazz; 21 | 22 | + (NSDictionary *)jsonDataToDictionary:(NSData *)jsonData; 23 | 24 | + (NSArray *)jsonDataToArray:(NSData *)jsonData; 25 | 26 | + (NSData *)objectToJsonData:(id)object; 27 | 28 | 29 | + (id)jsonStringToObject:(NSString *)jsonString class:(Class)clazz; 30 | 31 | + (NSDictionary *)jsonStringToDictionary:(NSString *)jsonString; 32 | 33 | + (NSArray *)jsonStringToArray:(NSString *)jsonString; 34 | 35 | + (NSString *)objectToJsonString:(id)object; 36 | 37 | + (id)dictionaryToClass:(NSDictionary *)dictionary class:(Class)clazz; 38 | 39 | + (id)asJsonableObject:(id)object; 40 | 41 | /** 42 | * 修复直接将 JSON 字符串作为 js 使用时,\u2028 和 \u2029 导致 JS 报错的问题。 43 | * 44 | * 一份额外的列表,尚未决定是否全部替换 [\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff] 45 | */ 46 | + (NSString *)fixJSON2JSBug:(NSString *)json; 47 | @end 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcMtopBridge.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcMtopBridge.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcConfig.h" 15 | 16 | #ifndef AlibcMtopBridge_h 17 | #define AlibcMtopBridge_h 18 | 19 | @class AlibcNetPacket; 20 | @class MtopError; 21 | @class AlibcNetError; 22 | 23 | @interface AlibcMtopBridge : NSObject 24 | 25 | + (BOOL)isAvailable; 26 | 27 | + (void)openSDKSwitchLog:(BOOL)logCtr; 28 | 29 | + (void)initMtop; 30 | 31 | + (void)setEnvironment:(AlibcEnvironment)env; 32 | 33 | + (void)setTTID:(NSString *)ttid; 34 | 35 | @end 36 | 37 | @protocol AlibcMtopAdapter 38 | 39 | - (void)openSDKSwitchLog:(BOOL)logCtr; 40 | 41 | - (void)initMtop; 42 | 43 | - (BOOL)performSend:(AlibcNetPacket *)packet; 44 | 45 | - (AlibcNetError *)proccessMtopError:(MtopError *)sdkError; 46 | 47 | - (BOOL)shouldRetry:(NSError *)error; 48 | 49 | - (void)setTTID:(NSString *)ttid; 50 | 51 | - (void)setEnvironment:(AlibcEnvironment)env; 52 | 53 | @end 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcMtopCmd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcMtopCmd.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcMtopCmd_h 16 | #define AlibcMtopCmd_h 17 | 18 | @interface AlibcMtopCmd : NSObject 19 | 20 | @property(nonatomic, strong) NSString *_Nonnull name; // mtop命令 21 | @property(nonatomic, strong) NSString *_Nonnull version; //版本,默认是@"1.0" 22 | @property(nonatomic, assign) BOOL needLogin; //是否需要登录,默认值:NO 23 | @property(nonatomic, assign) BOOL needAuth; //是否需要授权,默认值:NO 24 | @property(nonatomic, assign) BOOL needWUA; //是否需要人机识别,默认是NO 25 | @property(nonatomic, assign) BOOL needPost; 26 | 27 | + (nonnull instancetype)cmd; 28 | 29 | @end 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcNet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcNet.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcNet_h 16 | #define AlibcNet_h 17 | 18 | NS_ASSUME_NONNULL_BEGIN 19 | 20 | @interface AlibcNet : NSObject 21 | 22 | + (void)dataTaskWithURL:(NSURL *)url completionHandler:(void (^)(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError *_Nullable error))completionHandler; 23 | 24 | + (void)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError *_Nullable error))completionHandler; 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcNetError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcNetError.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcNetError_h 16 | #define AlibcNetError_h 17 | 18 | @interface AlibcError : NSError 19 | 20 | + (instancetype)errorWithDomain:(NSString *)domain code:(NSInteger)code msg:(NSString *)msg; 21 | 22 | @end 23 | 24 | FOUNDATION_EXPORT NSString *const AlibcNetErrorCodeMtopNotAvailable; 25 | 26 | @interface AlibcNetError : NSObject 27 | 28 | /** 29 | * 错误码 30 | */ 31 | @property(nonatomic, copy) NSString *code; 32 | 33 | /** 34 | * 错误信息 35 | */ 36 | @property(nonatomic, copy) NSString *msg; 37 | 38 | /** 39 | * 原始错误对象 40 | */ 41 | @property(nonatomic, strong) NSError *rawError; 42 | 43 | /** 44 | * 是否取消了登录 45 | */ 46 | @property(assign, nonatomic) BOOL isLoginCancel; 47 | 48 | /** 49 | * 是否取消了授权 50 | */ 51 | @property(assign, nonatomic) BOOL isAuthCancel; 52 | 53 | @end 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcNetMock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcNetMock.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcNetMock_h 16 | #define AlibcNetMock_h 17 | 18 | @interface AlibcNetMock : NSObject 19 | + (instancetype)sharedInstance; 20 | 21 | - (NSString *)getMtopMockData:(NSString *)cmd; 22 | 23 | @end 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcNetServiceBase.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcNetServiceBase.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcNetPacket.h" 15 | 16 | #ifndef AlibcNetServiceBase_h 17 | #define AlibcNetServiceBase_h 18 | 19 | #define AMP_NET_ERROR_TIME_OUT 118 20 | 21 | @interface AlibcNetServiceBase : NSObject 22 | @property(nonatomic, assign) NSTimeInterval timeoutSeconds; 23 | 24 | - (BOOL)processPacket:(AlibcNetPacket *)packet; 25 | 26 | - (void)netPacketSuccess:(AlibcNetPacket *)packet data:(id)data; 27 | 28 | - (void)netPacketFail:(AlibcNetPacket *)packet error:(AlibcNetError *)error; 29 | 30 | //子类重载该函数,执行真实发送 ,其他的不要乱重载 31 | - (BOOL)performSend:(AlibcNetPacket *)packet; 32 | 33 | - (BOOL)shouldRetry:(NSError *)error; 34 | @end 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcNetServiceMtop.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcNetServiceMtop.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcNetServiceBase.h" 15 | 16 | #ifndef AlibcNetServiceMtop_h 17 | #define AlibcNetServiceMtop_h 18 | 19 | @interface AlibcNetServiceMtop : AlibcNetServiceBase 20 | 21 | + (instancetype)sharedInstance; 22 | 23 | 24 | //设置是否免授权 25 | - (void)setIsAuthVip:(BOOL)isVip; 26 | 27 | - (BOOL)isAuthVip; 28 | 29 | @end 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcNumber.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcNumber.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcNumber_h 16 | #define AlibcNumber_h 17 | 18 | @interface AlibcNumber : NSObject 19 | 20 | + (NSNumber *)stringToNumber:(NSString *)value; 21 | 22 | + (BOOL)isANumber:(NSString *)string; 23 | 24 | @end 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcReflectionUtil.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcReflectionUtil.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcReflectionUtil_h 16 | #define AlibcReflectionUtil_h 17 | 18 | @interface AlibcReflectionUtil : NSObject 19 | + (id)getSharedInstance:(NSString *)className; 20 | 21 | + (id)getInstance:(NSString *)className instanceMethodName:(NSString *)instanceMethodName; 22 | 23 | + (id)executeInstanceMethod:(NSString *)methodName instance:(id)instance params:(NSArray *)params; 24 | 25 | + (id)executeClassMethod:(NSString *)methodName clazz:(Class)clazz; 26 | 27 | + (id)executeInstanceMethod:(NSString *)methodName instanceAndargs:(id)instance, ...; 28 | @end 29 | 30 | 31 | #define BC_MAKE_SELECTOR(var_name, sel_name) _Pragma("clang diagnostic push")\ 32 | _Pragma("clang diagnostic ignored \"-Wundeclared-selector\"")\ 33 | SEL var_name = @selector(sel_name);\ 34 | _Pragma("clang diagnostic pop") 35 | 36 | #define BC_FETCH_CLASS(className) [NSClassFromString(@#className) class] 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcString.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcString.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcString_h 16 | #define AlibcString_h 17 | 18 | @interface AlibcString : NSObject 19 | 20 | + (BOOL)isChinaMobileNumber:(NSString *)number; 21 | 22 | + (NSString *)fromCString:(char *)cString; 23 | 24 | + (NSString *)fromNSData:(NSData *)data; 25 | 26 | + (NSString *)fromNSData:(NSData *)data encoding:(NSStringEncoding)encoding; 27 | 28 | + (NSString *)fromProtocol:(Protocol *)protocol; 29 | 30 | + (NSString *)fromObject:(id)obj; 31 | 32 | + (NSString *)fromClass:(Class)clazz; 33 | 34 | + (NSString *)fromSelector:(SEL)selector; 35 | 36 | + (const char *)toCString:(NSString *)string; 37 | 38 | + (NSData *)toNSData:(NSString *)string; 39 | 40 | + (Protocol *)toProtocol:(NSString *)string; 41 | 42 | + (Class)toClass:(NSString *)string; 43 | 44 | + (SEL)toSEL:(NSString *)string; 45 | 46 | + (NSString *)trim:(NSString *)string; 47 | 48 | + (BOOL)hasSubString:(NSString *)string substring:(NSString *)substring; 49 | 50 | + (BOOL)isBlank:(NSString *)string; 51 | 52 | + (BOOL)isNotBlank:(NSString *)string; 53 | 54 | + (NSArray *)split:(NSString *)string sep:(NSString *)sep; 55 | 56 | @end 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcThread.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcThread.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcThread_h 16 | #define AlibcThread_h 17 | 18 | @interface AlibcThread : NSObject 19 | 20 | /** 21 | * 提交到主线程运行 22 | */ 23 | + (void)foreground:(dispatch_block_t)block; 24 | 25 | /** 26 | * 提交到后台主线程 27 | */ 28 | + (void)backgroundMain:(dispatch_block_t)block; 29 | 30 | + (void)backgroundConcurrentTask:(dispatch_block_t)block; 31 | 32 | @end 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcTradeCommonSDK.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeCommonSDK.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcConfig.h" 15 | 16 | #ifndef AlibcTradeCommonSDK_h 17 | #define AlibcTradeCommonSDK_h 18 | 19 | @interface AlibcTradeCommonSDK : NSObject 20 | /** 21 | * 初始化函数,初始化成功后方可正常使用SDK中的功能 22 | * 23 | * @param onSuccess 初始化成功的回调 24 | * @param onFailure 初始化失败的回调 25 | */ 26 | + (void)asyncInitWithSuccess:(void (^)())onSuccess 27 | failure:(void (^)(NSError *error))onFailure; 28 | 29 | @end 30 | 31 | 32 | @interface AlibcTradeCommonSDK (Settings) 33 | 34 | /** 35 | * 设置环境 36 | */ 37 | + (void)setEnv:(AlibcEnvironment)env; 38 | 39 | /** 40 | * 获取当前环境对象 41 | */ 42 | + (AlibcEnvironment)getEnv; 43 | 44 | 45 | /** 46 | 开启 Debug 模式日志 47 | */ 48 | + (void)setDebugLogOpen:(BOOL)isDebugLogOpen; 49 | 50 | @end 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcTradeInitMonitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeInitMonitor.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import "AlibcTradeCommonSDK.h" 14 | #import "AlibcTradeMonitor.h" 15 | #import "AlibcTradeBenchmarkable.h" 16 | 17 | #ifndef AlibcTradeInitMonitor_h 18 | #define AlibcTradeInitMonitor_h 19 | 20 | @interface AlibcTradeInitMonitor : AlibcTradeMonitor 21 | 22 | @property(strong, nonatomic, readonly) AlibcTradeTimeMeasure *allTimeMeasure; 23 | 24 | @property(strong, nonatomic, readonly) AlibcTradeTimeMeasure *utTimeMeasure; 25 | 26 | @property(strong, nonatomic, readonly) AlibcTradeTimeMeasure *securityTimeMeasure; 27 | 28 | @property(strong, nonatomic, readonly) AlibcTradeTimeMeasure *authTimeMeasure; 29 | 30 | @end 31 | 32 | 33 | @interface AlibcTradeCommonSDK (AlibcTradeInitMonitor) 34 | 35 | + (void)alibc_setInitMonitor:(AlibcTradeInitMonitor *)monitor; 36 | 37 | + (AlibcTradeInitMonitor *)alibc_initMonitor; 38 | 39 | + (dispatch_group_t)alibc_initMonitorGroup; 40 | 41 | @end 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcURL.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcURL.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #ifndef ALiURL_h 14 | #define ALiURL_h 15 | 16 | #import 17 | 18 | @interface AlibcURL : NSObject 19 | 20 | + (NSString *)urlEncoded:(NSString *)string; 21 | 22 | + (NSString *)urlDecoded:(NSString *)string; 23 | 24 | /** 25 | * 移除 URL 中的查询参数和 Fragment。 26 | */ 27 | + (NSString *)urlWithoutQueryAndFragment:(NSString *)url; 28 | @end 29 | 30 | #endif /* ALiURL_h */ 31 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcURLBusContext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcURLBusContext.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import 15 | 16 | @interface AlibcURLBusContext : NSObject 17 | @property(nonatomic, weak) UIWebView *webview; 18 | @property(nonatomic, assign) BOOL bFiltered; //标记本次加载是通过filter触发的 19 | @property(nonatomic, weak) UIViewController *sourceViewController; 20 | 21 | @property(nonatomic, strong) NSMutableDictionary *extraData; //附加数据,各个业务可以自己塞,注意key冲突 22 | @property(nonatomic, strong) id tradeData; //电商业务专用附加数据 23 | 24 | 25 | - (void)setWebviewAndViewController:(UIWebView *)webview controller:(UIViewController *)vc; 26 | 27 | //webview触发load事件 28 | - (void)setLoadWithRequest:(NSURLRequest *)request; 29 | 30 | //绑定webview点击事件 31 | - (void)bindGesture; 32 | 33 | 34 | 35 | 36 | /**** 辅助函数,方便后续修改UIWebView到UIWebViewProxy的情况. ***/ 37 | //放在这里是因为bus上的拦截到处都可以用..其实都是工具函数,为了复用 38 | - (void)loadRequest:(NSURLRequest *)request; 39 | 40 | - (void)reload; //刷新webview 41 | - (void)goBack; //浏览器回退或者无堆栈时pop vc, 42 | - (void)popView; 43 | 44 | - (void)smartGoBack;// 根据跳转类型决定是否goback,主要用在取消登陆的场景 45 | @end 46 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcUTDefine.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcUTDefine.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #ifndef AlibcUTDefine_h 14 | #define AlibcUTDefine_h 15 | 16 | #pragma mark - Common Layer 17 | 18 | #define ponit_usability_pageNative @"Page_Native"//native打开链路 19 | #define ponit_usability_pageH5 @"Page_H5"//h5打开链路 20 | #define ponit_usability_mtop @"InvokeMtop"//mtop请求 21 | 22 | ////监控点,可用性埋点使用 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcWebViewDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcWebViewDelegate.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import 15 | #import "AlibcURLBus.h" 16 | 17 | #ifndef AlibcWebViewDelegate_h 18 | #define AlibcWebViewDelegate_h 19 | 20 | @interface AlibcWebViewDelegate : NSObject 21 | @property(nonatomic, weak) id originDelegate; 22 | @property(nonatomic, strong) AlibcURLBusContext *context; 23 | 24 | @end 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcWebViewService.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcWebViewService.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef AlibcWebViewService_h 16 | #define AlibcWebViewService_h 17 | 18 | @class NSURLRequest; 19 | @class UIWebView; 20 | @class UIViewController; 21 | 22 | @protocol AlibcWebViewService 23 | 24 | - (BOOL)isAllowLoadURLRequest:(NSURLRequest *)request 25 | webview:(UIWebView *)webview 26 | sourceViewController:(UIViewController *)controller; 27 | @end 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcWebViewServiceImpl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcWebViewServiceImpl.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcWebViewService.h" 15 | #import "AlibcURLBus.h" 16 | 17 | #ifndef AlibcWebViewServiceImpl_h 18 | #define AlibcWebViewServiceImpl_h 19 | 20 | @interface AlibcWebViewServiceImpl : NSObject 21 | + (instancetype)sharedInstance; 22 | 23 | - (void)bindWebviewService:(UIWebView *)webview sourceViewController:(UIViewController *)sourceViewController; 24 | 25 | - (void)bindWebviewService:(UIWebView *)webview context:(AlibcURLBusContext *)context; 26 | 27 | - (AlibcURLBusContext *)getContextByWebview:(UIWebView *)webview; 28 | @end 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/AlibcWebviewHookHelp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcWebviewHookHelp.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | #import "AlibcURLBus.h" 15 | 16 | #ifndef AlibcWebviewHookHelp_h 17 | #define AlibcWebviewHookHelp_h 18 | 19 | @class NSURLRequest; 20 | @class UIViewController; 21 | @class UIWebView; 22 | @class NSURL; 23 | 24 | @interface AlibcWebviewHookHelp : NSObject 25 | + (nullable instancetype)sharedInstance; 26 | 27 | 28 | - (BOOL)webView:(nonnull UIWebView *)webView sourceViewController:(nonnull UIViewController *)vc shouldStartLoadWithRequest:(nonnull NSURLRequest *)request; 29 | 30 | - (BOOL)webView:(nonnull UIWebView *)webView context:(nonnull AlibcURLBusContext *)context shouldStartLoadWithRequest:(nonnull NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType; 31 | 32 | 33 | - (void)beforeWebViewStartLoad:(nullable NSURL *)url; 34 | @end 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/NSDictionary+TrimNSNull.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NSDictionary+TrimNSNull.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | #ifndef NSDictionary_TrimNSNull_h 16 | #define NSDictionary_TrimNSNull_h 17 | 18 | @interface NSDictionary (TrimNSNull) 19 | 20 | - (id)aliObjectForKey:(id)aKey; 21 | 22 | @end 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Headers/NSURL+ALIURL.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NSURL+ALIURL.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeCommon 6 | * 版本号:3.1.1.200 7 | * 发布时间:2017-08-21 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #ifndef NSURL_ALIURL_h 14 | #define NSURL_ALIURL_h 15 | 16 | 17 | 18 | #import 19 | 20 | @interface NSURL (ALIURL) 21 | 22 | /* 23 | * 判断是否相同url,会比较host,path,query 以及hash参数 24 | */ 25 | - (BOOL)alibc_isSameUrl:(NSURL *)url; 26 | 27 | @end 28 | 29 | #endif /* NSURL_ALIURL_h */ 30 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeCommon.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module AlibcTradeCommon { 2 | umbrella header "AlibcTradeCommon.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeSDK.framework/AlibcTradeSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlibcTradeSDK.framework/AlibcTradeSDK -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeSDK.framework/Headers/AlibcTradeResult.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeResult.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeSDK 6 | * 版本号:3.1.1.206 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343 (阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | @class AlibcTradePayResult; 16 | 17 | /** 交易结果类型 */ 18 | typedef NS_ENUM (NSUInteger, AlibcTradeResultType) { 19 | /** 成功添加到购物车 */ 20 | AlibcTradeResultTypeAddCard, 21 | /** 成功支付 */ 22 | AlibcTradeResultTypePaySuccess 23 | }; 24 | 25 | 26 | /** 交易结果 */ 27 | @interface AlibcTradeResult : NSObject 28 | /** 交易结果的类型 */ 29 | @property(nonatomic, assign) AlibcTradeResultType result; 30 | /** 支付结果,只有Result为 AlibcTradeResultTypePaySuccess时有效 */ 31 | @property(nonatomic, strong, nullable) AlibcTradePayResult *payResult; 32 | 33 | @end 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeSDK.framework/Headers/AlibcTradeSDKDefines.h: -------------------------------------------------------------------------------- 1 | // 2 | // AlibcTradeSDKDefines.h 3 | // AlibcTradeSDK 4 | // 5 | // Created by Veight Zhou on 1/22/17. 6 | // Copyright © 2017 com.alibaba. All rights reserved. 7 | // 8 | 9 | #ifndef AlibcTradeSDKDefines_h 10 | #define AlibcTradeSDKDefines_h 11 | 12 | /* 13 | * trackParam 参数key说明 14 | */ 15 | #define track_scm @"scm" 16 | #define track_pvid @"pvid" 17 | #define track_isv_code @"isv_code" 18 | 19 | typedef void (^AlibcTradeProcessSuccessCallback)(AlibcTradeResult *__nullable result); 20 | 21 | typedef void (^AlibcTradeProcessFailedCallback)(NSError *__nullable error); 22 | 23 | #endif /* AlibcTradeSDKDefines_h */ 24 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeSDK.framework/Headers/AlibcTradeShowParams.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeShowParams.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeSDK 6 | * 版本号:3.1.1.206 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343 (阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | /** 16 | * 打开页面的类型 17 | */ 18 | typedef NS_ENUM(NSUInteger, AlibcOpenType) { 19 | /** 智能判断 */ 20 | AlibcOpenTypeAuto, 21 | /** 强制跳手淘 */ 22 | AlibcOpenTypeNative, 23 | /** 强制h5展示 */ 24 | AlibcOpenTypeH5 25 | }; 26 | 27 | 28 | 29 | @interface AlibcTradeShowParams : NSObject 30 | /** 31 | * 是否为push方式打开新页面 32 | * 当show page时传入自定义webview时,本参数没有实际意义 33 | * 34 | * NO : 在当前view controller上present新页面 35 | * YES: 在传入的UINavigationController中push新页面 36 | * 默认值:NO 37 | */ 38 | @property(nonatomic, assign) BOOL isNeedPush; 39 | /** 40 | * 打开页面的方式,详见AlibcOpenType 41 | * 默认值:Auto 42 | */ 43 | @property(nonatomic, assign) AlibcOpenType openType; 44 | /** 45 | * 指定手淘回跳的地址,跳转至isv指定的url 46 | * 规则: tbopen${appkey}://xx.xx.xx 47 | */ 48 | @property(nonatomic, strong) NSString *backUrl; 49 | 50 | /** 51 | * applink使用,优先拉起的linkKey,手淘:@"taobao_scheme" 52 | */ 53 | @property(nonatomic, strong) NSString *linkKey; 54 | 55 | /** 56 | * 跳手淘/天猫失败后的处理策略, 默认值为: AlibcNativeFailModeJumpH5 57 | */ 58 | @property(nonatomic, assign) AlibcNativeFailMode nativeFailMode; 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /ios/Frameworks/AlibcTradeSDK.framework/Headers/AlibcTradeTrackService.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AlibcTradeTrackService.h 3 | * 4 | * 阿里百川电商 5 | * 项目名称:阿里巴巴电商 AlibcTradeSDK 6 | * 版本号:3.1.1.206 7 | * 发布时间:2017-09-04 8 | * 开发团队:阿里巴巴百川商业化团队 9 | * 阿里巴巴电商SDK答疑群号:1488705339 2071154343 (阿里旺旺) 10 | * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. 11 | */ 12 | 13 | #import 14 | 15 | //#import 16 | 17 | /** 内容曝光 */ 18 | extern NSString *const AlibcTradeEventId_Exposure; 19 | /** 内容点击 */ 20 | extern NSString *const AlibcTradeEventId_ContentClick; 21 | 22 | 23 | @interface AlibcTradeTrackService : NSObject 24 | 25 | /** 26 | * isv添加自定义ut打点.. 27 | * 28 | * @param eventId 事件名,系统自带事件名,见最上面的几个常量字符串 29 | * @param Params 埋点参数 30 | */ 31 | + (void)addTraceLog:(NSString *)eventId param:(AlibcTrackParams *)params; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /ios/Frameworks/AlipaySDK.framework/AlipaySDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlipaySDK.framework/AlipaySDK -------------------------------------------------------------------------------- /ios/Frameworks/AlipaySDK.framework/Headers/APayAuthInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // APAuthInfo.h 3 | // AliSDKDemo 4 | // 5 | // Created by 方彬 on 14-7-18. 6 | // Copyright (c) 2014年 Alipay.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface APayAuthInfo : NSObject 12 | 13 | @property(nonatomic, copy)NSString *appID; 14 | @property(nonatomic, copy)NSString *pid; 15 | @property(nonatomic, copy)NSString *redirectUri; 16 | 17 | /** 18 | * 初始化AuthInfo 19 | * 20 | * @param appIDStr 应用ID 21 | * @param productIDStr 产品码 该商户在aboss签约的产品,用户获取pid获取的参数 22 | * @param pidStr 商户ID 可不填 23 | * @param uriStr 授权的应用回调地址 比如:alidemo://auth 24 | * 25 | * @return authinfo实例 26 | */ 27 | - (id)initWithAppID:(NSString *)appIDStr 28 | pid:(NSString *)pidStr 29 | redirectUri:(NSString *)uriStr; 30 | 31 | - (NSString *)description; 32 | - (NSString *)wapDescription; 33 | @end 34 | -------------------------------------------------------------------------------- /ios/Frameworks/AlipaySDK.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlipaySDK.framework/Info.plist -------------------------------------------------------------------------------- /ios/Frameworks/AlipaySDK.framework/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/AlipaySDK.framework/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/Headers/MtopError.h: -------------------------------------------------------------------------------- 1 | // 2 | // MtopError.h 3 | // mtopext 4 | // 5 | // Created by 亿刀/禚来强 on 16/6/15. 6 | // Copyright © 2016年 亿刀/禚来强. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MtopError : NSObject 12 | 13 | // 错误码 14 | @property(strong, nonatomic) NSString *code; 15 | 16 | // 错误提示信息 17 | @property(strong, nonatomic) NSString *msg; 18 | 19 | // 原始的错误 20 | @property(strong, nonatomic) NSError *rawError; 21 | 22 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/Headers/MtopErrorDefine.h: -------------------------------------------------------------------------------- 1 | // 2 | // MtopErrorDefine.h 3 | // mtopext 4 | // 5 | // Created by 亿刀/禚来强 on 16/7/1. 6 | // Copyright © 2016年 亿刀/禚来强. All rights reserved. 7 | // 8 | 9 | #ifndef MtopErrorDefine_h 10 | #define MtopErrorDefine_h 11 | 12 | 13 | #endif /* MtopErrorDefine_h */ 14 | 15 | #pragma mark - error code 16 | 17 | #define k_MTOP_LOCAL_ERROR_CODE_NO_LOGIN_MODEL @"MTOP_LOCAK_ERROR_NO_LOGIN_MODEL" 18 | #define k_MTOP_LOCAL_ERROR_MSG_NO_LOGIN_MODEL @"没有找到登录模块" 19 | 20 | #define k_MTOP_LOCAL_ERROR_CODE_NO_AUTH_MODEL @"MTOP_LOCAK_ERROR_NO_AUTH_MODEL" 21 | #define k_MTOP_LOCAL_ERROR_MSG_NO_AUTH_MODEL @"没有找到授权模块" 22 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/Headers/MtopExtResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // MtopExtResponse.h 3 | // mtopext 4 | // 5 | // Created by 亿刀/禚来强 on 16/6/15. 6 | // Copyright © 2016年 亿刀/禚来强. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class MtopExtRequest; 12 | @class MtopError; 13 | 14 | @interface MtopExtResponse : NSObject 15 | 16 | /* http 状态码 */ 17 | @property(assign, nonatomic, readonly) int httpStartusCode; 18 | 19 | /* 错误信息 */ 20 | @property(strong, nonatomic, readonly) MtopError *error; 21 | 22 | /* http响应头 */ 23 | @property(strong, nonatomic, readonly) NSDictionary *responseHeaders; 24 | 25 | /* 二进制响应 */ 26 | @property(strong, nonatomic, readonly) NSData *responseData; 27 | 28 | /* 原始的http响应body */ 29 | @property(strong, nonatomic, readonly) NSString *responseString; 30 | 31 | /* json响应,从http body 解析 */ 32 | @property(strong, nonatomic, readonly) NSDictionary *responseJsons; 33 | 34 | /* 响应对应的API Request */ 35 | @property(strong, nonatomic, readonly) MtopExtRequest *request; 36 | 37 | /* 底层发出去的URL */ 38 | @property(strong, nonatomic, readonly) NSURL *requestURL; 39 | 40 | @property(assign, nonatomic) BOOL isLoginCancel; 41 | 42 | @property(assign, nonatomic) BOOL isAuthCancel; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/Headers/MtopService.h: -------------------------------------------------------------------------------- 1 | // 2 | // MtopService.h 3 | // mtopext 4 | // 5 | // Created by 亿刀/禚来强 on 16/6/15. 6 | // Copyright © 2016年 亿刀/禚来强. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class MtopExtRequest; 12 | 13 | @protocol MtopLoginProtocol; 14 | @protocol MtopAuthProtocol; 15 | 16 | NS_ASSUME_NONNULL_BEGIN 17 | 18 | @interface MtopService : NSObject 19 | 20 | + (instancetype)shareInstance; 21 | 22 | - (void)installCustomLoginModule:(id)loginHandler; 23 | 24 | - (void)installCustomAuthModule:(id)authHandler; 25 | 26 | - (void)async_call:(MtopExtRequest *)request; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/Headers/OpenMtopExt.h: -------------------------------------------------------------------------------- 1 | // 2 | // mtopext.h 3 | // mtopext 4 | // 5 | // Created by 亿刀/禚来强 on 16/6/13. 6 | // Copyright (c) 2016年 亿刀/禚来强. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/Headers/TBSDKConfiguration.h: -------------------------------------------------------------------------------- 1 | // 2 | // TBSDKConfiguration.h 3 | // mtopext 4 | // 5 | // Created by 亿刀/禚来强 on 16/6/15. 6 | // Copyright © 2016年 亿刀/禚来强. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class TBSDKAccountInfo; 12 | 13 | typedef enum { 14 | 15 | /**< 枚举,预发环境 */ 16 | TBSDKEnvironmentDebug = 1, 17 | 18 | /**< 枚举,日常环境 */ 19 | TBSDKEnvironmentDaily, 20 | 21 | /**< 枚举,正式环境 */ 22 | TBSDKEnvironmentRelease 23 | 24 | } TBSDKEnvironment; 25 | 26 | @interface TBSDKConfiguration : NSObject 27 | 28 | /* 设置环境 */ 29 | @property (nonatomic, unsafe_unretained) TBSDKEnvironment environment; 30 | 31 | /* 无线埋点的 ttid */ 32 | @property (nonatomic, strong) NSString *wapTTID; 33 | 34 | /* 自定义域名 */ 35 | @property (nonatomic, strong) NSString *customHost; 36 | 37 | /* 加签码 */ 38 | @property (nonatomic, strong) NSString *authCode; 39 | 40 | /* 应用程序的 appKey */ 41 | @property (nonatomic, strong, readonly) NSString *appKey; 42 | 43 | /* 设备标示 */ 44 | @property(strong, nonatomic, readonly) NSString *utdid; 45 | 46 | /* 服务器时间 */ 47 | @property(strong, nonatomic, readonly) NSDate *serverDate; 48 | 49 | 50 | /* 获取单例对象 */ 51 | + (id)shareInstance; 52 | 53 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15G31 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | OpenMtopExt 11 | CFBundleIdentifier 12 | ZhuoLaiQiang.OpenMtopExt 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | OpenMtopExt 17 | CFBundleShortVersionString 18 | 0.0.1-SNAPSHOT 19 | CFBundleSignature 20 | ???? 21 | CFBundleSupportedPlatforms 22 | 23 | iPhoneOS 24 | 25 | CFBundleVersion 26 | 1 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 13E230 31 | DTPlatformName 32 | iphoneos 33 | DTPlatformVersion 34 | 9.3 35 | DTSDKBuild 36 | 13E230 37 | DTSDKName 38 | iphoneos9.3 39 | DTXcode 40 | 0731 41 | DTXcodeBuild 42 | 7D1014 43 | MinimumOSVersion 44 | 7.0 45 | UIDeviceFamily 46 | 47 | 1 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/OpenMtopExt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/OpenMtopExt.framework/OpenMtopExt -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/OpenMtopExt-Info.plist: -------------------------------------------------------------------------------- 1 | bplist00_CFBundleDevelopmentRegion$ -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopExt.framework/OpenMtopSDK.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.platform = :ios 3 | s.ios.deployment_target = '5.0' 4 | s.name = 'OpenMtopSDK' 5 | s.version = "1.6.1.17-SNAPSHOT" 6 | s.summary = '淘宝MTOPSDK' 7 | s.description = 'MTOP SDK for IOS' 8 | s.homepage = 'http://gitlab.alibaba-inc.com/wireless/mtopsdk' 9 | s.license = { 10 | :type => 'Copyright', 11 | :text => <<-LICENSE 12 | Alibaba-Inc copyright 13 | LICENSE 14 | } 15 | s.requires_arc = true 16 | s.authors = {'苍至'=>'silu.msl@taobao.com'} 17 | 18 | s.frameworks = 'UIKit', 'Foundation' 19 | 20 | s.dependency 'UTDID' 21 | 22 | # s.dependency 'UTDID' 23 | # s.dependency 'SecurityGuardSDK' 24 | # s.dependency 'SGMain' 25 | # s.dependency 'SGSecurityBody' 26 | # s.dependency 'SGNoCaptcha' 27 | 28 | s.source = { :git=>"git@gitlab.alibaba-inc.com:wireless/opensdk.git", :commit=> "d81fd09" } 29 | 30 | #s.exclude_files = exclude_files+networksdk_no_arc_files 31 | s.source_files = 'MtopSDK/*.{h,m,c,mm}' 32 | 33 | end 34 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/JsonUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // JsonUtils.h 3 | // mtopext 4 | // 5 | // Created by sihai on 13/11/14. 6 | // Copyright (c) 2014 Taobao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface JsonUtils : NSObject 12 | 13 | /*! 14 | * 字符串转换成只读json 15 | * @param str 字符串 16 | * @return 17 | * NSDictionary 18 | */ 19 | + (NSDictionary*) toJson: (NSString*) str; 20 | 21 | /*! 22 | * 字符串转换成只读json 23 | * @param str 字符串 24 | * @return 25 | * NSDictionary 26 | */ 27 | + (NSDictionary*) toJsonWithData: (NSData*) data; 28 | 29 | /*! 30 | * 字符串转换成只读json 31 | * @param str 字符串 32 | * @return 33 | * NSMutableDictionary 34 | */ 35 | + (NSMutableDictionary*) toMutableJsonWithData: (NSData*) data; 36 | 37 | /*! 38 | * 字符串转换成读写json 39 | * @param str 字符串 40 | * @return 41 | * NSMutableDictionary 42 | */ 43 | + (NSMutableDictionary*) toMutableJson: (NSString*) str; 44 | 45 | /*! 46 | * 对象转json字符串 47 | * @param data 对象 48 | * @return 49 | * NSString 50 | */ 51 | + (NSString*) toJsonString: (NSObject*) data; 52 | 53 | /*! 54 | * 对象转json字符串的NSData 55 | * @param data 对象 56 | * @return 57 | * NSData 58 | */ 59 | + (NSData*) toJsonData: (NSObject*) data; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKConnectionDelegate.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | @class TBSDKConnection; 4 | 5 | @protocol TBSDKConnectionDelegate 6 | 7 | @optional 8 | 9 | - (void)requestStarted:(TBSDKConnection *)connection; 10 | - (void)request:(TBSDKConnection *)connection didReceiveResponseHeaders:(NSDictionary *)responseHeaders; 11 | - (void)request:(TBSDKConnection *)connection willRedirectToURL:(NSURL *)newURL; 12 | - (void)requestFinished:(TBSDKConnection *)connection; 13 | - (void)requestNetworkDataSet:(NSDictionary *) networkDataSet withFinishedTime:(CFAbsoluteTime) finishedTime; 14 | - (void)requestFailed:(TBSDKConnection *)connection; 15 | - (void)requestRedirected:(TBSDKConnection *)connection; 16 | - (void)request:(TBSDKConnection *)connection didReceiveData:(NSData *)data; 17 | - (void)authenticationNeededForRequest:(TBSDKConnection *)connection; 18 | - (void)proxyAuthenticationNeededForRequest:(TBSDKConnection *)connection; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKEncryptionUntil.h: -------------------------------------------------------------------------------- 1 | // 2 | // TBSDKEncryptionUntil.h 3 | // mtopsdk 4 | // 5 | // Created by sihai on 7/5/15. 6 | // Copyright (c) 2015 mtop. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TBSDKEncryptionUntil : NSObject 12 | 13 | + (NSData *)encryptionString:(NSString *)string key:(NSString *)key; 14 | 15 | + (NSString *)decryptWithKey:(NSString *)key decrypDta:(NSData *)data; 16 | 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKErrorHandleDelegate.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-1-31. 11 | // Copyright (c) 2013年 Taobao. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | @class TBSDKServer; 17 | 18 | @protocol TBSDKErrorRule; 19 | 20 | @protocol TBSDKErrorHandleDelegate 21 | 22 | @required 23 | 24 | //! 如果返回值不为nil,表示有业务错误,反之,表示服务器返回值没有业务错误,是一次成功的网络请求 25 | - (id)tbsdkErrorHandleWithServer:(TBSDKServer *)server; 26 | 27 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKErrorRule.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-2-19. 11 | // Copyright (c) 2013年 亿刀/禚来强. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | 17 | @protocol TBSDKErrorRule 18 | 19 | @required 20 | @property (nonatomic, strong) NSString *errorCode; 21 | 22 | @property (nonatomic, strong) NSString *msg; 23 | 24 | @optional 25 | @property (nonatomic, strong) NSString *sub_code; 26 | 27 | @property (nonatomic, strong) NSString *sub_msg; 28 | 29 | @property (nonatomic, strong) NSDictionary *args; 30 | 31 | @property (nonatomic, strong) NSDictionary *raw; 32 | 33 | //开发调试使用的参数,用户存放代码出错的位置(__FUNCTION__, __LINE__) 34 | @property (nonatomic, strong) NSString *errorLocation; 35 | 36 | @property (nonatomic, strong) NSError *error; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKHTTPRequestOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // NWHTTPRequestOperation.h 3 | // ALINetworkSDK 4 | // 5 | // Created by Roger.Mu on 5/8/15. 6 | // Copyright (c) 2015 Taobao.com. All rights reserved. 7 | // 8 | 9 | #import "TBSDKURLConnectionOperation.h" 10 | 11 | @interface TBSDKHTTPRequestOperation : TBSDKURLConnectionOperation 12 | 13 | - (void)setCompletionBlockWithSuccess:(void (^)(TBSDKHTTPRequestOperation *operation, id responseObject))success 14 | failure:(void (^)(TBSDKHTTPRequestOperation *operation, NSError *error))failure; 15 | 16 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKLogUtil.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-3-25. 11 | // Copyright (c) 2013年 yidao. All rights reserved. 12 | // 13 | 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | #import 20 | 21 | /** 开关openSDK的log */ 22 | void openSDKSwitchLog(BOOL logCtr); 23 | 24 | /** 打印log */ 25 | void openSDKNSLog(NSString *formate, ...); 26 | 27 | 28 | //#define MLog(formate, args...) NSLog(formate, args...)// openSDKNSLog(@"%s %d: " formate, __FUNCTION__, __LINE__, ##args) 29 | 30 | //#ifdef DEBUG_MODE 31 | #define MLog( s, ... ) openSDKNSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] ) 32 | //#else 33 | //#define DLog( s, ... ) 34 | //#endif 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKMTOPEnvConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // TBSDKMTOPEnvConfig.h 3 | // MtopSDK 4 | // 5 | // Created by Roger on 11/27/14. 6 | // Copyright (c) 2014 mtop. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #define MTOP_REQUEST_SECURITY_CONTROL @"Security_control" 12 | 13 | /** TBSDK环境设置 */ 14 | typedef enum 15 | { 16 | environmentDebug = 1, /**< 枚举,预发环境 */ 17 | environmentDaily, /**< 枚举,日常环境 */ 18 | // environmentDailyTwo, /**< 枚举,日常二套环境 */ 19 | environmentRelease /**< 枚举,正式环境 */ 20 | }MtopEnvironment; 21 | 22 | @interface TBSDKMTOPEnvConfig : NSObject 23 | 24 | @property (nonatomic, strong) NSString *appkey; 25 | @property (nonatomic, strong) NSString *appSecret; 26 | @property (nonatomic, strong) NSString *uid; 27 | @property (atomic) BOOL isWhiteSecurity; 28 | @property (nonatomic) MtopEnvironment environment; 29 | //@property (strong, nonatomic) NSString* gatewayDomain; 30 | //@property (nonatomic, strong) NSString *customMtopRequestURL; 31 | @property (nonatomic, strong) NSString *authCode; 32 | 33 | + (id)shareInstance; 34 | 35 | - (NSString *)appkey; 36 | 37 | - (NSString *)readUtdid; 38 | 39 | + (NSString *)urlEncodeString:(NSString *) string; 40 | @end 41 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKNetworkProgressProtocol.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-7-10. 11 | // Copyright (c) 2013年 亿刀/禚来强. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | @class TBSDKServer; 17 | 18 | @protocol TBSDKNetworkProgressProtocol 19 | 20 | @optional 21 | 22 | - (void)setProgress:(float)newProgress; 23 | 24 | // Called when the request sends some data 25 | // The first 32KB (128KB on older platforms) of data sent is not included in this amount because of limitations with the CFNetwork API 26 | // bytes may be less than zero if a request needs to remove upload progress (probably because the request needs to run again) 27 | - (void)request:(TBSDKServer *)request didSendBytes:(long long)bytes; 28 | 29 | 30 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKNetworkSDKUtil.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-7-19. 11 | // Copyright (c) 2013年 亿刀/禚来强. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | @interface TBSDKNetworkSDKUtil : NSObject 17 | 18 | + (NSString *)utdid; 19 | 20 | + (NSString*)base64forData:(NSData*)theData; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKSendFileObject.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-6-26. 11 | // Copyright (c) 2013年 亿刀/禚来强. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | @interface TBSDKSendFileObject : NSObject 17 | 18 | @property (nonatomic, strong) NSData* data; 19 | @property (nonatomic, strong) NSString* fileName; 20 | @property (nonatomic, strong) NSString* key; 21 | 22 | /*! 23 | * 初始化一个文件上传对象 24 | * @param data 文件数据 25 | * @param fileName 本地文件名 26 | * @param forKey form field key 27 | * @return 28 | * TBSDKSendFileObject 29 | */ 30 | - (TBSDKSendFileObject*) initWithData: (NSData*) data fileName: (NSString*) fileName forKey: (NSString*) key; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKServerQueue+Private.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-1-30. 11 | // Copyright (c) 2013年 Taobao. All rights reserved. 12 | // 13 | 14 | #import "TBSDKServerQueue.h" 15 | 16 | @protocol TBSDKRequestQueueProtocol; 17 | 18 | /** 定义了TBSDKServerQueue的私有方法 19 | * 20 | * 定义了TBSDKServerQueue的私有方法,对外不可见,只提供TBSDK内部调用 21 | * 外部调用可能产生不安全的行为。 22 | */ 23 | @interface TBSDKServerQueue (Private) 24 | 25 | 26 | //! 添加一个TBSDKServer到请求队列 27 | - (void)addRequest:(id)request; 28 | 29 | //! 从请求队列中删除一个TBSDKServer。 30 | - (void)removeRequest:(id)request; 31 | 32 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKServerQueue.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-1-28. 11 | // Copyright (c) 2013年 Taobao. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | 17 | /** TBSDK的请求池。 18 | * 19 | * TBSDK的请求池,是单例模式。保存了TBSDK的所有的网络请求 20 | * 用户可以获取获取自己的网络请求,而不需要将网络请求保存为实例变量 21 | */ 22 | @interface TBSDKServerQueue : NSObject 23 | 24 | 25 | + (TBSDKServerQueue *)shareInstance; 26 | 27 | 28 | //! 获取delegate_对应的符合TBSDKRequestQueueProtocol协议的对象。 29 | - (NSArray *)getRequestForDelegate:(id)delegate_; 30 | 31 | //! 退出符合TBSDKRequestQueueProtocol协议的对象的网络请求,并把符合TBSDKRequestQueueProtocol协议的对象的delegate设置为nil。 32 | - (void)cancelRequestNetworkAndClearDelegateForDelegate:(id)delegate_; 33 | 34 | @end 35 | 36 | @protocol TBSDKRequestQueueProtocol 37 | 38 | @required 39 | - (void)clearDelegatesAndCancel; 40 | 41 | @optional 42 | 43 | @property (nonatomic, weak) id delegate; 44 | 45 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKThreadSafeMutableArry.h: -------------------------------------------------------------------------------- 1 | // 2 | // TBThreadSafeMutableArry.h 3 | // TBLocationFramework 4 | // 5 | // Created by striveliu on 7/4/14. 6 | // Copyright (c) 2014 taobao. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | @interface TBSDKThreadSafeMutableArry : NSArray 12 | { 13 | pthread_rwlock_t s_pthread_rwlock_t; 14 | NSMutableArray *_mutableArry; 15 | } 16 | - (void)addObject:(id)anObject; 17 | - (void) insert: (id) object atIndex: (NSUInteger) atIndex; 18 | - (void)removeObjectAtIndex:(NSUInteger)index; 19 | - (void)removeAllObjects; 20 | - (void)removeLastObject; 21 | - (id)objectAtIndex:(NSUInteger)index; 22 | - (NSUInteger)getCount; 23 | @end 24 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDKThreadSafeMutableDictionary.h: -------------------------------------------------------------------------------- 1 | // 2 | // TBSDKThreadSafeMutableDictionary.h 3 | // TBSDKNetworkSDK 4 | // 5 | // Created by Roger.Mu on 6/30/14. 6 | // Copyright (c) 2014 Alibaba-Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TBSDKThreadSafeMutableDictionary : NSMutableDictionary 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDSKServerRule.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 iTeam on 13-2-24. 11 | // Copyright (c) 2013年 亿刀/禚来强 iTeam. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | @protocol TBSDKErrorRule; 17 | 18 | 19 | //TBSDKServer的私有方法定义 20 | @protocol TBSDSKServerRule 21 | 22 | @optional 23 | - (void)setApiMethod:(NSString *)apiMethod; 24 | - (void)setTbsdkError:(id)error; 25 | - (void)setResponseData:(NSData *)responseData; 26 | 27 | //! 网络请求开始 28 | - (void)performDelegatStartSelector; 29 | 30 | //! 网络请求成功 31 | - (void)performDelegatSuccessSelector; 32 | 33 | //! 网络请求失败 34 | - (void)performDelegatFailSelector; 35 | 36 | //!响应头下载完毕 37 | - (void)performReciveResponseHeaders:(NSDictionary *)responseHeaders; 38 | 39 | @end -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/TBSDkSignUtility.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by 亿刀/禚来强 on 13-7-31. 11 | // Copyright (c) 2013年 亿刀/禚来强. All rights reserved. 12 | // 13 | 14 | #import 15 | 16 | 17 | @interface TBSDkSignUtility : NSObject 18 | 19 | + (TBSDkSignUtility *)shareInstance; 20 | 21 | + (NSString *)getMtopSignWithAppkey:(NSString *)appkey 22 | withApiName:(NSString *)apiName 23 | withApiVersion:(NSString *)apiVersion 24 | withData:(NSDictionary *)data 25 | withHeader:(NSDictionary *)headers; 26 | 27 | /*! 28 | * 用sercet md5字符串value 29 | * @param value 30 | * @return 31 | * MD5 32 | */ 33 | + (NSString*) md5: (NSString*) appkey value: (NSString*) value; 34 | + (NSString*) md5: (NSString*) value; 35 | /*! 36 | * 37 | * 38 | * 39 | */ 40 | - (void) removeSecurity: (NSString*) key; 41 | 42 | /*! 43 | * 44 | * 45 | * 46 | */ 47 | - (void) addSecurity: (NSString*) key; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/Headers/UIDevice+TBSDKIdentifierAddition.h: -------------------------------------------------------------------------------- 1 | // '########'########::'######:'########:'##:::'##: 2 | // ... ##..::##.... ##'##... ##:##.... ##:##::'##:: 3 | // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##::: 4 | // ::: ##::::########:. ######::##:::: ##:#####:::: 5 | // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##::: 6 | // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##:: 7 | // ::: ##::::########:. ######::########::##::. ##: 8 | // :::..::::........:::......::........::..::::..:: 9 | // 10 | // Created by Georg Kitz on 20.08.11. 11 | // Copyright 2011 Aurora Apps. All rights reserved. 12 | // 13 | 14 | #import 15 | #import 16 | 17 | @interface UIDevice(TBNewSDKIdentifierAddition) 18 | 19 | + (NSString *)tbsdkPlatform; 20 | 21 | + (NSString *)tbsdkMacaddress; 22 | 23 | /* 24 | * @method uniqueDeviceIdentifier 25 | * @description use this method when you need a unique identifier in one app. 26 | * It generates a hash from the MAC-address in combination with the bundle identifier 27 | * of your app. 28 | */ 29 | 30 | - (NSString *)tbsdkUniqueDeviceIdentifier; 31 | 32 | /* 33 | * @method uniqueGlobalDeviceIdentifier 34 | * @description use this method when you need a unique global identifier to track a device 35 | * with multiple apps. as example a advertising network will use this method to track the device 36 | * from different apps. 37 | * It generates a hash from the MAC-address only. 38 | */ 39 | 40 | - (NSString *)tbsdkUniqueGlobalDeviceIdentifier; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/OpenMtopSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/OpenMtopSDK.framework/OpenMtopSDK -------------------------------------------------------------------------------- /ios/Frameworks/OpenMtopSDK.framework/OpenMtopSDK.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.platform = :ios 3 | s.ios.deployment_target = '5.0' 4 | s.name = 'OpenMtopSDK' 5 | s.version = "1.6.1.17-SNAPSHOT" 6 | s.summary = '淘宝MTOPSDK' 7 | s.description = 'MTOP SDK for IOS' 8 | s.homepage = 'http://gitlab.alibaba-inc.com/wireless/mtopsdk' 9 | s.license = { 10 | :type => 'Copyright', 11 | :text => <<-LICENSE 12 | Alibaba-Inc copyright 13 | LICENSE 14 | } 15 | s.requires_arc = true 16 | s.authors = {'苍至'=>'silu.msl@taobao.com'} 17 | 18 | s.frameworks = 'UIKit', 'Foundation' 19 | 20 | s.dependency 'UTDID' 21 | 22 | # s.dependency 'UTDID' 23 | # s.dependency 'SecurityGuardSDK' 24 | # s.dependency 'SGMain' 25 | # s.dependency 'SGSecurityBody' 26 | # s.dependency 'SGNoCaptcha' 27 | 28 | s.source = { :git=>"git@gitlab.alibaba-inc.com:wireless/opensdk.git", :commit=> "d81fd09" } 29 | 30 | #s.exclude_files = exclude_files+networksdk_no_arc_files 31 | s.source_files = 'MtopSDK/*.{h,m,c,mm}' 32 | 33 | end 34 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenAtlasEncrypt.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenAtlasEncrypt.h 3 | // SecurityGuardWhiteBox 4 | // 5 | // Created by lifengzhong on 15/11/9. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenAtlasEncrypt_h 10 | #define ISecurityGuardOpenAtlasEncrypt_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenAtlasEncrypt 21 | 22 | @end 23 | 24 | 25 | #endif /* ISecurityGuardOpenAtlasEncrypt_h */ 26 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenDataCollection.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenDataCollection.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/10. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenDataCollection_h 10 | #define ISecurityGuardOpenDataCollection_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenDataCollection 21 | 22 | @end 23 | 24 | 25 | #endif /* ISecurityGuardOpenDataCollection_h */ 26 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenDynamicDataEncrypt.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenDynamicDataEncrypt.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/10. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenDynamicDataEncrypt_h 10 | #define ISecurityGuardOpenDynamicDataEncrypt_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenDynamicDataEncrypt 21 | 22 | @end 23 | 24 | 25 | #endif /* ISecurityGuardOpenDynamicDataEncrypt_h */ 26 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenDynamicDataStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenDynamicDataStore.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/10. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenDynamicDataStore_h 10 | #define ISecurityGuardOpenDynamicDataStore_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenDynamicDataStore 21 | 22 | @end 23 | 24 | #endif /* ISecurityGuardOpenDynamicDataStore_h */ 25 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenInitialize.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenInitialize.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/12. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenInitialize_h 10 | #define ISecurityGuardOpenInitialize_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenInitialize 21 | 22 | @end 23 | 24 | 25 | #endif /* ISecurityGuardOpenInitialize_h */ 26 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenOpenSDK.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenOpenSDK.h 3 | // SecurityGuardTAE 4 | // 5 | // Created by lifengzhong on 15/11/9. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenOpenSDK_h 10 | #define ISecurityGuardOpenOpenSDK_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenOpenSDK 21 | 22 | @end 23 | 24 | #endif /* ISecurityGuardOpenOpenSDK_h */ 25 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenSecureSignature.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenSecureSignature.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/10. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenSecureSignature_h 10 | #define ISecurityGuardOpenSecureSignature_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #import 16 | #import 17 | #else 18 | #import 19 | #import 20 | #import 21 | #import 22 | #endif 23 | 24 | @protocol ISecurityGuardOpenSecureSignature 25 | 26 | @end 27 | 28 | #endif /* ISecurityGuardOpenSecureSignature_h */ 29 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenStaticDataEncrypt.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenStaticDataEncrypt.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/10. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenStaticDataEncrypt_h 10 | #define ISecurityGuardOpenStaticDataEncrypt_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #import 16 | #else 17 | #import 18 | #import 19 | #import 20 | #endif 21 | 22 | @protocol ISecurityGuardOpenStaticDataEncrypt 23 | 24 | @end 25 | 26 | 27 | #endif /* ISecurityGuardOpenStaticDataEncrypt_h */ 28 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenStaticDataStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenStaticDataStore.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/7. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenStaticDataStore_h 10 | #define ISecurityGuardOpenStaticDataStore_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #import 16 | #else 17 | #import 18 | #import 19 | #import 20 | #endif 21 | 22 | @protocol ISecurityGuardOpenStaticDataStore 23 | @end 24 | 25 | 26 | #endif /* ISecurityGuardOpenStaticDataStore_h */ 27 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenStaticKeyEncrypt.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenStaticKeyEncrypt.h 3 | // SecurityGuardTAE 4 | // 5 | // Created by lifengzhong on 15/11/9. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenStaticKeyEncrypt_h 10 | #define ISecurityGuardOpenStaticKeyEncrypt_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #import 16 | #else 17 | #import 18 | #import 19 | #import 20 | #endif 21 | 22 | @protocol ISecurityGuardOpenStaticKeyEncrypt 23 | 24 | @end 25 | 26 | 27 | #endif /* ISecurityGuardOpenStaticKeyEncrypt_h */ 28 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Headers/ISecurityGuardOpenUMID.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenUMID.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/10. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenUMID_h 10 | #define ISecurityGuardOpenUMID_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenUMID 21 | 22 | 23 | @end 24 | 25 | 26 | #endif /* ISecurityGuardOpenUMID_h */ 27 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | com.alimobilesec.SGMain 7 | CFBundleName 8 | SGMain 9 | CFBundleShortVersionString 10 | 5.1.94 11 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Frameworks/SGMain.framework/SGMain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/SGMain.framework/SGMain -------------------------------------------------------------------------------- /ios/Frameworks/SGSecurityBody.framework/Headers/ISecurityGuardOpenJAQVerification.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenJAQVerification.h 3 | // SecurityGuardSecurityBody 4 | // 5 | // Created by lifengzhong on 15/11/9. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenJAQVerification_h 10 | #define ISecurityGuardOpenJAQVerification_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #else 15 | #import 16 | #endif 17 | 18 | @protocol ISecurityGuardOpenJAQVerification 19 | 20 | /** 21 | * 聚安全防控接口 22 | * 23 | * @param info 其他需要的信息,以key-v形式存于info中,可选 24 | * @param timeout 接口调用超时时间,单位秒,最大不超过22,最小不小于1 25 | * 26 | * @return 聚安全服务器返回的安全token 27 | */ 28 | - (NSString*) doJAQVerfificationSync: (NSDictionary*) info 29 | timeout: (NSInteger) timeout; 30 | 31 | 32 | @end 33 | 34 | 35 | #endif /* ISecurityGuardOpenJAQVerification_h */ 36 | -------------------------------------------------------------------------------- /ios/Frameworks/SGSecurityBody.framework/Headers/ISecurityGuardOpenSimulatorDetect.h: -------------------------------------------------------------------------------- 1 | // 2 | // ISecurityGuardOpenSimulatorDetect.h 3 | // SecurityGuardMain 4 | // 5 | // Created by lifengzhong on 15/11/10. 6 | // Copyright © 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #ifndef ISecurityGuardOpenSimulatorDetect_h 10 | #define ISecurityGuardOpenSimulatorDetect_h 11 | 12 | #if TARGET_OS_WATCH 13 | #import 14 | #import 15 | #else 16 | #import 17 | #import 18 | #endif 19 | 20 | @protocol ISecurityGuardOpenSimulatorDetect 21 | 22 | @end 23 | 24 | #endif /* ISecurityGuardOpenSimulatorDetect_h */ 25 | -------------------------------------------------------------------------------- /ios/Frameworks/SGSecurityBody.framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | com.alimobilesec.SGSecurityBody 7 | CFBundleName 8 | SGSecurityBody 9 | CFBundleShortVersionString 10 | 5.1.29 11 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Frameworks/SGSecurityBody.framework/SGSecurityBody: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/SGSecurityBody.framework/SGSecurityBody -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/JAQ/SecurityCipher.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecurityCipher.h 3 | // SecurityGuardSDK 4 | // 5 | // Created by lifengzhong on 15/1/19. 6 | // Copyright (c) 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SecurityCipher : NSObject 12 | 13 | + (NSString*) encryptString: (NSString*) input key: (NSString*) key; 14 | 15 | + (NSString*) decryptString: (NSString*) input key: (NSString*) key; 16 | 17 | + (NSData*) encryptBinary: (NSData*) input key: (NSString*) key; 18 | 19 | + (NSData*) decryptBinary: (NSData*) input key: (NSString*) key; 20 | 21 | + (NSString*) atlasEncryptString: (NSString*) input ; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/JAQ/SecuritySignature.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecuritySignature.h 3 | // SecurityGuardSDK 4 | // 5 | // Created by lifengzhong on 15/1/19. 6 | // Copyright (c) 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SecuritySignature : NSObject 12 | 13 | + (NSString*) sign: (NSString*) input key: (NSString*) key; 14 | 15 | + (NSString*) signWithSimulator: (NSString*) input key: (NSString*) key; 16 | 17 | + (NSString*) atlasSign: (NSString*) input key: (NSString*) key; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/JAQ/SecurityStorage.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecurityStorage.h 3 | // SecurityGuardSDK 4 | // 5 | // Created by lifengzhong on 15/1/19. 6 | // Copyright (c) 2015年 Li Fengzhong. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SecurityStorage : NSObject 12 | 13 | + (NSInteger) putString: (NSString*) value key: (NSString*) key; 14 | 15 | + (NSString*) getString: (NSString*) key; 16 | 17 | + (void) removeString: (NSString*) key; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/JAQ/SecurityVerification.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecurityVerification.h 3 | // SecurityGuardSDKPro 4 | // 5 | // Created by lifengzhong on 15/8/13. 6 | // Copyright (c) 2015年 alibaba. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SecurityVerification : NSObject 12 | 13 | 14 | /** 15 | * 聚安全防控接口 16 | * 17 | * @param info 其他需要的信息,以key-v形式存于info中,可选 18 | * @param timeout 接口调用超时时间,单位秒,最大不超过22,最小不小于1 19 | * 20 | * @return 聚安全服务器返回的安全token 21 | */ 22 | + (NSString*) doJAQVerfificationSync: (NSDictionary*) info 23 | timeout: (NSInteger) timeout; 24 | 25 | @end -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/JAQ/SimulatorDetect.h: -------------------------------------------------------------------------------- 1 | // 2 | // SimulatorDetect.h 3 | // SecurityGuardSDKPro 4 | // 5 | // Created by yangzhao.zy on 15/8/21. 6 | // Copyright (c) 2015年 alibaba. All rights reserved. 7 | // 8 | 9 | #ifndef SecurityGuardSDKPro_SimulatorDetect_h 10 | #define SecurityGuardSDKPro_SimulatorDetect_h 11 | 12 | @interface SimulatorDetect : NSObject 13 | 14 | + (BOOL) isSimulator; 15 | 16 | @end 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenAtlasEncrypt/IOpenAtlasEncryptComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #import 6 | 7 | 8 | /** 9 | * 增强加解密算法 10 | */ 11 | @protocol IOpenAtlasEncryptComponent 12 | 13 | 14 | 15 | /** 16 | * 传入需要处理的数据,生成加密结果返回 17 | * 18 | * @param needProcessValue 需要加密的数据 19 | * 20 | * @param authCode SDK授权码 21 | * 22 | * @return 返回加密的字符串,失败时返回nil 23 | */ 24 | - (NSString*) atlasSafeEncrypt: (NSString*) needProcessValue 25 | authCode: (NSString*) authCode; 26 | 27 | 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenDataCollection/IOpenDataCollectionComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #import 6 | 7 | @protocol IOpenDataCollectionComponent 8 | 9 | /** 10 | * 设置用户昵称 11 | * @param nick, 用户昵称 12 | * @return YES, 设置后值发生改变, NO, 设置失败或值未发生改变 13 | */ 14 | - (BOOL) setNick:(NSString*) nick; 15 | 16 | 17 | /** 18 | * 获取用户昵称 19 | * 20 | * @return 用户昵称,获取失败返回nil 21 | */ 22 | - (NSString*) getNick; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenInitialize/IOpenInitializeComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #ifndef OpenSecurityGuardSDK_IOpenInitializeComponent_h 6 | #define OpenSecurityGuardSDK_IOpenInitializeComponent_h 7 | 8 | 9 | 10 | /** 11 | * 初始化component protocal 12 | */ 13 | @protocol IOpenInitializeComponent 14 | 15 | 16 | 17 | /** 18 | * 初始化接口 19 | * 20 | * @return 初始化结果 21 | */ 22 | - (NSInteger) initialize; 23 | 24 | 25 | 26 | @end 27 | 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenOpenSDK/IOpenOpenSDKComponent.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #import 4 | 5 | /** 6 | * User ID 的BizType 7 | * */ 8 | extern const unsigned char BIZ_UID[]; 9 | 10 | /** 11 | * Item ID 的BizType 12 | * */ 13 | extern const unsigned char BIZ_IID[]; 14 | 15 | /** 16 | * Trade ID 的BizType 17 | * */ 18 | extern const unsigned char BIZ_TID[]; 19 | 20 | 21 | @protocol IOpenOpenSDKComponent 22 | /** 23 | * 分析 Open ID 24 | * 25 | * @param openId openId的数值 26 | * 27 | * @param appIdKey appId对应的key值 28 | * 29 | * @param saltKey salt对应的key值 30 | * 31 | * @param bizType 解析类型 32 | * 33 | * @param authCode SDK的授权码,不传或为空串,使用默认加密文件 34 | * 35 | * @return openId中包含的指定内容,传人非法参数时返回nil 36 | */ 37 | - (NSNumber*) analyzeOpenId:(NSString*) openId 38 | appIdKey: (NSString*) appIdKey 39 | saltKey: (NSString*) saltKey 40 | bizType: (NSData*) bizType 41 | authCode: (NSString*) authCode; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenSecureSignature/IOpenSecureSignatureComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #ifndef OpenSecurityGuardSDK_IOpenSecureSignatureComponent_h 6 | #define OpenSecurityGuardSDK_IOpenSecureSignatureComponent_h 7 | 8 | @class OpenSecurityGuardParamContext; 9 | 10 | 11 | 12 | /** 13 | * 签名接口 14 | */ 15 | @protocol IOpenSecureSignatureComponent 16 | 17 | 18 | 19 | /** 20 | * 发起签名请求 21 | * 22 | * @param paramContext 包含签名所需要参数的结构体对象 23 | * 24 | * @param authCode SDK的授权码,不传或为空串,使用默认加密文件 25 | * 26 | * @return 签名值,失败时返回nil 27 | */ 28 | - (NSString*) signRequest: (OpenSecurityGuardParamContext*) paramContext 29 | authCode: (NSString*) authCode; 30 | 31 | 32 | /* 33 | * 对cookie进行签名加密 34 | * 35 | * @param key 计算文件签名时用到的密钥所对应的key 36 | * @param data 需要签名加密的cookie数据 37 | */ 38 | - (NSString*) getSafeCookie: (NSString*) data 39 | secretKey: (NSString*) key 40 | authCode: (NSString*) authCode; 41 | 42 | @end 43 | 44 | 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenSecureSignature/OpenSecureSignatureDefine.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | /** 6 | * 签名调用中,OpenSecurityGuardParamContex中paramDict参数中使用到的key 7 | */ 8 | 9 | /** 10 | * 签名接口入参key,top, umid签名使用 11 | */ 12 | extern NSString* const OPEN_KEY_SIGN_INPUT; 13 | 14 | 15 | /** 16 | * seedkey,top 签名使用 17 | */ 18 | extern NSString* const OPEN_KEY_SIGN_SEEDKEY; 19 | 20 | /** 21 | * atlaskey,atlas 签名使用 22 | */ 23 | extern NSString* const OPEN_KEY_SIGN_ATLAS; 24 | 25 | /** 26 | * 签名调用中,OpenSecurityGuardParamContex中requestType参数中使用到的值 27 | */ 28 | 29 | /** 30 | * top签名 31 | */ 32 | extern NSInteger const OPEN_ENUM_SIGN_TOP; 33 | 34 | /** 35 | * umid签名 36 | */ 37 | extern NSInteger const OPEN_ENUM_SIGN_UMID; 38 | 39 | /** 40 | * 原始top签名(无seekKey) 41 | */ 42 | extern NSInteger const OPEN_ENUM_SIGN_TOP_OLD; 43 | 44 | /** 45 | * common hmac sha1签名 46 | */ 47 | extern NSInteger const OPEN_ENUM_SIGN_COMMON_HMAC_SHA1; 48 | 49 | /** 50 | * common md5签名 51 | */ 52 | extern NSInteger const OPEN_ENUM_SIGN_COMMON_MD5; 53 | 54 | /** 55 | * atlas签名 56 | */ 57 | extern NSInteger const OPEN_ENUM_SIGN_ATLAS; 58 | 59 | /** 60 | * 带模拟器检测功能的hmac-sha1签名 61 | */ 62 | extern NSInteger const OPEN_ENUM_SIGN_SIM_HMAC_SHA1; 63 | 64 | /** 65 | * Fast atlas签名 签名String长度50 66 | */ 67 | extern NSInteger const OPEN_ENUM_SIGN_ATLAS_FAST; 68 | 69 | /** 70 | * Fast atlas签名2 71 | */ 72 | extern NSInteger const OPEN_ENUM_SIGN_ATLAS_FAST2; 73 | 74 | 75 | /** 76 | * 无效签名类型 77 | */ 78 | extern NSInteger const OPEN_ENUM_SIGN_INVALID; -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenSecurityGuardParamContext.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #import 6 | 7 | /** 8 | * OpenSecuritGuardSDK的参数结构体 9 | */ 10 | @interface OpenSecurityGuardParamContext : NSObject 11 | 12 | 13 | 14 | /** 15 | * 应用当前使用的appkey 16 | */ 17 | @property (nonatomic, strong) NSString* appKey; 18 | 19 | 20 | 21 | /** 22 | * 调用接口的接口的类型标识,类型定义见各component的头文件定义 23 | */ 24 | @property (nonatomic, assign) NSInteger requestType; 25 | 26 | 27 | 28 | /** 29 | * 传入业务参数使用的dictionary,使用的key值见各component的头文件定义 30 | */ 31 | @property (nonatomic, strong) NSMutableDictionary* paramDict; 32 | 33 | 34 | 35 | /** 36 | * 根据传入的参数生成参数结构体对象 37 | * 38 | * @param appKey appkey,应用当前使用的appkey 39 | * @param paramDict 存储业务参数的dictionary对象 40 | * @param requestType 请求类型 41 | * 42 | * @return 生成的参数结构体对象, autorelease对象 43 | */ 44 | + (OpenSecurityGuardParamContext*) createParamContextWithAppKey: (NSString*) appKey 45 | paramDict: (NSDictionary*) paramDict 46 | requestType: (NSInteger) requestType; 47 | 48 | 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenSimulatorDetect/IOpenSimulatorDetectComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecurityGuardSDK version 2.3.0 3 | // 4 | 5 | #ifndef SecurityGuardSDK_IOpenSimulatorDetectComponent_h 6 | #define SecurityGuardSDK_IOpenSimulatorDetectComponent_h 7 | 8 | /** 9 | * 模拟器检测接口 10 | */ 11 | @protocol IOpenSimulatorDetectComponent 12 | 13 | /** 14 | * 判断当前设备是否是iOS模拟器 15 | */ 16 | - (BOOL) isSimulator; 17 | 18 | @end 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenStaticDataEncrypt/OpenStaticDataEncryptDefine.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #import 6 | 7 | /** 8 | * 静态加密与解密中使用加密算法 9 | */ 10 | 11 | 12 | /** 13 | * arcfour算法 14 | */ 15 | extern NSInteger const OPEN_ENUM_CIPHER_ARCFOUR; 16 | 17 | 18 | /** 19 | * aes128算法 20 | */ 21 | extern NSInteger const OPEN_ENUM_CIPHER_AES128; 22 | 23 | 24 | 25 | /** 26 | * aes192算法 27 | */ 28 | extern NSInteger const OPEN_ENUM_CIPHER_AES192; 29 | 30 | 31 | 32 | /** 33 | * aes256算法 34 | */ 35 | extern NSInteger const OPEN_ENUM_CIPHER_AES256; 36 | 37 | 38 | 39 | /** 40 | * 无效算法 41 | */ 42 | extern NSInteger const OPEN_ENUM_CIPHER_INVALID; -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenStaticDataStore/IOpenStaticDataStoreComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #ifndef OpenSecurityGuardSDK_IOpenStaticDataStoreComponent_h 6 | #define OpenSecurityGuardSDK_IOpenStaticDataStoreComponent_h 7 | 8 | 9 | 10 | /** 11 | * 静态解密接口 12 | */ 13 | @protocol IOpenStaticDataStoreComponent 14 | 15 | 16 | 17 | /** 18 | * 根据传入的key,返回key的种类,种类定义请见staticdatadefine.h 19 | * 20 | * @param key 要判断类型的key 21 | * 22 | * @param authCode SDK的授权码,不传或为空串,使用默认加密文件 23 | * 24 | * @return key的类型,定义请见staticdatadefine.h 25 | */ 26 | - (NSInteger) getKeyType: (NSString*) key 27 | authCode: (NSString*) authCode; 28 | 29 | 30 | 31 | /** 32 | * 根据index找到对应的appkey(index从0开始,按在无线保镖网站生成加密文件时填写的顺序排列) 33 | * 34 | * @param index key的顺序 35 | * 36 | * @param authCode SDK的授权码,不传或为空串,使用默认加密文件 37 | * 38 | * @return index对应的appkey,调用失败时返回nil 39 | */ 40 | - (NSString*) getAppKey: (NSNumber*) index 41 | authCode: (NSString*) authCode; 42 | 43 | 44 | 45 | /** 46 | * 根据key,找到对应的extradata 47 | * 48 | * @param key 目标extradata对应的key 49 | * 50 | * @param authCode SDK的授权码,不传或为空串,使用默认加密文件 51 | * 52 | * @return key对应的extradata,调用失败时返回nil 53 | */ 54 | - (NSString*) getExtraData: (NSString*) key 55 | authCode: (NSString*) authCode; 56 | 57 | 58 | 59 | @end 60 | 61 | 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenStaticDataStore/OpenStaticDataStoreDefine.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #import 6 | 7 | /** 8 | * getKeytype返回值的定义,详细含义请见接口文档或无线保镖sdk网站 9 | */ 10 | 11 | /** 12 | * appkey类型 13 | */ 14 | extern NSInteger const OPEN_ENUM_KEYTYPE_APPKEY; 15 | 16 | 17 | 18 | /** 19 | * security data类型 20 | */ 21 | extern NSInteger const OPEN_ENUM_KEYTYPE_SECURE_EXTRA; 22 | 23 | 24 | 25 | /** 26 | * extra data类型 27 | */ 28 | extern NSInteger const OPEN_ENUM_KEYTYPE_EXTRA_DATA; 29 | 30 | 31 | 32 | /** 33 | * 无效key类型 34 | */ 35 | extern NSInteger const OPEN_ENUM_KEYTYPE_INVALID; -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Headers/Open/OpenStaticKeyEncrypt/OpenStaticKeyEncryptDefine.h: -------------------------------------------------------------------------------- 1 | // 2 | // OpenSecurityGuardSDK version 2.1.0 3 | // 4 | 5 | #import 6 | 7 | /** 8 | * 安全凭证加解密模块使用加密算法 9 | */ 10 | 11 | 12 | 13 | /** 14 | * aes128算法 15 | */ 16 | extern NSInteger const OPEN_CIPHER_AES128; 17 | 18 | 19 | 20 | /** 21 | * aes192算法 22 | */ 23 | extern NSInteger const OPEN_CIPHER_AES192; 24 | 25 | 26 | 27 | /** 28 | * aes256算法 29 | */ 30 | extern NSInteger const OPEN_CIPHER_AES256; 31 | 32 | 33 | /** 34 | * 无效算法 35 | */ 36 | extern NSInteger const OPEN_CIPHER_INVALID; 37 | 38 | /** 39 | * 安全凭证加解密模块使用的错误码 40 | */ 41 | 42 | /** 43 | * seedSecret存储失败 44 | */ 45 | extern NSInteger const OPEN_SAVE_FAILED; 46 | 47 | 48 | 49 | /** 50 | * seedSecret覆盖成功 51 | */ 52 | extern NSInteger const OPEN_OVERRIDE_SUCCESS; 53 | 54 | 55 | 56 | /** 57 | * seedSecret存储成功 58 | */ 59 | extern NSInteger const OPEN_SAVE_SUCCESS; 60 | 61 | 62 | 63 | /** 64 | * 删除 seedSecret失败 65 | */ 66 | extern NSInteger const OPEN_REMOVE_FAILED; 67 | 68 | 69 | 70 | /** 71 | * 删除 seedSecret成功 72 | */ 73 | extern NSInteger const OPEN_REMOVE_SUCCESS; 74 | 75 | 76 | 77 | /** 78 | * 删除失败,没有此项 79 | */ 80 | extern NSInteger const OPEN_NO_SUCH_ITEM; -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | com.alimobilesec.SecurityGuardSDK 7 | CFBundleName 8 | SecurityGuardSDK 9 | CFBundleShortVersionString 10 | 5.1.94 11 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Frameworks/SecurityGuardSDK.framework/SecurityGuardSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/SecurityGuardSDK.framework/SecurityGuardSDK -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/NSDictionary+TUnionJson.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+Json.h 3 | // TUnion 4 | // 5 | // Created by HuXiaoNing on 16/8/5. 6 | // Copyright © 2016年 alimama. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSDictionary(TUnionJson) 12 | 13 | - (NSString *)TUnionconvertDictionaryToString:(NSError *)jsonError; 14 | 15 | - (NSString *)TUnionConvertDictionaryToString:(NSStringEncoding) encoding 16 | options:(NSJSONWritingOptions) opt 17 | jsonError:(NSError *)jsonError; 18 | @end 19 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/NSString+TUnionJson.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Json.h 3 | // TUnion 4 | // 5 | // Created by HuXiaoNing on 16/8/2. 6 | // Copyright © 2016年 alimama. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSString(TUnionJson) 12 | 13 | - (NSDictionary *)TUnionconvertStringToDictionary:(NSError *)jsonError; 14 | 15 | - (NSDictionary *)TUnionconvertStringToDictionary:(NSStringEncoding) encoding 16 | options:(NSJSONReadingOptions) opt 17 | jsonError:(NSError *)jsonError; 18 | 19 | - (NSString *)TUnionAddQueryStringParameter:(NSString *)key 20 | value:(NSString *)value; 21 | 22 | //对字符串编码,包含前面的http://都会被编码 23 | - (NSString*)encodeString; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/NSURL+TUnionString.h: -------------------------------------------------------------------------------- 1 | // 2 | // String.h 3 | // TUnionSDK 4 | // 5 | // Created by HuXiaoNing on 16/8/16. 6 | // Copyright © 2016年 alimama. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSURL(TUnionString) 12 | 13 | //根据给定的Url,生成NSUrl对象,支持中文 14 | + (instancetype)URLWithStringSupportPrcentEncoding:(NSString *)URLString; 15 | 16 | //取NSUrl中的Domain信息 17 | - (NSString *)tunionDomain; 18 | @end 19 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionABTestService.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionABTestService.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by HuXiaoNing on 2017/2/10. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #ifndef TUnionABTestService_h 10 | #define TUnionABTestService_h 11 | 12 | #import "TradeTypeDefine.h" 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | /* ABTest服务 */ 17 | @protocol TUnionABTestService 18 | 19 | - (TUnionABTestStatus)isSsoLoginServiceOn; 20 | 21 | - (TUnionABTestStatus)isJumpServiceOn; 22 | 23 | - (void)enable:(Boolean)enable; 24 | 25 | /* 用于检查ABTest服务是否可用, 如果返回为NO,可能的原因为:服务未成功初始化(请检查commonProtocol是否实现),或服务被强制降级 */ 26 | - (BOOL)getServiceStatus; 27 | 28 | /* 用于判断是否是TBPass的Url,如果返回YES,需要Load上一跳的URL,否则可能会导致跳转到首页的错误 */ 29 | - (BOOL)isTBPassUrl:(NSString *)url; 30 | 31 | - (NSString *)getCookieStr; 32 | 33 | 34 | @end 35 | 36 | NS_ASSUME_NONNULL_END 37 | 38 | #endif /* TUnionABTestService_h */ 39 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionCache.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionCache.h 3 | // bunny 4 | // 5 | // Created by knight on 16/8/6. 6 | // Copyright © 2016年 alimama. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TUnionCache : NSObject 12 | + (nonnull instancetype)sharedInstance; 13 | 14 | - (nonnull instancetype)initWithCostLimit:(NSInteger) costLimit 15 | countLimit:(NSInteger) countLimit 16 | name:(nullable NSString *) name; 17 | 18 | - (nonnull instancetype)initWithCostLimit:(NSInteger) costLimit 19 | countLimit:(NSInteger) countLimit; 20 | 21 | - (nullable id)objectForKey:(nonnull id)key; 22 | - (void)setObject:(nonnull id)obj forKey:(nonnull id)key; // 0 cost 23 | - (void)setObject:(nonnull id)obj forKey:(nonnull id)key cost:(NSUInteger)g; 24 | - (void)removeObjectForKey:(nonnull id)key; 25 | 26 | - (void)removeAllObjects; 27 | @end 28 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionCommonProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionCommonProtocol.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by HuXiaoNing on 2017/1/12. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #ifndef TUnionCommonProtocol_h 10 | #define TUnionCommonProtocol_h 11 | 12 | @protocol TUnionCommonProtocol 13 | 14 | - (NSString *)getUtdid; 15 | 16 | - (NSString *)getAppkey; 17 | 18 | - (NSString *)getAdzoneId; 19 | 20 | @end 21 | 22 | id getCommonInstance(); 23 | 24 | #endif /* TUnionCommonProtocol_h */ 25 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionMemCache.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionMemCache.h 3 | // bunny 4 | // 5 | // Created by knight on 16/8/6. 6 | // Copyright © 2016年 alimama. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TUnionMemCache : NSCache 12 | - (nullable id)objectForKey:(nonnull id)key; 13 | - (void)setObject:(nonnull id)obj forKey:(nonnull id)key; // 0 cost 14 | - (void)setObject:(nonnull id)obj forKey:(nonnull id)key cost:(NSUInteger)g; 15 | - (void)removeObjectForKey:(nonnull id)key; 16 | 17 | - (void)removeAllObjects; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionMtopRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionMtopRequest.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by HuXiaoNing on 2017/1/20. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TUnionMtopRequest : NSObject 12 | 13 | @property(nonnull, nonatomic, strong) NSString * api; 14 | @property(nonnull, nonatomic, strong) NSString * version; 15 | @property(nonatomic) BOOL needLogin; //默认值:NO 16 | @property(nonatomic) BOOL needAuth; //默认值:NO 17 | @property(nonatomic) BOOL needWUA; //是否需要人机识别,默认是NO 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionNetworkWrapper.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionNetworkWrapper.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by HuXiaoNing on 2017/2/23. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "TUnionNetworkProtocol.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface TUnionNetworkWrapper : NSObject 15 | 16 | + (void)sendAsyncConfigRequest:(NSDictionary * _Nullable) param 17 | success:(requestSuccess) success 18 | failed:(requestFailed) failed; 19 | 20 | + (void)sendAsyncConvertRequest:(NSDictionary * _Nullable) param 21 | success:(requestSuccess) success 22 | failed:(requestFailed) failed; 23 | 24 | + (void)sendAsyncTokenRequest:(NSDictionary * _Nullable)param 25 | success:(requestSuccess) success 26 | failed:(requestFailed) failed; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionTradeDeviceInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionDeviceInfo.h 3 | // bunny 4 | // 5 | // Created by knight on 16/8/5. 6 | // Copyright © 2016年 alimama. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface TUnionTradeDeviceInfo : NSObject 14 | 15 | + (NSString *)mcid; 16 | 17 | + (NSString *)deviceMode; 18 | 19 | + (NSString *)packageName; 20 | 21 | + (NSString *)sdkVersion; 22 | 23 | + (NSString *)appVersion; 24 | 25 | + (NSString *)OS; 26 | 27 | + (NSString *)aliApp; 28 | 29 | + (NSString *)rebuildCid; 30 | 31 | + (NSString *)getCid; 32 | 33 | + (void)setCookie:(NSString *__nonnull)cookieName cookieStr:(NSString *__nonnull)cookieStr; 34 | 35 | + (NSString *)getTUnionUserAgent; 36 | 37 | + (void)appendTUnionUserAgent; 38 | 39 | @end 40 | 41 | NS_ASSUME_NONNULL_END 42 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionTradeHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // Header.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by liufuyin on 2017/6/27. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #ifndef TUnionTradeHeader_h 10 | #define TUnionTradeHeader_h 11 | 12 | #import "TUnionTradeSDK.h" 13 | #import "TUnionABTestService.h" 14 | #import "TUnionTradeDeviceInfo.h" 15 | #import "NSURL+TUnionString.h" 16 | #import "TUnionUtProtocol.h" 17 | #import "TUnionCommonProtocol.h" 18 | #import "TUnionWebViewProtocol.h" 19 | #import "NSString+TUnionJson.h" 20 | #import "TUnionNetworkProtocol.h" 21 | #import "TUnionNetworkWrapper.h" 22 | #import "TradeTypeDefine.h" 23 | 24 | #endif /* Header_h */ 25 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionTradeSDK.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionTradeSDK.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by HuXiaoNing on 2017/1/10. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "TUnionWebViewProtocol.h" 11 | #import "TUnionUtProtocol.h" 12 | #import "TUnionNetworkProtocol.h" 13 | #import "TUnionABTestService.h" 14 | #import "TUnionCommonProtocol.h" 15 | 16 | 17 | @interface TUnionTradeSDK : NSObject 18 | 19 | + (instancetype) shareInstance; 20 | 21 | /* 获取转链服务实例 */ 22 | - (id)getConvertService; 23 | 24 | /* 获取ABTest配置实例 */ 25 | - (id)getABTestService; 26 | 27 | /* 获取TUnionSdk的UA */ 28 | + (NSString *)getTUnionUserAgent; 29 | 30 | + (NSString*)sdkVersion; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionUtProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionUtProtocol.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by HuXiaoNing on 2017/1/10. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #ifndef TUnionUtProtocol_h 10 | #define TUnionUtProtocol_h 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @protocol TUnionUtProtocol 15 | 16 | - (void)updateUserAccount:(NSString *)nick userid:(NSString *)userid; 17 | 18 | - (void)send:(NSString *)pageName controlName:(NSString *)ctrlName args:(nullable NSDictionary *)args; 19 | 20 | @end 21 | 22 | id getUtInstance(); 23 | 24 | NS_ASSUME_NONNULL_END 25 | 26 | #endif /* TUnionUtProtocol_h */ 27 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TUnionWebViewProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUnionWebViewProtocol.h 3 | // TUnionSDK 4 | // 5 | // Created by HuXiaoNing on 16/9/5. 6 | // Copyright © 2016年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | 10 | #ifndef TUnionWebViewProtocol_h 11 | #define TUnionWebViewProtocol_h 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @protocol TUnionWebViewProtocol 16 | 17 | @property (nullable, nonatomic, readonly, strong) NSURLRequest *request; 18 | 19 | - (void)reload; 20 | 21 | - (void)loadRequest:(NSURLRequest *)request; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | 27 | #endif /* TUnionWebViewProtocol_h */ 28 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Headers/TradeTypeDefine.h: -------------------------------------------------------------------------------- 1 | // 2 | // Header.h 3 | // TUnionTradeSDK 4 | // 5 | // Created by liufuyin on 2017/6/30. 6 | // Copyright © 2017年 HuXiaoNing. All rights reserved. 7 | // 8 | 9 | #ifndef TradeTypeDefine_h 10 | #define TradeTypeDefine_h 11 | 12 | 13 | typedef NS_ENUM(NSUInteger, TUnionABTestStatus) { 14 | TUNION_ABTEST_INVALID = 1, //没有配置abtest 15 | TUNION_ABTEST_YES = 2, //ABTest配置为true,表示强制手淘跳转 16 | TUNION_ABTEST_NO = 3 //ABTest配置为false,表示强制H5跳转 17 | }; 18 | 19 | typedef NS_ENUM(NSUInteger, TUnionJumpPageType) { 20 | JUMP_WITH_H5 = 1, //用H5进行页面跳转 21 | JUMP_WITH_NATIVE = 2, //唤起手淘进行页面跳转 22 | JUMP_WITH_BROWSER = 3 //用系统浏览器进行跳转 23 | }; 24 | 25 | 26 | #endif /* Header_h */ 27 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 16E195 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | TUnionTradeSDK 11 | CFBundleIdentifier 12 | com.taobao.tuniontradelib 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | TUnionTradeSDK 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.3.1-SNAPSHOT 21 | CFBundleSupportedPlatforms 22 | 23 | iPhoneOS 24 | 25 | CFBundleVersion 26 | 1 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 14E8301 31 | DTPlatformName 32 | iphoneos 33 | DTPlatformVersion 34 | 10.3 35 | DTSDKBuild 36 | 14E8301 37 | DTSDKName 38 | iphoneos10.3 39 | DTXcode 40 | 0833 41 | DTXcodeBuild 42 | 8E3004b 43 | MinimumOSVersion 44 | 7.0 45 | UIDeviceFamily 46 | 47 | 1 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /ios/Frameworks/TUnionTradeSDK.framework/TUnionTradeSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/TUnionTradeSDK.framework/TUnionTradeSDK -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/UTDID: -------------------------------------------------------------------------------- 1 | Versions/Current/UTDID -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/Versions/A/Headers/AidProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // AidProtocol.h 3 | // UtdidSDK 4 | // 5 | // Created by ALLEN on 14-12-22. 6 | // Copyright (c) 2014年 Alvin. All rights reserved. 7 | // 8 | 9 | #ifndef AidProtocol_h 10 | #define AidProtocol_h 11 | 12 | #define EVENT_REQUEST_STARTED 1000 13 | #define EVENT_REQUEST_SUCCESS 1001 14 | #define EVENT_REQUEST_FAILED 1002 15 | #define EVENT_NETWORK_ERROR 1003 16 | 17 | @protocol AidProtocolDelegate 18 | @required 19 | - (void) onAidEventChanged:(NSInteger)eventId 20 | aid:(NSString *)aid; 21 | @end 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/Versions/A/Headers/UTDevice.h: -------------------------------------------------------------------------------- 1 | // 2 | // UTDevice.h 3 | // 4 | // 5 | // Created by Alvin on 4/21/13. 6 | // 7 | // 设备信息的分装类:sdk合作开发需要用这个类提供的设备信息接口 8 | 9 | // Version:utdid4all-1.1.0 10 | 11 | #ifndef UTDIDDevice_h 12 | #define UTDIDDevice_h 13 | 14 | #import "AidProtocol.h" 15 | 16 | @interface UTDevice : NSObject 17 | 18 | /** 19 | * @brief 获取SDK生成的设备唯一标识. 20 | * 21 | * @warning 调用说明:这个设备唯一标识是持久的,并且格式安全,iOS6以及以下,多应用互通. 22 | * 23 | * 调用顺序:utdid任意时刻都可以调用. 24 | * 25 | * @return 24字节的设备唯一标识. 26 | */ 27 | +(NSString *) utdid; 28 | 29 | /** 30 | * @brief 同步获得AID. 31 | * 32 | * @warning 调用说明:若本地端没有最新AID,将耗费远程通信时间并阻塞线程,建议将此调用置于非主线程,或使用{@link getAidAsync}异步获得AID。 33 | * 34 | * 调用顺序:aid任意时刻都可以调用. 35 | * 36 | * @return AID. 37 | */ 38 | +(NSString *) aid:(NSString *)appName 39 | token:(NSString *)token; 40 | 41 | /** 42 | * @brief 异步请求AID. 43 | * 44 | * @warning 调用说明:若本地端没有最新AID,将建立异步请求获得AID, 45 | * 46 | * 调用顺序:aidAsync任意时刻都可以调用. 47 | * 48 | * @return AID. 49 | */ 50 | +(void) aidAsync:(NSString *)appName 51 | token:(NSString *)token 52 | aidDelegate:(id)aidDelegate; 53 | 54 | @end 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/UTDID.framework/Versions/A/Resources/Info.plist -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/Versions/A/UTDID: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/UTDID.framework/Versions/A/UTDID -------------------------------------------------------------------------------- /ios/Frameworks/UTDID.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/UTMini: -------------------------------------------------------------------------------- 1 | Versions/Current/UTMini -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitor.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorSDK.h 3 | // AppMonitorSDK 4 | // 5 | // Created by junzhan on 14-9-9. 6 | // Copyright (c) 2014年 君展. All rights reserved. 7 | // 接口类 8 | 9 | #import 10 | #import "AppMonitorTable.h" 11 | #import "AppMonitorAlarm.h" 12 | #import "AppMonitorCounter.h" 13 | #import "AppMonitorStat.h" 14 | 15 | @interface AppMonitor : NSObject 16 | 17 | + (BOOL)isInit; 18 | 19 | + (instancetype)sharedInstance; 20 | 21 | /* 22 | * 设置采样率配置 23 | * @param jsonStr JSON串 24 | */ 25 | + (void)setSamplingConfigWithJson:(NSString *)jsonStr; 26 | 27 | /** 28 | * 关闭采样,紧开发调试用。线上版本请勿调用此API 29 | */ 30 | + (void)disableSample; 31 | 32 | /** 33 | * 设置采样率(默认是 50%) 值范围在[0~10000] (0表示不上传,10000表示100%上传,5000表示50%上传) 34 | */ 35 | + (void)setSampling:(NSString *)sampling; 36 | 37 | ////是否开启实时调试模式(与UT同步) 38 | + (BOOL)isTurnOnRealTimeDebug; 39 | + (NSString*)realTimeDebugUploadUrl; 40 | + (NSString*)realTimeDebugId; 41 | 42 | +(void) turnOnAppMonitorRealtimeDebug:(NSDictionary *) pDict; 43 | +(void) turnOffAppMonitorRealtimeDebug; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorBase.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorBase.h 3 | // AppMonitor 4 | // 5 | // Created by junzhan on 14-10-14. 6 | // Copyright (c) 2014年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface AppMonitorBase : NSObject 13 | /** 14 | * 日志写入UT间隔时间(单位秒).默认300秒, -1代表关闭. 会监听配置中心做变化 15 | */ 16 | + (void)setWriteLogInterval:(NSInteger)writeLogInterval; 17 | 18 | + (NSInteger)writeLogInterval; 19 | 20 | 21 | /** 22 | * 将appmonitor的日志立刻强制写入本地(UT),避免丢失。请不要私自调用,使用前咨询@君展 23 | */ 24 | + (void)flushAllLog; 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorCounter.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorCounter.h 3 | // AppMonitor 4 | // 5 | // Created by junzhan on 14-10-14. 6 | // Copyright (c) 2014年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppMonitorBase.h" 11 | 12 | @interface AppMonitorCounter : AppMonitorBase 13 | 14 | /** 15 | * 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。 16 | * 此接口数据量不应太大, 17 | * 18 | * @param page 操作发生所在的页面 19 | * @param monitorPoint 监控点名称 20 | * @param value 数值 21 | */ 22 | + (void)commitWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint value:(double)value; 23 | 24 | /** 25 | * 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。 26 | * 此接口数据量不应太大, 27 | * 28 | * @param page 操作发生所在的页面 29 | * @param monitorPoint 监控点名称 30 | * @param value 数值 31 | * @param arg 附加参数 32 | */ 33 | + (void)commitWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint value:(double)value arg:(NSString *)arg; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorDimension.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorDimension.h 3 | // AppMonitor 4 | // 5 | // Created by christ.yuj on 15/2/15. 6 | // Copyright (c) 2015年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /** 12 | * 监控维度 13 | * 14 | */ 15 | 16 | @interface AppMonitorDimension : NSObject 17 | 18 | @property (nonatomic, copy) NSString *name; 19 | @property (nonatomic, copy) NSString *constantValue; 20 | 21 | - (instancetype)initWithName:(NSString *)name; 22 | 23 | - (instancetype)initWithName:(NSString *)name constantValue:(NSString *)constantValue; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorDimensionSet.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorDimensionSet.h 3 | // AppMonitor 4 | // 5 | // Created by christ.yuj on 15/2/15. 6 | // Copyright (c) 2015年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppMonitorDimensionValueSet.h" 11 | #import "AppMonitorDimension.h" 12 | @interface AppMonitorDimensionSet : NSObject 13 | 14 | /** 15 | * 根据列表初始化指标集合对象 16 | * 17 | * @param array NSString类型的数组 string为Name; 18 | * @return 19 | */ 20 | 21 | + (instancetype)setWithArray:(NSArray *)array; 22 | 23 | - (BOOL)valid:(AppMonitorDimensionValueSet*)dimensionValues; 24 | /** 25 | * 增加维度 26 | * 27 | * @param dimension 维度对象 28 | * @return 29 | */ 30 | - (void)addDimension:(AppMonitorDimension *)dimension; 31 | 32 | /** 33 | * 增加维度对象 34 | * 35 | * @param name 维度名称 36 | * @return 37 | */ 38 | - (void)addDimensionWithName:(NSString *)name; 39 | /** 40 | * 获取维度对象 41 | * 42 | * @param name 维度名称 43 | * @return 44 | */ 45 | - (AppMonitorDimension *)dimensionForName:(NSString *)name; 46 | 47 | - (NSMutableOrderedSet *)dimensions; 48 | 49 | /** 50 | * 设置定值维度 51 | * 52 | * @param dimensionValues key为维度名称,value为内容 53 | */ 54 | - (void)setConstantValue:(AppMonitorDimensionValueSet *)dimensionValues; 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorDimensionValueSet.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorDimensionValueSet.h 3 | // AppMonitor 4 | // 5 | // Created by christ.yuj on 15/2/15. 6 | // Copyright (c) 2015年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | /** 11 | 其实就是个字典 12 | */ 13 | @interface AppMonitorDimensionValueSet : NSObject 14 | 15 | - (instancetype)initWithDictionary:(NSDictionary *)dictionary; 16 | 17 | /** 18 | * 存储维度值 19 | */ 20 | @property (nonatomic, strong) NSMutableDictionary *dict; 21 | 22 | - (void)setValue:(NSString *)value forName:(NSString *)name; 23 | - (BOOL)containValueForName:(NSString *)name; 24 | - (NSString *)valueForName:(NSString *)name; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorMeasure.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorMeasure.h 3 | // AppMonitor 4 | // 5 | // Created by christ.yuj on 15/2/15. 6 | // Copyright (c) 2015年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppMonitorMeasureValue.h" 11 | /** 12 | * 监控指标项 13 | * 14 | */ 15 | 16 | @interface AppMonitorMeasure : NSObject 17 | 18 | @property (nonatomic, copy) NSString *name; 19 | @property (nonatomic, strong) NSNumber *constantValue; 20 | @property (nonatomic, strong) NSNumber *min; 21 | @property (nonatomic, strong) NSNumber *max; 22 | 23 | - (instancetype)initWithName:(NSString *)name; 24 | - (instancetype)initWithName:(NSString *)name constantValue:(NSNumber *)constantValue; 25 | - (instancetype)initWithName:(NSString *)name constantValue:(NSNumber *)constantValue min:(NSNumber *)min max:(NSNumber *)max; 26 | - (void)setRangeWithMin:(NSNumber *)min max:(NSNumber *)max; 27 | - (BOOL)valid:(AppMonitorMeasureValue *)measureValue; 28 | @end 29 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorMeasureSet.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorMeasureSet.h 3 | // AppMonitor 4 | // 5 | // Created by christ.yuj on 15/2/15. 6 | // Copyright (c) 2015年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppMonitorMeasure.h" 11 | #import "AppMonitorMeasureValueSet.h" 12 | @interface AppMonitorMeasureSet : NSObject 13 | 14 | /** 15 | * 根据列表初始化指标集合对象 16 | * 17 | * @param array NSString类型的数组 string为Name; 18 | * @return 19 | */ 20 | 21 | + (instancetype)setWithArray:(NSArray *)array; 22 | 23 | - (BOOL)valid:(NSString*)module MonitorPoint:(NSString*)monitorpoint measureValues:(AppMonitorMeasureValueSet *)measureValues; 24 | /** 25 | * 增加指标 26 | * 27 | * @param measure 指标对象 28 | * @return 29 | */ 30 | - (void)addMeasure:(AppMonitorMeasure *)measure; 31 | 32 | /** 33 | * 增加指标对象 34 | * 35 | * @param name 指标名称 36 | * @return 37 | */ 38 | - (void)addMeasureWithName:(NSString *)name; 39 | /** 40 | * 获取指标对象 41 | * 42 | * @param name 指标名称 43 | * @return 44 | */ 45 | - (AppMonitorMeasure *)measureForName:(NSString *)name; 46 | 47 | /** 48 | * 获取指标对象的列表 49 | * 50 | * @return 51 | */ 52 | - (NSMutableOrderedSet *)measures; 53 | 54 | /** 55 | * 设置定值维度 56 | * 57 | * @param measureValues key为指标名称,value为内容 58 | */ 59 | - (void)setConstantValue:(AppMonitorMeasureValueSet *)measureValues; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorMeasureValue.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorMeasureValue.h 3 | // AppMonitor 4 | // 5 | // Created by christ.yuj on 15/2/15. 6 | // Copyright (c) 2015年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /** 12 | * 监控指标值 13 | * 14 | */ 15 | 16 | @interface AppMonitorMeasureValue : NSObject 17 | 18 | /** 19 | * 耗时操作是否已经完成 20 | */ 21 | @property (nonatomic, assign) BOOL isFinish; 22 | @property (nonatomic, strong) NSNumber * offset; 23 | @property (nonatomic, strong) NSNumber * value; 24 | 25 | - (instancetype)initWithValue:(NSNumber *)value; 26 | - (instancetype)initWithValue:(NSNumber *)value offset:(NSNumber *)offset; 27 | - (void)merge:(AppMonitorMeasureValue *)measureValue; 28 | //为了json序列化 29 | - (NSDictionary *)jsonDict; 30 | //json反序列化 31 | - (instancetype)initWithDictionary:(NSDictionary *)dictionary; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/AppMonitorMeasureValueSet.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppMonitorMeasureValueSet.h 3 | // AppMonitor 4 | // 5 | // Created by christ.yuj on 15/2/15. 6 | // Copyright (c) 2015年 君展. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppMonitorMeasureValue.h" 11 | @interface AppMonitorMeasureValueSet : NSObject 12 | 13 | 14 | - (instancetype)initWithDictionary:(NSDictionary *)dictionary; 15 | 16 | 17 | /** 18 | * 设置指标值 19 | * 20 | * @param name 21 | * @param value 22 | * @return 23 | */ 24 | - (void)setDoubleValue:(double)value forName:(NSString *)name; 25 | - (void)setValue:(AppMonitorMeasureValue *)value forName:(NSString *)name; 26 | - (BOOL)containValueForName:(NSString *)name; 27 | - (AppMonitorMeasureValue *)valueForName:(NSString *)name; 28 | /** 29 | * 合并指标 30 | * 31 | * @param measureValueSet 目标指标集合 32 | * 发现相同的name就对MeasureValue做加操作 33 | */ 34 | - (void)merge:(AppMonitorMeasureValueSet*)measureValueSet; 35 | 36 | - (NSDictionary *)jsonDict; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UT.h: -------------------------------------------------------------------------------- 1 | // 2 | // UT.h 3 | // miniUTSDK 4 | // 5 | // Created by 宋军 on 15/5/19. 6 | // Copyright (c) 2015年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface UT : NSObject 13 | 14 | ////=====================================h5&Native接口===================================== 15 | /** 16 | * @brief h5&Native打通 17 | * 18 | * @warning 调用说明:由windwave封装,供aplus_wap.js调用 19 | * 20 | * 21 | * 22 | * @param dataDict aplus_wap.js采集的h5信息都通过该字典传进来,该字典中必须有key(funcType) 23 | * 用来区分采集的是哪个事件信息,比如funcType=2001,则h5UT内部会调用 24 | * pageEnter来处理,funcType=2101,则调用ctrlClicked处理 25 | * 26 | */ 27 | +(void) h5UT:(NSDictionary *) dataDict view:(UIWebView *) pView viewController:(UIViewController *) pViewController; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTAnalytics.h: -------------------------------------------------------------------------------- 1 | // 2 | // UTAnalytics.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14-10-14. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "UTTracker.h" 11 | #import "UTIRequestAuthentication.h" 12 | #import "UTICrashCaughtListener.h" 13 | 14 | @interface UTAnalytics : NSObject 15 | 16 | +(UTAnalytics *) getInstance; 17 | 18 | + (void)setDailyEnvironment; 19 | 20 | - (void)setAppKey:(NSString *)appKey secret:(NSString *)secret; 21 | 22 | -(void) setAppVersion:(NSString *) pAppVersion; 23 | 24 | -(void) setChannel:(NSString *) pChannel; 25 | 26 | -(void) updateUserAccount:(NSString *) pNick userid:(NSString *) pUserId; 27 | 28 | -(void) userRegister:(NSString *) pUsernick; 29 | 30 | -(void) updateSessionProperties:(NSDictionary *) pDict; 31 | 32 | -(UTTracker *) getDefaultTracker; 33 | 34 | -(UTTracker *) getTracker:(NSString *) pTrackId; 35 | 36 | -(void) turnOnDebug; 37 | 38 | -(void) turnOnDev; 39 | 40 | // 以下接口功能已废弃,接口保留 41 | -(void) setRequestAuthentication:(id) pRequestAuth; 42 | 43 | - (void)onCrashHandler; 44 | 45 | -(void) turnOffCrashHandler; 46 | 47 | -(void) setCrashCaughtListener:(id) aListener; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTBaseRequestAuthentication.h: -------------------------------------------------------------------------------- 1 | // 2 | // BaseRequestAuthentication.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14-10-17. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "UTIRequestAuthentication.h" 11 | 12 | @interface UTBaseRequestAuthentication : NSObject 13 | 14 | -(id) initWithAppKey:(NSString *) pAppKey appSecret:(NSString *) pSecret; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTCustomHitBuilder.h: -------------------------------------------------------------------------------- 1 | // 2 | // UTCustomHitBuilder.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14-10-17. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import "UTHitBuilder.h" 10 | 11 | @interface UTCustomHitBuilder : UTHitBuilder 12 | 13 | -(void) setEventLabel:(NSString *) pEventId; 14 | 15 | -(void) setEventPage:(NSString *) pPageName; 16 | 17 | -(void) setDurationOnEvent:(long long) durationOnEvent; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTHitBuilder.h: -------------------------------------------------------------------------------- 1 | // 2 | // UTBaseMapBuilder.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14-10-14. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface UTHitBuilder : NSObject 13 | 14 | 15 | -(NSDictionary *) build; 16 | 17 | -(void) setProperty:(NSString *) pKey value:(NSString *) pValue; 18 | 19 | -(void) setProperties:(NSDictionary *) pPageProperties; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTICrashCaughtListener.h: -------------------------------------------------------------------------------- 1 | // 2 | // UTICrashCaughtListener.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14/10/28. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol UTICrashCaughtListener 12 | 13 | -(NSDictionary *) onCrashCaught:(NSString *) pCrashReason CallStack:(NSString *)callStack; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTIRequestAuthentication.h: -------------------------------------------------------------------------------- 1 | // 2 | // IRequestAuthentication.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14-10-17. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol UTIRequestAuthentication 12 | 13 | -(NSString *) getAppKey; 14 | 15 | -(NSString *) getSign:(NSString*) pToBeSignStr; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTOirginalCustomHitBuilder.h: -------------------------------------------------------------------------------- 1 | // 2 | // UTOirginalCustomHitBuilder.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14/10/28. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "UTHitBuilder.h" 11 | @interface UTOirginalCustomHitBuilder : UTHitBuilder 12 | 13 | -(void) setPageName:(NSString *) pPage; 14 | 15 | -(void) setEventId:(NSString *) pEventId; 16 | 17 | -(void) setArg1:(NSString *) pArg1; 18 | 19 | -(void) setArg2:(NSString *) pArg2; 20 | 21 | -(void) setArg3:(NSString *) pArg3; 22 | 23 | -(void) setArgs:(NSDictionary *) pArgs; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTPageHitBuilder.h: -------------------------------------------------------------------------------- 1 | // 2 | // UTMapBuilder.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14-10-14. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import "UTHitBuilder.h" 10 | 11 | @interface UTPageHitBuilder : UTHitBuilder 12 | 13 | -(void) setPageName:(NSString *) pPageName; 14 | 15 | -(void) setReferPage:(NSString *) pReferPageName; 16 | 17 | -(void) setDurationOnPage:(long long ) durationTimeOnPage; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Headers/UTSecuritySDKRequestAuthentication.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecuritySDKRequestAuthentication.h 3 | // miniUTInterface 4 | // 5 | // Created by 宋军 on 14-10-17. 6 | // Copyright (c) 2014年 ___SONGJUN___. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "UTIRequestAuthentication.h" 11 | 12 | @interface UTSecuritySDKRequestAuthentication : NSObject 13 | 14 | -(id) initWithAppKey:(NSString *) pAppKey; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/UTMini.framework/Versions/A/Resources/Info.plist -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/A/UTMini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Frameworks/UTMini.framework/Versions/A/UTMini -------------------------------------------------------------------------------- /ios/Frameworks/UTMini.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /ios/Resources/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /ios/Resources/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/back@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/NBResource.bundle/back@2x.png -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/NBResource.bundle/back@3x.png -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/NBResource.bundle/close@2x.png -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/close@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/NBResource.bundle/close@3x.png -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/NBResource.bundle/en.lproj/Root.strings -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/localConfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "group0": { 3 | "dataId": "com.alibaba.baichuan.nbcp.meta.default", 4 | "group": "1.0.0", 5 | "lastUpdate": "Jun 14, 2016 2:12:22 PM", 6 | "sign": "" 7 | }, 8 | "albbTradeConfig": { 9 | "isSyncForTaoke": "YES", 10 | "isForceH5": "NO", 11 | "isNeedAlipay": "YES", 12 | "loginDegarade": "NO", 13 | "double11OpenType":"0", 14 | "sampling":"10000" 15 | }, 16 | "group2": { 17 | "abc1": "agc1", 18 | "abc2": "agc2", 19 | "abc3": "agc3", 20 | "11111":"11111" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/urlConfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "Release": { 3 | "trade.tmallTradeItemUrlHost": "https://detail.m.tmall.com/item.htm", 4 | "trade.taobaoMobileTradeItemUrlHost": "https://h5.m.taobao.com/awp/core/detail.htm", 5 | "trade.myOrdersUrl": "https://h5.m.taobao.com/mlapp/olist.html", 6 | "trade.shopUrlHost": "https://shop.m.taobao.com/shop/shop_index.htm", 7 | "trade.cartUrl": "https://h5.m.taobao.com/mlapp/cart.html", 8 | "trade.taobaoHomeUrl": "https://h5.m.taobao.com", 9 | "trade.taobaoTradeItemMiniUrlHost": "https://h5.m.taobao.com/trade/detail.html", 10 | "trade.taobaoTradeItemUrlHost": "https://h5.m.taobao.com/cm/snap/index.html" 11 | }, 12 | "PreRelease": { 13 | }, 14 | "Daily": { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/whiteClose@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/NBResource.bundle/whiteClose@2x.png -------------------------------------------------------------------------------- /ios/Resources/NBResource.bundle/whiteClose@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenFlutter/nautilus/787250c0f02002697b6da058a8477159a607ae0f/ios/Resources/NBResource.bundle/whiteClose@3x.png -------------------------------------------------------------------------------- /ios/nautilus.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 3 | # 4 | Pod::Spec.new do |s| 5 | s.name = 'nautilus' 6 | s.version = '0.0.1' 7 | s.summary = 'A plugin for BaiChuanSDK.' 8 | s.description = <<-DESC 9 | A plugin for BaiChuanSDK. 10 | DESC 11 | s.homepage = 'http://example.com' 12 | s.license = { :file => '../LICENSE' } 13 | s.author = { 'Your Company' => 'email@example.com' } 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/Headers/**/*.h' 17 | s.dependency 'Flutter' 18 | 19 | s.vendored_frameworks ="Frameworks/*.framework" 20 | s.resource = "Resources/*.bundle" 21 | 22 | s.frameworks = "MobileCoreServices","AssetsLibrary","CoreMotion","ImageIO","CoreData","CoreLocation","Security","SystemConfiguration","CoreTelephony","CFNetwork","CoreGraphics","UIKit","Foundation" 23 | 24 | s.libraries = "z","stdc++","sqlite3.0" 25 | `` 26 | 27 | 28 | 29 | s.ios.deployment_target = '8.0' 30 | s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' } 31 | 32 | 33 | 34 | end 35 | 36 | -------------------------------------------------------------------------------- /lib/nautilus.dart: -------------------------------------------------------------------------------- 1 | library nautilus; 2 | export 'src/login/login_service.dart'; 3 | export 'src/trade/trade_sdk.dart'; 4 | export 'src/nautilus_iml.dart'; -------------------------------------------------------------------------------- /lib/src/login/login_service.dart: -------------------------------------------------------------------------------- 1 | class User { 2 | final String avatarUrl; 3 | final String nick; 4 | final String openId; 5 | final String openSid; 6 | final String topAccessToken; 7 | final String topAuthCode; 8 | 9 | 10 | User({this.avatarUrl, this.nick, this.openId, this.openSid,this.topAccessToken,this.topAuthCode}); 11 | } 12 | 13 | class LoginResult { 14 | final String platform; 15 | final bool isSuccessful; 16 | final int errorCode; 17 | final String errorMessage; 18 | final User user; 19 | 20 | LoginResult( 21 | {this.platform, 22 | this.isSuccessful, 23 | this.errorCode, 24 | this.errorMessage, 25 | this.user}); 26 | } 27 | 28 | -------------------------------------------------------------------------------- /lib/src/trade/trade_sdk.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | 3 | class InitAsyncResult { 4 | final String platform; 5 | final bool isSuccessful; 6 | final int errorCode; 7 | final String errorMessage; 8 | 9 | InitAsyncResult( 10 | {this.platform, this.isSuccessful, this.errorCode, this.errorMessage}); 11 | } 12 | 13 | class TaoKeParams { 14 | final String pid; 15 | final String subPid; 16 | final String unionId; 17 | final String adzoneId; 18 | final Map extParams; 19 | 20 | TaoKeParams( 21 | {@required this.pid, 22 | @required this.subPid, 23 | @required this.unionId, 24 | @required this.adzoneId, 25 | this.extParams}); 26 | } 27 | 28 | class TradeResult { 29 | final int openResultCode; 30 | final String platform; 31 | final bool isSuccessful; 32 | final int errorCode; 33 | final String errorMessage; 34 | final TradeResultType tradeResultType; 35 | final List paySuccessOrders; 36 | final List payFailedOrders; 37 | 38 | TradeResult( 39 | {this.openResultCode, 40 | this.platform, 41 | this.isSuccessful, 42 | this.errorCode, 43 | this.errorMessage, 44 | this.tradeResultType, 45 | this.paySuccessOrders, 46 | this.payFailedOrders}); 47 | } 48 | 49 | enum OpenType { AUTO, NATIVE, H5 } 50 | 51 | enum OpenNativeFailedMode { JUMP_H5, JUMP_DOWNLOAD, JUMP_BROWSER, NONE } 52 | 53 | enum TradeResultType { PaySuccess, AddCard } 54 | --------------------------------------------------------------------------------