iOS Universal Links
This commit is contained in:
parent
e6dc6cd2f9
commit
e32df54aea
76
README.md
76
README.md
@ -83,86 +83,14 @@ iOS 9系统策略更新,限制了http协议的访问,此外应用需要在
|
|||||||
<string>sinaweibohd</string>
|
<string>sinaweibohd</string>
|
||||||
<string>weibosdk</string>
|
<string>weibosdk</string>
|
||||||
<string>weibosdk2.5</string>
|
<string>weibosdk2.5</string>
|
||||||
|
<string>weibosdk3.3</string>
|
||||||
</array>
|
</array>
|
||||||
<key>NSAppTransportSecurity</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSAllowsArbitraryLoads</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSExceptionDomains</key>
|
|
||||||
<dict>
|
|
||||||
<key>sina.cn</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSIncludesSubdomains</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSExceptionMinimumTLSVersion</key>
|
|
||||||
<string>TLSv1.0</string>
|
|
||||||
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>weibo.cn</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSIncludesSubdomains</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSExceptionMinimumTLSVersion</key>
|
|
||||||
<string>TLSv1.0</string>
|
|
||||||
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>weibo.com</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSIncludesSubdomains</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSExceptionMinimumTLSVersion</key>
|
|
||||||
<string>TLSv1.0</string>
|
|
||||||
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>sinaimg.cn</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSIncludesSubdomains</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSExceptionMinimumTLSVersion</key>
|
|
||||||
<string>TLSv1.0</string>
|
|
||||||
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>sinajs.cn</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSIncludesSubdomains</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSExceptionMinimumTLSVersion</key>
|
|
||||||
<string>TLSv1.0</string>
|
|
||||||
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
<key>sina.com.cn</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSIncludesSubdomains</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSExceptionMinimumTLSVersion</key>
|
|
||||||
<string>TLSv1.0</string>
|
|
||||||
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
```
|
```
|
||||||
## flutter
|
## flutter
|
||||||
|
|
||||||
* break change
|
* break change
|
||||||
* 2.0.0: nullsafety & 不再支持 Android embedding v1 & Weibo 单例
|
* 2.0.0: nullsafety & 不再支持 Android embedding v1 & Weibo 单例
|
||||||
|
* 2.0.2: iOS Universal Links
|
||||||
|
|
||||||
* snapshot
|
* snapshot
|
||||||
|
|
||||||
|
@ -147,6 +147,10 @@ static NSString *const ARGUMENT_KEY_RESULT_EXPIRESIN = @"expiresIn";
|
|||||||
return [WeiboSDK handleOpenURL:url delegate:self];
|
return [WeiboSDK handleOpenURL:url delegate:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nonnull))restorationHandler {
|
||||||
|
return [WeiboSDK handleOpenUniversalLink:userActivity delegate:self];;
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark - WeiboSDKDelegate
|
#pragma mark - WeiboSDKDelegate
|
||||||
|
|
||||||
- (void)didReceiveWeiboRequest:(WBBaseRequest *)request {
|
- (void)didReceiveWeiboRequest:(WBBaseRequest *)request {
|
||||||
|
Loading…
Reference in New Issue
Block a user