This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pods for HMSAnalyticsKit | |
pod 'HiAnalytics' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key><true/> | |
</dict> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HiAnalytics.onEvent("TestEvent", setParams: ["Q1": "A1", "Q2": "A2"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pod 'ScanKitFrameWork' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>NSCameraUsageDescription</key> | |
<string>App needs your consent to access the camera</string> | |
<key>NSPhotoLibraryUsageDescription</key> | |
<string>App needs your consent to access the album</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ScanKitFrameWork |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let options = HmsScanOptions(scanFormatType: 0, photo: false) | |
if let hmsDefaultScanViewController = HmsDefaultScanViewController(defaultScanWithFormatType: options) { | |
hmsDefaultScanViewController.defaultScanDelegate = self | |
self.view.addSubview(hmsDefaultScanViewController.view) | |
self.addChild(hmsDefaultScanViewController) | |
self.didMove(toParent: hmsDefaultScanViewController) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DefaultView Delegate | |
extension ViewController: DefaultScanDelegate { | |
func defaultScanImagePickerDelegate(for image: UIImage!) { | |
let dic = HmsBitMap.bitMap(for: image, with: HmsScanOptions(scanFormatType: 0, photo: true)) | |
parseResult(dic) | |
} | |
func defaultScanDelegate(forDicResult resultDic: [AnyHashable : Any]!) { | |
parseResult(resultDic) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func parseResult(_ dictionary: [AnyHashable : Any]?) { | |
if let dictionary = dictionary, let text = dictionary["text"] { | |
print("*** Text: \(text)") | |
if let formatValue = dictionary["formatValue"] { | |
print("*** CodeFormat: \(formatValue)") | |
} | |
if let sceneType = dictionary["sceneType"] { | |
print("*** ResultType: \(sceneType)") | |
} | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pod 'AGConnectCore' | |
pod 'AGConnectAuth' |
OlderNewer