Skip to content

Commit

Permalink
Fix ios privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed May 17, 2022
1 parent c0c20e1 commit 0b9f91a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ios/Modules/SdkModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class AMapSdk: NSObject {

@objc func initSDK(_ apiKey: String) {
AMapServices.shared().apiKey = apiKey
MAMapView.updatePrivacyAgree(AMapPrivacyAgreeStatus.didAgree)
MAMapView.updatePrivacyShow(AMapPrivacyShowStatus.didShow, privacyInfo: AMapPrivacyInfoStatus.didContain)
}

@objc func getVersion(_ resolve: RCTPromiseResolveBlock, reject _: RCTPromiseRejectBlock) {
Expand Down

0 comments on commit 0b9f91a

Please sign in to comment.