├── image ├── 1.png └── 2.png ├── objective-c ├── hmsAnalyticsKitDemo │ ├── Assets.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Toast │ │ ├── HToast.h │ │ ├── HToastView.h │ │ ├── HToast.m │ │ └── HToastView.m │ ├── ViewController.h │ ├── AppDelegate.h │ ├── MainViewController.h │ ├── SettingViewController.h │ ├── SceneDelegate.h │ ├── main.m │ ├── SettingsViewController.h │ ├── PrefixHeader.pch │ ├── SettingViewController.m │ ├── Info.plist │ ├── AppDelegate.m │ ├── ViewController.m │ ├── SettingsViewController.m │ ├── SceneDelegate.m │ ├── MainViewController.m │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ └── SettingsViewController.xib ├── hmsAnalyticsKitDemo.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcuserdata │ │ │ └── cbg_bigdata.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcuserdata │ │ └── cbg_bigdata.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── hmsAnalyticsKitDemo.xcscheme ├── hmsAnalyticsKitDemo.xcworkspace │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── contents.xcworkspacedata ├── Podfile ├── hmsAnalyticsKitDemoTests │ ├── Info.plist │ └── hmsAnalyticsKitDemoTests.m └── hmsAnalyticsKitDemoUITests │ ├── Info.plist │ └── hmsAnalyticsKitDemoUITests.m ├── swift ├── hmsAnalyticsKit_Swift_Demo │ ├── Assets.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Toast │ │ ├── HToast.h │ │ ├── HToastView.h │ │ ├── HToast.m │ │ └── HToastView.m │ ├── hmsAnalyticsKit_Swift_Demo-Bridging-Header.h │ ├── SettingViewController.swift │ ├── Info.plist │ ├── AppDelegate.swift │ ├── SceneDelegate.swift │ ├── MainViewController.swift │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── hmsAnalyticsKit_Swift_Demo.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── hmsAnalyticsKit_Swift_Demo.xcscheme │ └── project.pbxproj ├── hmsAnalyticsKit_Swift_Demo.xcworkspace │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── contents.xcworkspacedata ├── podfile ├── hmsAnalyticsKit_Swift_DemoTests │ ├── Info.plist │ └── hmsAnalyticsKit_Swift_DemoTests.swift └── hmsAnalyticsKit_Swift_DemoUITests │ ├── Info.plist │ └── hmsAnalyticsKit_Swift_DemoUITests.swift ├── README_ZH.md ├── README.md └── LICENSE /image/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HMS-Core/hms-analytics-demo-ios/HEAD/image/1.png -------------------------------------------------------------------------------- /image/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HMS-Core/hms-analytics-demo-ios/HEAD/image/2.png -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo.xcodeproj/project.xcworkspace/xcuserdata/cbg_bigdata.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HMS-Core/hms-analytics-demo-ios/HEAD/objective-c/hmsAnalyticsKitDemo.xcodeproj/project.xcworkspace/xcuserdata/cbg_bigdata.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Toast/HToast.h: -------------------------------------------------------------------------------- 1 | // 2 | // HToast.h 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface HToast : NSObject 13 | + (void)showMessage:(NSString *_Nullable)message; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Toast/HToast.h: -------------------------------------------------------------------------------- 1 | // 2 | // HToast.h 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface HToast : NSObject 13 | + (void)showMessage:(NSString *_Nullable)message; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Toast/HToastView.h: -------------------------------------------------------------------------------- 1 | // 2 | // HToastView.h 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface HToastView : UIView 13 | + (instancetype)initWithMessage:(NSString * _Nullable)message; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Toast/HToastView.h: -------------------------------------------------------------------------------- 1 | // 2 | // HToastView.h 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface HToastView : UIView 13 | + (instancetype)initWithMessage:(NSString * _Nullable)message; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /objective-c/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'hmsAnalyticsKitDemo' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for hmsAnalyticsKitDemo 9 | pod 'HiAnalytics' 10 | target 'hmsAnalyticsKitDemoUITests' do 11 | # Pods for testing 12 | end 13 | 14 | end 15 | -------------------------------------------------------------------------------- /swift/podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'hmsAnalyticsKit_Swift_Demo' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for hmsAnalyticsKit_Swift_Demo 9 | pod 'HiAnalytics' 10 | target 'hmsAnalyticsKit_Swift_DemoUITests' do 11 | # Pods for testing 12 | end 13 | 14 | end 15 | 16 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo.xcodeproj/xcuserdata/cbg_bigdata.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | hmsAnalyticsKitDemo.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 6 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @interface ViewController : UIViewController 20 | 21 | 22 | @end 23 | 24 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_DemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_DemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @interface AppDelegate : UIResponder 20 | 21 | @property(nonatomic, strong) UIWindow * window; 22 | @end 23 | 24 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/MainViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | NS_ASSUME_NONNULL_BEGIN 20 | 21 | @interface MainViewController : UIViewController 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/SettingViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | NS_ASSUME_NONNULL_BEGIN 20 | 21 | @interface SettingViewController : UIViewController 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/SceneDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @interface SceneDelegate : UIResponder 20 | 21 | @property (strong, nonatomic) UIWindow * window; 22 | 23 | @end 24 | 25 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // hmsAnalyticsKitDemo 4 | // 5 | // Created by cbg_bigdata on 2020/5/21. 6 | // Copyright © 2020 cbg_bigdata. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | NSString * appDelegateClassName; 14 | @autoreleasepool { 15 | // Setup code that might create autoreleased objects goes here. 16 | appDelegateClassName = NSStringFromClass([AppDelegate class]); 17 | } 18 | return UIApplicationMain(argc, argv, nil, appDelegateClassName); 19 | } 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/SettingsViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | NS_ASSUME_NONNULL_BEGIN 20 | 21 | @interface SettingsViewController : UIViewController 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/hmsAnalyticsKit_Swift_Demo-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #ifndef hmsAnalyticsKit_Swift_Demo_Bridging_Header_h 18 | #define hmsAnalyticsKit_Swift_Demo_Bridging_Header_h 19 | 20 | #import 21 | #import "HToast.h" 22 | 23 | #endif /* hmsAnalyticsKit_Swift_Demo_Bridging_Header_h */ 24 | 25 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/PrefixHeader.pch: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #ifndef PrefixHeader_pch 18 | #define PrefixHeader_pch 19 | 20 | // Include any system framework and library headers here that should be included in all compilation units. 21 | // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file. 22 | 23 | #import 24 | #import "HToast.h" 25 | 26 | #endif /* PrefixHeader_pch */ 27 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemoTests/hmsAnalyticsKitDemoTests.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @interface hmsAnalyticsKitDemoTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation hmsAnalyticsKitDemoTests 24 | 25 | - (void)setUp { 26 | // Put setup code here. This method is called before the invocation of each test method in the class. 27 | } 28 | 29 | - (void)tearDown { 30 | // Put teardown code here. This method is called after the invocation of each test method in the class. 31 | } 32 | 33 | - (void)testExample { 34 | // This is an example of a functional test case. 35 | // Use XCTAssert and related functions to verify your tests produce the correct results. 36 | } 37 | 38 | - (void)testPerformanceExample { 39 | // This is an example of a performance test case. 40 | [self measureBlock:^{ 41 | // Put the code you want to measure the time of here. 42 | }]; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/SettingViewController.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import "SettingViewController.h" 18 | 19 | @interface SettingViewController () 20 | @property (weak, nonatomic) IBOutlet UITextField *textField; 21 | @end 22 | 23 | @implementation SettingViewController 24 | 25 | - (void)viewDidLoad { 26 | [super viewDidLoad]; 27 | } 28 | 29 | - (IBAction)saveBtnClick:(UIButton *)sender { 30 | [self.textField resignFirstResponder]; 31 | if (self.textField.text.length<=0) { 32 | [HToast showMessage:@"Please enter your favorite sport."]; 33 | return; 34 | } 35 | 36 | // TODO: save favorite sport by user setUserProperty 37 | [HiAnalytics setUserProfile:@"favor_sport" setValue:self.textField.text]; 38 | [HToast showMessage:@"Set user profile success."]; 39 | } 40 | 41 | 42 | - (IBAction)clearCacheBtnClick:(UIButton *)sender { 43 | // TODO: clear cached dada 44 | [HiAnalytics clearCachedData]; 45 | [HToast showMessage:@"Clear cache success."]; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/SettingViewController.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | import UIKit 18 | 19 | class SettingViewController: UIViewController { 20 | 21 | @IBOutlet weak var textField: UITextField! 22 | 23 | override func viewDidLoad() { 24 | super.viewDidLoad() 25 | } 26 | 27 | @IBAction func saveBtnClick(_ sender: UIButton) { 28 | self.textField.resignFirstResponder(); 29 | if self.textField.text!.count <= 0 { 30 | HToast.showMessage("Please enter your favorite sport."); 31 | return; 32 | } 33 | 34 | // TODO: save favorite sport by user setUserProperty 35 | HiAnalytics.setUserProfile("favor_sport", setValue: self.textField.text!); 36 | HToast.showMessage("Set user profile success."); 37 | } 38 | 39 | @IBAction func clearCacheBtnClick(_ sender: UIButton) { 40 | // TODO: clear cached dada 41 | HiAnalytics.clearCachedData(); 42 | HToast.showMessage("Clear cache success."); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_DemoTests/hmsAnalyticsKit_Swift_DemoTests.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | import XCTest 18 | @testable import hmsAnalyticsKit_Swift_Demo 19 | 20 | class hmsAnalyticsKit_Swift_DemoTests: XCTestCase { 21 | 22 | override func setUpWithError() throws { 23 | // Put setup code here. This method is called before the invocation of each test method in the class. 24 | } 25 | 26 | override func tearDownWithError() throws { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | } 29 | 30 | func testExample() throws { 31 | // This is an example of a functional test case. 32 | // Use XCTAssert and related functions to verify your tests produce the correct results. 33 | } 34 | 35 | func testPerformanceExample() throws { 36 | // This is an example of a performance test case. 37 | self.measure { 38 | // Put the code you want to measure the time of here. 39 | } 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Toast/HToast.m: -------------------------------------------------------------------------------- 1 | // 2 | // HToast.m 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import "HToast.h" 9 | #import "HToastView.h" 10 | @interface HToast() 11 | @property (nonatomic, strong) HToastView *toastView; 12 | @end 13 | 14 | @implementation HToast 15 | 16 | + (instancetype)sharedInstance { 17 | static HToast *_instance; 18 | static dispatch_once_t onceToken; 19 | dispatch_once(&onceToken, ^{ 20 | _instance = [[self alloc] init]; 21 | }); 22 | return _instance; 23 | } 24 | 25 | + (void)showMessage:(NSString *_Nullable)message { 26 | [[self sharedInstance]showMessage:message]; 27 | } 28 | 29 | - (void)showMessage:(NSString *_Nullable)message { 30 | if (self.toastView.superview != nil || self.toastView) { 31 | [self hide]; 32 | } 33 | self.toastView = [HToastView initWithMessage:message]; 34 | self.toastView.alpha = 0; 35 | UIWindow *keyWindow = [self getKeyWindow]; 36 | [keyWindow addSubview:self.toastView]; 37 | [UIView animateWithDuration:0.2 animations:^{ 38 | self.toastView.alpha = 1; 39 | }]; 40 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 41 | [self hide]; 42 | }); 43 | } 44 | 45 | - (void)hide { 46 | [self.toastView removeFromSuperview]; 47 | self.toastView = nil; 48 | } 49 | 50 | - (UIWindow *)getKeyWindow { 51 | UIWindow *window = nil; 52 | if (@available(iOS 13.0, *)) { 53 | for (UIWindowScene* windowScene in [UIApplication sharedApplication].connectedScenes) { 54 | if (windowScene.activationState == UISceneActivationStateForegroundActive) { 55 | window = windowScene.windows.lastObject; 56 | } 57 | } 58 | return window; 59 | } 60 | return [UIApplication sharedApplication].keyWindow; 61 | } 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Toast/HToast.m: -------------------------------------------------------------------------------- 1 | // 2 | // HToast.m 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import "HToast.h" 9 | #import "HToastView.h" 10 | @interface HToast() 11 | @property (nonatomic, strong) HToastView *toastView; 12 | @end 13 | 14 | @implementation HToast 15 | 16 | + (instancetype)sharedInstance { 17 | static HToast *_instance; 18 | static dispatch_once_t onceToken; 19 | dispatch_once(&onceToken, ^{ 20 | _instance = [[self alloc] init]; 21 | }); 22 | return _instance; 23 | } 24 | 25 | + (void)showMessage:(NSString *_Nullable)message { 26 | [[self sharedInstance]showMessage:message]; 27 | } 28 | 29 | - (void)showMessage:(NSString *_Nullable)message { 30 | if (self.toastView.superview != nil || self.toastView) { 31 | [self hide]; 32 | } 33 | self.toastView = [HToastView initWithMessage:message]; 34 | self.toastView.alpha = 0; 35 | UIWindow *keyWindow = [self getKeyWindow]; 36 | [keyWindow addSubview:self.toastView]; 37 | [UIView animateWithDuration:0.2 animations:^{ 38 | self.toastView.alpha = 1; 39 | }]; 40 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 41 | [self hide]; 42 | }); 43 | } 44 | 45 | - (void)hide { 46 | [self.toastView removeFromSuperview]; 47 | self.toastView = nil; 48 | } 49 | 50 | - (UIWindow *)getKeyWindow { 51 | UIWindow *window = nil; 52 | if (@available(iOS 13.0, *)) { 53 | for (UIWindowScene* windowScene in [UIApplication sharedApplication].connectedScenes) { 54 | if (windowScene.activationState == UISceneActivationStateForegroundActive) { 55 | window = windowScene.windows.lastObject; 56 | } 57 | } 58 | return window; 59 | } 60 | return [UIApplication sharedApplication].keyWindow; 61 | } 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemoUITests/hmsAnalyticsKitDemoUITests.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @interface hmsAnalyticsKitDemoUITests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation hmsAnalyticsKitDemoUITests 24 | 25 | - (void)setUp { 26 | // Put setup code here. This method is called before the invocation of each test method in the class. 27 | 28 | // In UI tests it is usually best to stop immediately when a failure occurs. 29 | self.continueAfterFailure = NO; 30 | 31 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 32 | } 33 | 34 | - (void)tearDown { 35 | // Put teardown code here. This method is called after the invocation of each test method in the class. 36 | } 37 | 38 | - (void)testExample { 39 | // UI tests must launch the application that they test. 40 | XCUIApplication *app = [[XCUIApplication alloc] init]; 41 | [app launch]; 42 | 43 | // Use recording to get started writing UI tests. 44 | // Use XCTAssert and related functions to verify your tests produce the correct results. 45 | } 46 | 47 | - (void)testLaunchPerformance { 48 | if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, *)) { 49 | // This measures how long it takes to launch your application. 50 | [self measureWithMetrics:@[XCTOSSignpostMetric.applicationLaunchMetric] block:^{ 51 | [[[XCUIApplication alloc] init] launch]; 52 | }]; 53 | } 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_DemoUITests/hmsAnalyticsKit_Swift_DemoUITests.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | import XCTest 18 | 19 | class hmsAnalyticsKit_Swift_DemoUITests: XCTestCase { 20 | 21 | override func setUpWithError() throws { 22 | // Put setup code here. This method is called before the invocation of each test method in the class. 23 | 24 | // In UI tests it is usually best to stop immediately when a failure occurs. 25 | continueAfterFailure = false 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | override func tearDownWithError() throws { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | } 33 | 34 | func testExample() throws { 35 | // UI tests must launch the application that they test. 36 | let app = XCUIApplication() 37 | app.launch() 38 | 39 | // Use recording to get started writing UI tests. 40 | // Use XCTAssert and related functions to verify your tests produce the correct results. 41 | } 42 | 43 | func testLaunchPerformance() throws { 44 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { 45 | // This measures how long it takes to launch your application. 46 | measure(metrics: [XCTOSSignpostMetric.applicationLaunch]) { 47 | XCUIApplication().launch() 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | HWAnalyticsKitDemo 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIApplicationSceneManifest 26 | 27 | UIApplicationSupportsMultipleScenes 28 | 29 | UISceneConfigurations 30 | 31 | UIWindowSceneSessionRoleApplication 32 | 33 | 34 | UISceneConfigurationName 35 | Default Configuration 36 | UISceneDelegateClassName 37 | SceneDelegate 38 | UISceneStoryboardFile 39 | Main 40 | 41 | 42 | 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIMainStoryboardFile 47 | Main 48 | UIRequiredDeviceCapabilities 49 | 50 | armv7 51 | 52 | UISupportedInterfaceOrientations 53 | 54 | UIInterfaceOrientationPortrait 55 | 56 | UISupportedInterfaceOrientations~ipad 57 | 58 | UIInterfaceOrientationPortrait 59 | UIInterfaceOrientationPortraitUpsideDown 60 | UIInterfaceOrientationLandscapeLeft 61 | UIInterfaceOrientationLandscapeRight 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | HWAnalyticsKitDemo 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIApplicationSceneManifest 26 | 27 | UIApplicationSupportsMultipleScenes 28 | 29 | UISceneConfigurations 30 | 31 | UIWindowSceneSessionRoleApplication 32 | 33 | 34 | UISceneConfigurationName 35 | Default Configuration 36 | UISceneDelegateClassName 37 | $(PRODUCT_MODULE_NAME).SceneDelegate 38 | UISceneStoryboardFile 39 | Main 40 | 41 | 42 | 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIMainStoryboardFile 47 | Main 48 | UIRequiredDeviceCapabilities 49 | 50 | armv7 51 | 52 | UISupportedInterfaceOrientations 53 | 54 | UIInterfaceOrientationPortrait 55 | 56 | UISupportedInterfaceOrientations~ipad 57 | 58 | UIInterfaceOrientationPortrait 59 | UIInterfaceOrientationPortraitUpsideDown 60 | UIInterfaceOrientationLandscapeLeft 61 | UIInterfaceOrientationLandscapeRight 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import "AppDelegate.h" 18 | 19 | @interface AppDelegate () 20 | 21 | @end 22 | 23 | @implementation AppDelegate 24 | 25 | 26 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 27 | 28 | //TODO:Initialize configuration. 29 | [HiAnalytics config]; 30 | 31 | //TODO:Enable event collection. 32 | [HiAnalytics setAnalyticsEnabled:YES]; 33 | 34 | //TODO:Configure report policies. 35 | [HiAnalytics setReportPolicies:@[[HAReportPolicy onMoveBackgroundPolicy],[HAReportPolicy onCacheThresholdPolicy:200]]]; 36 | 37 | return YES; 38 | } 39 | 40 | 41 | #pragma mark - UISceneSession lifecycle 42 | 43 | 44 | - (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options { 45 | // Called when a new scene session is being created. 46 | // Use this method to select a configuration to create the new scene with. 47 | return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role]; 48 | } 49 | 50 | 51 | - (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet *)sceneSessions { 52 | // Called when the user discards a scene session. 53 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 54 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 55 | } 56 | 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | import UIKit 18 | 19 | @UIApplicationMain 20 | class AppDelegate: UIResponder, UIApplicationDelegate { 21 | var window: UIWindow? 22 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 23 | 24 | //TODO:Initialize configuration. 25 | HiAnalytics.config(); 26 | 27 | //TODO:Enable event collection. 28 | HiAnalytics.setAnalyticsEnabled(true); 29 | 30 | //TODO:Configure report policies. 31 | HiAnalytics.setReportPolicies([HAReportPolicy.onMoveBackground(),HAReportPolicy.onCacheThresholdPolicy(200)]); 32 | 33 | return true 34 | } 35 | 36 | // MARK: UISceneSession Lifecycle 37 | 38 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 39 | // Called when a new scene session is being created. 40 | // Use this method to select a configuration to create the new scene with. 41 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 42 | } 43 | 44 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 45 | // Called when the user discards a scene session. 46 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 47 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 48 | } 49 | 50 | 51 | } 52 | 53 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import "ViewController.h" 18 | #import "SettingsViewController.h" 19 | #import "HiAnalytics/HiAnalytics.h" 20 | 21 | @interface ViewController () 22 | @property (weak, nonatomic) IBOutlet UILabel *question; 23 | 24 | @property (weak, nonatomic) IBOutlet UIButton *settings; 25 | @property (weak, nonatomic) IBOutlet UIButton *answerTrue; 26 | @property (weak, nonatomic) IBOutlet UIButton *answerFalse; 27 | 28 | @property(nonatomic, weak) IBOutlet UIView *uiView; 29 | 30 | @end 31 | 32 | @implementation ViewController 33 | 34 | - (void)viewDidLoad { 35 | [super viewDidLoad]; 36 | // Do any additional setup after loading the view. 37 | [_settings addTarget:self action:@selector(clickMe:) forControlEvents:UIControlEventTouchUpInside]; 38 | [_answerTrue addTarget:self action:@selector(reportAnswer:) forControlEvents:UIControlEventTouchUpInside]; 39 | [_answerFalse addTarget:self action:@selector(reportAnswer:) forControlEvents:UIControlEventTouchUpInside]; 40 | 41 | } 42 | 43 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { 44 | [self.view endEditing:YES]; 45 | } 46 | 47 | -(void)clickMe:(id)sender{ 48 | 49 | [self presentViewController:[[SettingsViewController alloc] init] animated:true completion:nil]; 50 | } 51 | 52 | -(void) reportAnswer:(id)sender{ 53 | //set user name 54 | [HiAnalytics setUserId:@"Li Lei"]; 55 | UIButton *button = (UIButton *)sender; 56 | NSString *mesage = [button currentTitle]; 57 | NSDateFormatter *nsdf=[[NSDateFormatter alloc] init]; 58 | [nsdf setDateStyle:NSDateFormatterShortStyle]; 59 | [nsdf setDateFormat:@"YYYY/MM/dd HH:mm:ss"]; 60 | NSString *time=[nsdf stringFromDate:[NSDate date]]; 61 | 62 | //report event 63 | [HiAnalytics onEvent:@"QuestionAnsweringEvent" setParams:@{@"Answer":mesage,@"Timestamp":time}]; 64 | } 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/SettingsViewController.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import "SettingsViewController.h" 18 | #import "HiAnalytics/HiAnalytics.h" 19 | 20 | @interface SettingsViewController () 21 | @property (weak, nonatomic) IBOutlet UIButton *submit; 22 | 23 | @property (weak, nonatomic) IBOutlet UIButton *back; 24 | 25 | @property (weak, nonatomic) IBOutlet UITextField *sex; 26 | @property (weak, nonatomic) IBOutlet UITextField *age; 27 | @property (weak, nonatomic) IBOutlet UITextField *favor; 28 | 29 | @end 30 | 31 | @implementation SettingsViewController 32 | 33 | - (void)viewDidLoad { 34 | [super viewDidLoad]; 35 | // Do any additional setup after loading the view from its nib. 36 | 37 | [_submit addTarget:self action:@selector(settings) forControlEvents:UIControlEventTouchUpInside]; 38 | 39 | [_back addTarget:self action:@selector(backButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 40 | 41 | 42 | } 43 | 44 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { 45 | [self.view endEditing:YES]; 46 | } 47 | 48 | - (void)settings{ 49 | if(_sex.text){ 50 | [HiAnalytics setUserProfile:@"user_sex" setValue:_sex.text]; 51 | } 52 | if(_age.text){ 53 | [HiAnalytics setUserProfile:@"user_age" setValue:_age.text]; 54 | } 55 | if(_favor.text){ 56 | [HiAnalytics setUserProfile:@"user_favor" setValue:_favor.text]; 57 | } 58 | } 59 | 60 | - (void)backButtonPressed:(id)sender{ 61 | [self dismissViewControllerAnimated:true completion:nil]; 62 | } 63 | 64 | 65 | 66 | 67 | /* 68 | #pragma mark - Navigation 69 | 70 | // In a storyboard-based application, you will often want to do a little preparation before navigation 71 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 72 | // Get the new view controller using [segue destinationViewController]. 73 | // Pass the selected object to the new view controller. 74 | } 75 | */ 76 | 77 | @end 78 | -------------------------------------------------------------------------------- /README_ZH.md: -------------------------------------------------------------------------------- 1 | # 华为分析服务iOS SDK示例代码 2 | 3 | [![hms](https://img.shields.io/badge/hms-analytics-brightgreen)](https://developer.huawei.com/consumer/en/doc/development/HMS-References/3021004) 4 | 5 | 中文 | [English](README.md) 6 | 7 | ## Table of Contents 8 | 9 | * [简介](#简介) 10 | * [快速入门](#快速入门) 11 | * [安装](#安装) 12 | * [配置](#配置) 13 | * [环境要求](#环境要求) 14 | * [操作结果](#操作结果) 15 | * [授权许可](#授权许可) 16 | 17 | 18 | ## 简介 19 | Hmsanalyticskitdemo提供了华为分析服务(HUAWEI Analytics Kit)与app集成的示例代码。它提供了两个页面(即答题页面和用户属性设置页面),用于演示收集预定义事件和自定义事件。在应用初始页面“答题”页上单击“是”或“否”来回答页面上的问题,则会触发上报自动收集事件(包括页面退出和页面进入事件)。 20 | [了解更多有关Hianalytics信息](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/introduction-0000001050745149). 21 | 22 | 23 | ## 快速入门 24 | 25 | 更多开发指导,请参考以下链接文档: 26 | 27 | [开发指南](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/ios-dev-process-0000001050168431) 28 | 29 | [API参考](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References/ios-api-huawei-analytics-overview-0000001050164673) 30 | 31 | Hmsanalyticskitdemo演示了如何使用CocoaPods工具(Swift和Objective - C Cocoa项目的依赖管理器)来集成分析服务的iOS SDK。 32 | 33 | 首先,我们通过克隆此仓库或下载压缩包的方式来下载Hmsanalyticskitdemo。 34 | 35 | 打开CLI并进入Xcode项目所在目录。打开Podfile文件,添加Pod 'HiAnalytics',即Pod的依赖关系。 36 | 37 | 安装pod,打开.xcworkspace文件查看工程。 38 | 39 | 您需要在AppGallery Connect中创建应用,获取agconnect-services.plist文件,并将文件添加到项目中。此外,您还需要生成签名证书指纹并将证书文件添加到项目中。 [进一步了解开发流程](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/ios-dev-process-0000001050168431). 40 | 41 | 42 | ## 安装 43 | 使用Xcode打开解压后的工程。 44 | 45 | 46 | ## 配置 47 | 在AppGallery Connect中创建iOS应用,并获取项目配置文件agconnect-services.plist。在Xcode中,切换到Project视图,将agconnect-services.plist文件移动到app的根目录下。 48 | 49 | 50 | ## 环境要求 51 | 硬件要求: 52 | 1. Mac电脑(台式机或笔记本) 53 | 2. iPhone,用于应用调试 54 | 55 | 56 | 软件要求: 57 | 1. 华为分析服务5.2.0.300 58 | 2. Xcode 59 | 60 | 61 | ## 操作结果 62 | 运行该app后,您将会看到如下页面: 63 | 64 | 点击“TRUE”或“FALSE”按钮进行答题;点击“Settings”按钮设置用户属性。 65 | 66 | 67 | 68 | 点击Settings按钮: 69 | 当点击Settings按钮,您会被要求提供喜爱的运动。华为分析服务将把这些信息记录为用户属性。 70 | 71 | 72 | 73 | ## 技术支持 74 | 如果您对HMS Core还处于评估阶段,可在[Reddit社区](https://www.reddit.com/r/HuaweiDevelopers/)获取关于HMS Core的最新讯息,并与其他开发者交流见解。 75 | 76 | 如果您对使用HMS示例代码有疑问,请尝试: 77 | - 开发过程遇到问题上[Stack Overflow](https://stackoverflow.com/questions/tagged/huawei-mobile-services?tab=Votes),在`huawei-mobile-services`标签下提问,有华为研发专家在线一对一解决您的问题。 78 | - 到[华为开发者论坛](https://developer.huawei.com/consumer/cn/forum/blockdisplay?fid=18) HMS Core板块与其他开发者进行交流。 79 | 80 | 如果您在尝试示例代码中遇到问题,请向仓库提交[issue](https://github.com/HMS-Core/hms-ananlytics-demo-ios/issues),也欢迎您提交[Pull Request](https://github.com/HMS-Core/hms-ananlytics-demo-ios/pulls)。 81 | 82 | ## 授权许可 83 | HmsAnalyticsKitDemo经过 [Apache 2.0授权许可](http://www.apache.org/licenses/LICENSE-2.0). 84 | 85 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/SceneDelegate.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import "SceneDelegate.h" 18 | 19 | @interface SceneDelegate () 20 | 21 | @end 22 | 23 | @implementation SceneDelegate 24 | 25 | 26 | - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { 27 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 28 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 29 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 30 | } 31 | 32 | 33 | - (void)sceneDidDisconnect:(UIScene *)scene { 34 | // Called as the scene is being released by the system. 35 | // This occurs shortly after the scene enters the background, or when its session is discarded. 36 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 37 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 38 | } 39 | 40 | 41 | - (void)sceneDidBecomeActive:(UIScene *)scene { 42 | // Called when the scene has moved from an inactive state to an active state. 43 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 44 | } 45 | 46 | 47 | - (void)sceneWillResignActive:(UIScene *)scene { 48 | // Called when the scene will move from an active state to an inactive state. 49 | // This may occur due to temporary interruptions (ex. an incoming phone call). 50 | } 51 | 52 | 53 | - (void)sceneWillEnterForeground:(UIScene *)scene { 54 | // Called as the scene transitions from the background to the foreground. 55 | // Use this method to undo the changes made on entering the background. 56 | } 57 | 58 | 59 | - (void)sceneDidEnterBackground:(UIScene *)scene { 60 | // Called as the scene transitions from the foreground to the background. 61 | // Use this method to save data, release shared resources, and store enough scene-specific state information 62 | // to restore the scene back to its current state. 63 | } 64 | 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | import UIKit 18 | 19 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 20 | var window: UIWindow? 21 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 22 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 23 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 24 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 25 | guard let _ = (scene as? UIWindowScene) else { return } 26 | } 27 | 28 | func sceneDidDisconnect(_ scene: UIScene) { 29 | // Called as the scene is being released by the system. 30 | // This occurs shortly after the scene enters the background, or when its session is discarded. 31 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 32 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 33 | } 34 | 35 | func sceneDidBecomeActive(_ scene: UIScene) { 36 | // Called when the scene has moved from an inactive state to an active state. 37 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 38 | } 39 | 40 | func sceneWillResignActive(_ scene: UIScene) { 41 | // Called when the scene will move from an active state to an inactive state. 42 | // This may occur due to temporary interruptions (ex. an incoming phone call). 43 | } 44 | 45 | func sceneWillEnterForeground(_ scene: UIScene) { 46 | // Called as the scene transitions from the background to the foreground. 47 | // Use this method to undo the changes made on entering the background. 48 | } 49 | 50 | func sceneDidEnterBackground(_ scene: UIScene) { 51 | // Called as the scene transitions from the foreground to the background. 52 | // Use this method to save data, release shared resources, and store enough scene-specific state information 53 | // to restore the scene back to its current state. 54 | } 55 | 56 | 57 | } 58 | 59 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/MainViewController.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | import UIKit 18 | 19 | class MainViewController: UIViewController { 20 | 21 | @IBOutlet weak var questionLabel: UILabel! 22 | let questionsArray:Array = ["The largest planet in the solar system is Jupiter", 23 | "The first Olympic Games were held in Athens, Greece", 24 | "The violin has 6 strings", 25 | "Flying bats belong to birds", 26 | "Sound spreads faster in the water than in the air"]; 27 | let answersArray:Array = [true,true,false,false,true]; 28 | var curQuqestionIndex:Int = 0; 29 | var score:Int = 0; 30 | 31 | override func viewDidLoad() { 32 | super.viewDidLoad() 33 | self.questionLabel.text = self.questionsArray[self.curQuqestionIndex]; 34 | } 35 | 36 | @IBAction func trueBtnClick(_ sender: UIButton) { 37 | self.checkAnswer(answer: true); 38 | self.reportAnswerEvt(answer: "true"); 39 | } 40 | 41 | @IBAction func falseBtnClick(_ sender: UIButton) { 42 | self.checkAnswer(answer: false); 43 | self.reportAnswerEvt(answer: "false"); 44 | } 45 | 46 | @IBAction func postScoreBtnClick(_ sender: UIButton) { 47 | // TODO: Report score by using SUBMITSCORE Event 48 | let parms:Dictionary = [kHAParamScore:self.score]; 49 | // Report a preddefined Event 50 | HiAnalytics.onEvent(kHAEventSubmitScore, setParams: parms); 51 | HToast.showMessage("Post score success."); 52 | } 53 | 54 | @IBAction func nextBtnClick(_ sender: UIButton) { 55 | self.curQuqestionIndex = (self.curQuqestionIndex+1)%self.questionsArray.count; 56 | self.questionLabel.text = self.questionsArray[self.curQuqestionIndex]; 57 | } 58 | 59 | func checkAnswer(answer:Bool) { 60 | let rightAnswer:Bool = self.answersArray[self.curQuqestionIndex]; 61 | if answer == rightAnswer { 62 | self.score = self.score + 20; 63 | HToast.showMessage("The answer is correct."); 64 | 65 | }else{ 66 | HToast.showMessage("The answer is wrong."); 67 | } 68 | } 69 | 70 | func reportAnswerEvt(answer:String) { 71 | // TODO: Report a customzied Event 72 | // Event Name: Answer 73 | // Event Parameters: 74 | // -- question: String 75 | // -- answer:String 76 | // -- answerTime: String 77 | 78 | let dateFormat:DateFormatter = DateFormatter(); 79 | dateFormat.dateFormat = "yyyy-MM-dd HH:mm:ss"; 80 | let answerTime :String = dateFormat.string(for: Date())!; 81 | 82 | let parms : Dictionary = ["question":self.questionsArray[self.curQuqestionIndex], 83 | "answer":answer,"answerTime":answerTime]; 84 | HiAnalytics.onEvent("Answer", setParams: parms); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/MainViewController.m: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | #import "MainViewController.h" 18 | 19 | @interface MainViewController () 20 | @property (weak, nonatomic) IBOutlet UILabel *questionLabel; 21 | @property (strong, nonatomic) NSArray *questionsArray; 22 | @property (strong, nonatomic) NSArray *answersArray; 23 | @property (assign, nonatomic) NSInteger curQuqestionIndex; 24 | @property (assign, nonatomic) NSInteger score; 25 | @end 26 | 27 | @implementation MainViewController 28 | 29 | - (void)viewDidLoad { 30 | [super viewDidLoad]; 31 | self.questionsArray = @[@"The largest planet in the solar system is Jupiter", 32 | @"The first Olympic Games were held in Athens, Greece", 33 | @"The violin has 6 strings", 34 | @"Flying bats belong to birds", 35 | @"Sound spreads faster in the water than in the air"]; 36 | self.answersArray = @[@1,@1,@0,@0,@1]; 37 | 38 | self.questionLabel.text = self.questionsArray[self.curQuqestionIndex]; 39 | } 40 | 41 | - (IBAction)trueBtnClick:(UIButton *)sender { 42 | [self checkAnswer:true]; 43 | [self reportAnswerEvt:@"true"]; 44 | } 45 | 46 | - (IBAction)falseBtnClick:(UIButton *)sender { 47 | [self checkAnswer:false]; 48 | [self reportAnswerEvt:@"false"]; 49 | } 50 | 51 | - (IBAction)postScoreBtnClick:(UIButton *)sender { 52 | // TODO: Report score by using SUBMITSCORE Event 53 | NSDictionary *parms = @{kHAParamScore:[NSNumber numberWithInteger:self.score]}; 54 | // Report a preddefined Event 55 | [HiAnalytics onEvent:kHAEventSubmitScore setParams:parms]; 56 | [HToast showMessage:@"Post score success."]; 57 | } 58 | 59 | - (IBAction)nextBtnClick:(UIButton *)sender { 60 | self.curQuqestionIndex = (self.curQuqestionIndex+1)%self.questionsArray.count; 61 | self.questionLabel.text = self.questionsArray[self.curQuqestionIndex]; 62 | } 63 | 64 | - (void)checkAnswer:(BOOL)answer { 65 | NSNumber *answerNum = self.answersArray[self.curQuqestionIndex]; 66 | if (answer == [answerNum boolValue]) { 67 | self.score = self.score + 20; 68 | [HToast showMessage:@"The answer is correct."]; 69 | // TODO: Report a customized Event 70 | 71 | } else { 72 | [HToast showMessage:@"The answer is wrong."]; 73 | // TODO: Report a customized Event 74 | 75 | } 76 | } 77 | 78 | - (void)reportAnswerEvt:(NSString *)answer { 79 | // TODO: Report a customzied Event 80 | // Event Name: Answer 81 | // Event Parameters: 82 | // -- question: String 83 | // -- answer:String 84 | // -- answerTime: String 85 | 86 | NSDateFormatter *dateFormat=[[NSDateFormatter alloc]init]; 87 | [dateFormat setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; 88 | NSString *answerTime=[dateFormat stringFromDate:[NSDate date]]; 89 | 90 | NSDictionary *parms = @{@"question":self.questionsArray[self.curQuqestionIndex], 91 | @"answer":answer, 92 | @"answerTime":answerTime}; 93 | // Report a customzied Event 94 | [HiAnalytics onEvent:@"Answer" setParams:parms]; 95 | } 96 | 97 | @end 98 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HMS AnalyticsKit Demo for ios 2 | 3 | [![hms](https://img.shields.io/badge/hms-analytics-brightgreen)](https://developer.huawei.com/consumer/en/doc/development/HMS-References/3021004) 4 | 5 | English | [中文](README_ZH.md) 6 | 7 | ## Table of Contents 8 | 9 | * [Introduction](#introduction) 10 | * [Getting Started](#getting-started) 11 | * [Installation](#installation) 12 | * [Configuration ](#configuration ) 13 | * [Environment requirements](#Environment-requirements) 14 | * [Result](#result) 15 | * [License](#license) 16 | 17 | 18 | ## Introduction 19 | Hmsanalyticskitdemo provides an example of integrating HUAWEI Analytics Kit with an app. It illustrates how to collect predefined events and custom events on two pages, namely, question page or user attribute setting page. If you click TRUE or FALSE on the question page, automatically collected events including page exit and page entry will be logged when the page is switched. 20 | [Read more about Hianalytics](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050745149). 21 | 22 | 23 | ## Getting Started 24 | 25 | For more development guidance, please refer to the links below: 26 | 27 | [Development Guide](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/ios-dev-process-0000001050168431) 28 | 29 | [API References](https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/ios-api-huawei-analytics-overview-0000001050164673) 30 | 31 | In this example, we demonstrate how to use the analytics SDK for iOS by using the CocoaPods Tool, a dependency manager for Swift and Objective-C Cocoa projects. 32 | 33 | First download the demo by cloning this repository or downloading an archived snapshot. 34 | 35 | Open the CLI and navigate to the location of the Xcode project. Edit the Podfile file, add pod 'HiAnalytics', that is, the dependency for pod. 36 | 37 | Install the pod and open the .xcworkspace file to view the project. 38 | 39 | You should create an iOS app in AppGallery Connect, and obtain the agconnect-services.plist file and add it to the project. You should also generate a signing certificate fingerprint and add the certificate file to the project. [More to Development Process](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/ios-dev-process-0000001050168431) 40 | 41 | ## Installation 42 | Use Xcode to open the decompressed project. 43 | 44 | ## Configuration 45 | 1. Create an iOS app in AppGallery Connect and obtain the project configuration file agconnect-services.plist. In Xcode, switch to the Project view and move the agconnect-services.plist file to the root directory of the app. 46 | 47 | ## Supported Environments 48 | Hardware requirements: 49 | 1. A MAC computer (desktop or laptop) 50 | 2. A iPhone phone, which is used to debug the developed app 51 | 52 | 53 | Software requirements: 54 | 1. HUAWEI Analytics Kit 5.2.0.300 55 | 2. Xcode 56 | 57 | 58 | ## Result 59 | After running the app you should see a screen. 60 | 61 | And click the button TRUE or FALSE to answer the question; Click the Setting to set user profiles. 62 | 63 | 64 | 65 | Click button SETTINGS: 66 | When you click the Setting button, you will be asked for your favorite sports. These information will be logged as users attributes by HUAWEI Analytics Kit. 67 | 68 | 69 | 70 | ## Question or issues 71 | If you want to evaluate more about HMS Core, 72 | [r/HMSCore on Reddit](https://www.reddit.com/r/HuaweiDevelopers/) is for you to keep up with latest news about HMS Core, and to exchange insights with other developers. 73 | 74 | If you have questions about how to use HMS samples, try the following options: 75 | - [Stack Overflow](https://stackoverflow.com/questions/tagged/huawei-mobile-services?tab=Votes) is the best place for any programming questions. Be sure to tag your question with 76 | `huawei-mobile-services`. 77 | - [Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101187876626530001) HMS Core Module is great for general questions, or seeking recommendations and opinions. 78 | 79 | If you run into a bug in our samples, please submit an [issue](https://github.com/HMS-Core/hms-ananlytics-demo-ios/issues) to the Repository. Even better you can submit a [Pull Request](https://github.com/HMS-Core/hms-ananlytics-demo-ios/pulls) with a fix. 80 | 81 | ## License 82 | HmsAnalyticsKitDemo is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0). 83 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo.xcodeproj/xcshareddata/xcschemes/hmsAnalyticsKitDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 77 | 78 | 81 | 82 | 83 | 84 | 90 | 92 | 98 | 99 | 100 | 101 | 103 | 104 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Toast/HToastView.m: -------------------------------------------------------------------------------- 1 | // 2 | // HToastView.m 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import "HToastView.h" 9 | 10 | #define kScreenWidth ([UIScreen mainScreen].bounds.size.width) 11 | #define kScreenHeight ([UIScreen mainScreen].bounds.size.height) 12 | #define kPadding 10 13 | 14 | @interface HToastView() 15 | @property (nonatomic, strong) UILabel *messageLabel; 16 | @property (nonatomic, assign) CGFloat padding; 17 | @end 18 | 19 | @implementation HToastView 20 | 21 | + (instancetype)initWithMessage:(NSString * _Nullable)message { 22 | HToastView *toastView = [[HToastView alloc] init]; 23 | toastView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.8]; 24 | toastView.layer.cornerRadius = 6; 25 | toastView.layer.masksToBounds = YES; 26 | toastView.messageLabel.text = message; 27 | toastView.messageLabel.textColor = [UIColor whiteColor]; 28 | toastView.messageLabel.font = [UIFont systemFontOfSize:15]; 29 | [toastView setupFrameWithMessage:message]; 30 | return toastView; 31 | } 32 | 33 | - (void)setupFrameWithMessage:(NSString * _Nullable)message { 34 | CGSize toastSize = [self getSizeWithMessage:message]; 35 | CGFloat toastWidth = (kScreenWidth / 3) > toastSize.width ? (kScreenWidth / 3) : toastSize.width; 36 | self.center = CGPointMake(kScreenWidth/2, kScreenHeight/2); 37 | self.bounds = CGRectMake(0, 0, toastWidth, toastSize.height); 38 | [self addConstraintWithMessageLabel]; 39 | } 40 | 41 | - (CGSize)getSizeWithMessage:(NSString * _Nullable)message { 42 | UIFont *font = [UIFont systemFontOfSize:15]; 43 | CGSize textSize = [message boundingRectWithSize:CGSizeMake(0.75 * kScreenWidth, 0.75 * kScreenHeight) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:font} context:nil].size; 44 | CGFloat labelWidth = textSize.width + 1; 45 | CGFloat labelHeight = textSize.height + 1; 46 | CGFloat heightPadding = (2 * kPadding); 47 | CGFloat toastHeight = heightPadding + labelHeight; 48 | CGFloat toastWidth = labelWidth + (2 * kPadding); 49 | return CGSizeMake(toastWidth, toastHeight); 50 | } 51 | 52 | - (void)addConstraintWithMessageLabel { 53 | [self addSubview:self.messageLabel]; 54 | [self.messageLabel setTranslatesAutoresizingMaskIntoConstraints:NO]; 55 | 56 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 57 | attribute:NSLayoutAttributeTop 58 | relatedBy:NSLayoutRelationEqual 59 | toItem:self 60 | attribute:NSLayoutAttributeTop 61 | multiplier:1.0 62 | constant:kPadding]]; 63 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 64 | attribute:NSLayoutAttributeLeft 65 | relatedBy:NSLayoutRelationEqual 66 | toItem:self 67 | attribute:NSLayoutAttributeLeft 68 | multiplier:1.0 69 | constant:kPadding]]; 70 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 71 | attribute:NSLayoutAttributeBottom 72 | relatedBy:NSLayoutRelationEqual 73 | toItem:self 74 | attribute:NSLayoutAttributeBottom 75 | multiplier:1.0 76 | constant:-kPadding]]; 77 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 78 | attribute:NSLayoutAttributeRight 79 | relatedBy:NSLayoutRelationEqual 80 | toItem:self 81 | attribute:NSLayoutAttributeRight 82 | multiplier:1.0 83 | constant:-kPadding]]; 84 | } 85 | 86 | - (UILabel *)messageLabel { 87 | if (!_messageLabel) { 88 | _messageLabel = [[UILabel alloc] init]; 89 | _messageLabel.numberOfLines = 0; 90 | _messageLabel.textAlignment = NSTextAlignmentCenter; 91 | } 92 | return _messageLabel; 93 | } 94 | 95 | @end 96 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Toast/HToastView.m: -------------------------------------------------------------------------------- 1 | // 2 | // HToastView.m 3 | // test 4 | // 5 | // Created by epro123 on 2020/11/26. 6 | // 7 | 8 | #import "HToastView.h" 9 | 10 | #define kScreenWidth ([UIScreen mainScreen].bounds.size.width) 11 | #define kScreenHeight ([UIScreen mainScreen].bounds.size.height) 12 | #define kPadding 10 13 | 14 | @interface HToastView() 15 | @property (nonatomic, strong) UILabel *messageLabel; 16 | @property (nonatomic, assign) CGFloat padding; 17 | @end 18 | 19 | @implementation HToastView 20 | 21 | + (instancetype)initWithMessage:(NSString * _Nullable)message { 22 | HToastView *toastView = [[HToastView alloc] init]; 23 | toastView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.8]; 24 | toastView.layer.cornerRadius = 6; 25 | toastView.layer.masksToBounds = YES; 26 | toastView.messageLabel.text = message; 27 | toastView.messageLabel.textColor = [UIColor whiteColor]; 28 | toastView.messageLabel.font = [UIFont systemFontOfSize:15]; 29 | [toastView setupFrameWithMessage:message]; 30 | return toastView; 31 | } 32 | 33 | - (void)setupFrameWithMessage:(NSString * _Nullable)message { 34 | CGSize toastSize = [self getSizeWithMessage:message]; 35 | CGFloat toastWidth = (kScreenWidth / 3) > toastSize.width ? (kScreenWidth / 3) : toastSize.width; 36 | self.center = CGPointMake(kScreenWidth/2, kScreenHeight/2); 37 | self.bounds = CGRectMake(0, 0, toastWidth, toastSize.height); 38 | [self addConstraintWithMessageLabel]; 39 | } 40 | 41 | - (CGSize)getSizeWithMessage:(NSString * _Nullable)message { 42 | UIFont *font = [UIFont systemFontOfSize:15]; 43 | CGSize textSize = [message boundingRectWithSize:CGSizeMake(0.75 * kScreenWidth, 0.75 * kScreenHeight) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:font} context:nil].size; 44 | CGFloat labelWidth = textSize.width + 1; 45 | CGFloat labelHeight = textSize.height + 1; 46 | CGFloat heightPadding = (2 * kPadding); 47 | CGFloat toastHeight = heightPadding + labelHeight; 48 | CGFloat toastWidth = labelWidth + (2 * kPadding); 49 | return CGSizeMake(toastWidth, toastHeight); 50 | } 51 | 52 | - (void)addConstraintWithMessageLabel { 53 | [self addSubview:self.messageLabel]; 54 | [self.messageLabel setTranslatesAutoresizingMaskIntoConstraints:NO]; 55 | 56 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 57 | attribute:NSLayoutAttributeTop 58 | relatedBy:NSLayoutRelationEqual 59 | toItem:self 60 | attribute:NSLayoutAttributeTop 61 | multiplier:1.0 62 | constant:kPadding]]; 63 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 64 | attribute:NSLayoutAttributeLeft 65 | relatedBy:NSLayoutRelationEqual 66 | toItem:self 67 | attribute:NSLayoutAttributeLeft 68 | multiplier:1.0 69 | constant:kPadding]]; 70 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 71 | attribute:NSLayoutAttributeBottom 72 | relatedBy:NSLayoutRelationEqual 73 | toItem:self 74 | attribute:NSLayoutAttributeBottom 75 | multiplier:1.0 76 | constant:-kPadding]]; 77 | [self addConstraint:[NSLayoutConstraint constraintWithItem:self.messageLabel 78 | attribute:NSLayoutAttributeRight 79 | relatedBy:NSLayoutRelationEqual 80 | toItem:self 81 | attribute:NSLayoutAttributeRight 82 | multiplier:1.0 83 | constant:-kPadding]]; 84 | } 85 | 86 | - (UILabel *)messageLabel { 87 | if (!_messageLabel) { 88 | _messageLabel = [[UILabel alloc] init]; 89 | _messageLabel.numberOfLines = 0; 90 | _messageLabel.textAlignment = NSTextAlignmentCenter; 91 | } 92 | return _messageLabel; 93 | } 94 | 95 | @end 96 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo.xcodeproj/xcshareddata/xcschemes/hmsAnalyticsKit_Swift_Demo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 77 | 78 | 81 | 82 | 83 | 84 | 90 | 92 | 98 | 99 | 100 | 101 | 103 | 104 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/SettingsViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 33 | 40 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 73 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS -------------------------------------------------------------------------------- /objective-c/hmsAnalyticsKitDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 30 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 141 | 163 | 185 | 207 | 228 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 30 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 141 | 163 | 185 | 207 | 228 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | -------------------------------------------------------------------------------- /swift/hmsAnalyticsKit_Swift_Demo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 8505082D0F95C7029803C035 /* Pods_hmsAnalyticsKit_Swift_Demo_hmsAnalyticsKit_Swift_DemoUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 419684C8EC2E44463CEDCE4B /* Pods_hmsAnalyticsKit_Swift_Demo_hmsAnalyticsKit_Swift_DemoUITests.framework */; }; 11 | A60EC0DA256F912E00FAE8A1 /* HToast.m in Sources */ = {isa = PBXBuildFile; fileRef = A60EC0D7256F912E00FAE8A1 /* HToast.m */; }; 12 | A60EC0DB256F912E00FAE8A1 /* HToastView.m in Sources */ = {isa = PBXBuildFile; fileRef = A60EC0D8256F912E00FAE8A1 /* HToastView.m */; }; 13 | A617402F256B5C7C0053FAD9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A617402E256B5C7C0053FAD9 /* AppDelegate.swift */; }; 14 | A6174031256B5C7C0053FAD9 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6174030256B5C7C0053FAD9 /* SceneDelegate.swift */; }; 15 | A6174038256B5C800053FAD9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A6174037256B5C800053FAD9 /* Assets.xcassets */; }; 16 | A6174046256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6174045256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.swift */; }; 17 | A6174051256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6174050256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.swift */; }; 18 | A6F8006F256B8F1000EB8F91 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6F8006C256B8F1000EB8F91 /* MainViewController.swift */; }; 19 | A6F80070256B8F1000EB8F91 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A6F8006D256B8F1000EB8F91 /* Main.storyboard */; }; 20 | A6F80071256B8F1000EB8F91 /* SettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6F8006E256B8F1000EB8F91 /* SettingViewController.swift */; }; 21 | A6F80079256B8F3000EB8F91 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A6F80078256B8F3000EB8F91 /* LaunchScreen.storyboard */; }; 22 | F3C0DEB19B09C3D10429243C /* Pods_hmsAnalyticsKit_Swift_Demo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6E8171840F33CACB90E831B /* Pods_hmsAnalyticsKit_Swift_Demo.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | A6174042256B5C800053FAD9 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = A6174023256B5C7C0053FAD9 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = A617402A256B5C7C0053FAD9; 31 | remoteInfo = hmsAnalyticsKit_Swift_Demo; 32 | }; 33 | A617404D256B5C810053FAD9 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = A6174023256B5C7C0053FAD9 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = A617402A256B5C7C0053FAD9; 38 | remoteInfo = hmsAnalyticsKit_Swift_Demo; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 419684C8EC2E44463CEDCE4B /* Pods_hmsAnalyticsKit_Swift_Demo_hmsAnalyticsKit_Swift_DemoUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_hmsAnalyticsKit_Swift_Demo_hmsAnalyticsKit_Swift_DemoUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 531E084EFB4DCA4185104E77 /* Pods-hmsAnalyticsKit_Swift_Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hmsAnalyticsKit_Swift_Demo.debug.xcconfig"; path = "Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo/Pods-hmsAnalyticsKit_Swift_Demo.debug.xcconfig"; sourceTree = ""; }; 45 | A60EC0D6256F912E00FAE8A1 /* HToastView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HToastView.h; sourceTree = ""; }; 46 | A60EC0D7256F912E00FAE8A1 /* HToast.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HToast.m; sourceTree = ""; }; 47 | A60EC0D8256F912E00FAE8A1 /* HToastView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HToastView.m; sourceTree = ""; }; 48 | A60EC0D9256F912E00FAE8A1 /* HToast.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HToast.h; sourceTree = ""; }; 49 | A617402B256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = hmsAnalyticsKit_Swift_Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | A617402E256B5C7C0053FAD9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 51 | A6174030256B5C7C0053FAD9 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 52 | A6174037256B5C800053FAD9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 53 | A617403C256B5C800053FAD9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | A6174041256B5C800053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = hmsAnalyticsKit_Swift_DemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | A6174045256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = hmsAnalyticsKit_Swift_DemoTests.swift; sourceTree = ""; }; 56 | A6174047256B5C810053FAD9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | A617404C256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = hmsAnalyticsKit_Swift_DemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | A6174050256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = hmsAnalyticsKit_Swift_DemoUITests.swift; sourceTree = ""; }; 59 | A6174052256B5C810053FAD9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | A6F8006B256B8F1000EB8F91 /* hmsAnalyticsKit_Swift_Demo-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "hmsAnalyticsKit_Swift_Demo-Bridging-Header.h"; sourceTree = ""; }; 61 | A6F8006C256B8F1000EB8F91 /* MainViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = ""; }; 62 | A6F8006D256B8F1000EB8F91 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 63 | A6F8006E256B8F1000EB8F91 /* SettingViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingViewController.swift; sourceTree = ""; }; 64 | A6F80078256B8F3000EB8F91 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = ""; }; 65 | B769997659DDB646FB7404F7 /* Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.release.xcconfig"; path = "Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.release.xcconfig"; sourceTree = ""; }; 66 | C19A1972DC26A3817D605DFC /* Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.debug.xcconfig"; path = "Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.debug.xcconfig"; sourceTree = ""; }; 67 | C7AED794C4927517B26FABD2 /* Pods-hmsAnalyticsKit_Swift_Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hmsAnalyticsKit_Swift_Demo.release.xcconfig"; path = "Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo/Pods-hmsAnalyticsKit_Swift_Demo.release.xcconfig"; sourceTree = ""; }; 68 | F6E8171840F33CACB90E831B /* Pods_hmsAnalyticsKit_Swift_Demo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_hmsAnalyticsKit_Swift_Demo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | /* End PBXFileReference section */ 70 | 71 | /* Begin PBXFrameworksBuildPhase section */ 72 | A6174028256B5C7C0053FAD9 /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | F3C0DEB19B09C3D10429243C /* Pods_hmsAnalyticsKit_Swift_Demo.framework in Frameworks */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | A617403E256B5C800053FAD9 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | A6174049256B5C810053FAD9 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | 8505082D0F95C7029803C035 /* Pods_hmsAnalyticsKit_Swift_Demo_hmsAnalyticsKit_Swift_DemoUITests.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | /* End PBXFrameworksBuildPhase section */ 96 | 97 | /* Begin PBXGroup section */ 98 | 3560F310F360449E24AC4BD6 /* Frameworks */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | F6E8171840F33CACB90E831B /* Pods_hmsAnalyticsKit_Swift_Demo.framework */, 102 | 419684C8EC2E44463CEDCE4B /* Pods_hmsAnalyticsKit_Swift_Demo_hmsAnalyticsKit_Swift_DemoUITests.framework */, 103 | ); 104 | name = Frameworks; 105 | sourceTree = ""; 106 | }; 107 | 49E4757169304FFF7A6A4657 /* Pods */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 531E084EFB4DCA4185104E77 /* Pods-hmsAnalyticsKit_Swift_Demo.debug.xcconfig */, 111 | C7AED794C4927517B26FABD2 /* Pods-hmsAnalyticsKit_Swift_Demo.release.xcconfig */, 112 | C19A1972DC26A3817D605DFC /* Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.debug.xcconfig */, 113 | B769997659DDB646FB7404F7 /* Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.release.xcconfig */, 114 | ); 115 | path = Pods; 116 | sourceTree = ""; 117 | }; 118 | A60EC0D5256F912E00FAE8A1 /* Toast */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | A60EC0D9256F912E00FAE8A1 /* HToast.h */, 122 | A60EC0D7256F912E00FAE8A1 /* HToast.m */, 123 | A60EC0D6256F912E00FAE8A1 /* HToastView.h */, 124 | A60EC0D8256F912E00FAE8A1 /* HToastView.m */, 125 | ); 126 | path = Toast; 127 | sourceTree = ""; 128 | }; 129 | A6174022256B5C7C0053FAD9 = { 130 | isa = PBXGroup; 131 | children = ( 132 | A617402D256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo */, 133 | A6174044256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoTests */, 134 | A617404F256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests */, 135 | A617402C256B5C7C0053FAD9 /* Products */, 136 | 49E4757169304FFF7A6A4657 /* Pods */, 137 | 3560F310F360449E24AC4BD6 /* Frameworks */, 138 | ); 139 | sourceTree = ""; 140 | }; 141 | A617402C256B5C7C0053FAD9 /* Products */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | A617402B256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo.app */, 145 | A6174041256B5C800053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.xctest */, 146 | A617404C256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.xctest */, 147 | ); 148 | name = Products; 149 | sourceTree = ""; 150 | }; 151 | A617402D256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | A617402E256B5C7C0053FAD9 /* AppDelegate.swift */, 155 | A6174030256B5C7C0053FAD9 /* SceneDelegate.swift */, 156 | A6F8006C256B8F1000EB8F91 /* MainViewController.swift */, 157 | A6F8006E256B8F1000EB8F91 /* SettingViewController.swift */, 158 | A6F8006B256B8F1000EB8F91 /* hmsAnalyticsKit_Swift_Demo-Bridging-Header.h */, 159 | A60EC0D5256F912E00FAE8A1 /* Toast */, 160 | A6F8006D256B8F1000EB8F91 /* Main.storyboard */, 161 | A6F80078256B8F3000EB8F91 /* LaunchScreen.storyboard */, 162 | A6174037256B5C800053FAD9 /* Assets.xcassets */, 163 | A617403C256B5C800053FAD9 /* Info.plist */, 164 | ); 165 | path = hmsAnalyticsKit_Swift_Demo; 166 | sourceTree = ""; 167 | }; 168 | A6174044256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoTests */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | A6174045256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.swift */, 172 | A6174047256B5C810053FAD9 /* Info.plist */, 173 | ); 174 | path = hmsAnalyticsKit_Swift_DemoTests; 175 | sourceTree = ""; 176 | }; 177 | A617404F256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | A6174050256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.swift */, 181 | A6174052256B5C810053FAD9 /* Info.plist */, 182 | ); 183 | path = hmsAnalyticsKit_Swift_DemoUITests; 184 | sourceTree = ""; 185 | }; 186 | /* End PBXGroup section */ 187 | 188 | /* Begin PBXNativeTarget section */ 189 | A617402A256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = A6174055256B5C810053FAD9 /* Build configuration list for PBXNativeTarget "hmsAnalyticsKit_Swift_Demo" */; 192 | buildPhases = ( 193 | 49DBB3A1BB5BE918EBC9F88D /* [CP] Check Pods Manifest.lock */, 194 | A6174027256B5C7C0053FAD9 /* Sources */, 195 | A6174028256B5C7C0053FAD9 /* Frameworks */, 196 | A6174029256B5C7C0053FAD9 /* Resources */, 197 | 366098FA79E1374D314FC321 /* [CP] Copy Pods Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | ); 203 | name = hmsAnalyticsKit_Swift_Demo; 204 | productName = hmsAnalyticsKit_Swift_Demo; 205 | productReference = A617402B256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo.app */; 206 | productType = "com.apple.product-type.application"; 207 | }; 208 | A6174040256B5C800053FAD9 /* hmsAnalyticsKit_Swift_DemoTests */ = { 209 | isa = PBXNativeTarget; 210 | buildConfigurationList = A6174058256B5C810053FAD9 /* Build configuration list for PBXNativeTarget "hmsAnalyticsKit_Swift_DemoTests" */; 211 | buildPhases = ( 212 | A617403D256B5C800053FAD9 /* Sources */, 213 | A617403E256B5C800053FAD9 /* Frameworks */, 214 | A617403F256B5C800053FAD9 /* Resources */, 215 | ); 216 | buildRules = ( 217 | ); 218 | dependencies = ( 219 | A6174043256B5C800053FAD9 /* PBXTargetDependency */, 220 | ); 221 | name = hmsAnalyticsKit_Swift_DemoTests; 222 | productName = hmsAnalyticsKit_Swift_DemoTests; 223 | productReference = A6174041256B5C800053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.xctest */; 224 | productType = "com.apple.product-type.bundle.unit-test"; 225 | }; 226 | A617404B256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests */ = { 227 | isa = PBXNativeTarget; 228 | buildConfigurationList = A617405B256B5C810053FAD9 /* Build configuration list for PBXNativeTarget "hmsAnalyticsKit_Swift_DemoUITests" */; 229 | buildPhases = ( 230 | 9D9AED26A3BF781838DD56B6 /* [CP] Check Pods Manifest.lock */, 231 | A6174048256B5C810053FAD9 /* Sources */, 232 | A6174049256B5C810053FAD9 /* Frameworks */, 233 | A617404A256B5C810053FAD9 /* Resources */, 234 | D116087640C61E88875265C4 /* [CP] Copy Pods Resources */, 235 | ); 236 | buildRules = ( 237 | ); 238 | dependencies = ( 239 | A617404E256B5C810053FAD9 /* PBXTargetDependency */, 240 | ); 241 | name = hmsAnalyticsKit_Swift_DemoUITests; 242 | productName = hmsAnalyticsKit_Swift_DemoUITests; 243 | productReference = A617404C256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.xctest */; 244 | productType = "com.apple.product-type.bundle.ui-testing"; 245 | }; 246 | /* End PBXNativeTarget section */ 247 | 248 | /* Begin PBXProject section */ 249 | A6174023256B5C7C0053FAD9 /* Project object */ = { 250 | isa = PBXProject; 251 | attributes = { 252 | LastSwiftUpdateCheck = 1160; 253 | LastUpgradeCheck = 1160; 254 | ORGANIZATIONNAME = epro; 255 | TargetAttributes = { 256 | A617402A256B5C7C0053FAD9 = { 257 | CreatedOnToolsVersion = 11.6; 258 | }; 259 | A6174040256B5C800053FAD9 = { 260 | CreatedOnToolsVersion = 11.6; 261 | TestTargetID = A617402A256B5C7C0053FAD9; 262 | }; 263 | A617404B256B5C810053FAD9 = { 264 | CreatedOnToolsVersion = 11.6; 265 | TestTargetID = A617402A256B5C7C0053FAD9; 266 | }; 267 | }; 268 | }; 269 | buildConfigurationList = A6174026256B5C7C0053FAD9 /* Build configuration list for PBXProject "hmsAnalyticsKit_Swift_Demo" */; 270 | compatibilityVersion = "Xcode 9.3"; 271 | developmentRegion = en; 272 | hasScannedForEncodings = 0; 273 | knownRegions = ( 274 | en, 275 | Base, 276 | ); 277 | mainGroup = A6174022256B5C7C0053FAD9; 278 | productRefGroup = A617402C256B5C7C0053FAD9 /* Products */; 279 | projectDirPath = ""; 280 | projectRoot = ""; 281 | targets = ( 282 | A617402A256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo */, 283 | A6174040256B5C800053FAD9 /* hmsAnalyticsKit_Swift_DemoTests */, 284 | A617404B256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests */, 285 | ); 286 | }; 287 | /* End PBXProject section */ 288 | 289 | /* Begin PBXResourcesBuildPhase section */ 290 | A6174029256B5C7C0053FAD9 /* Resources */ = { 291 | isa = PBXResourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | A6F80079256B8F3000EB8F91 /* LaunchScreen.storyboard in Resources */, 295 | A6F80070256B8F1000EB8F91 /* Main.storyboard in Resources */, 296 | A6174038256B5C800053FAD9 /* Assets.xcassets in Resources */, 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | }; 300 | A617403F256B5C800053FAD9 /* Resources */ = { 301 | isa = PBXResourcesBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | }; 307 | A617404A256B5C810053FAD9 /* Resources */ = { 308 | isa = PBXResourcesBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | runOnlyForDeploymentPostprocessing = 0; 313 | }; 314 | /* End PBXResourcesBuildPhase section */ 315 | 316 | /* Begin PBXShellScriptBuildPhase section */ 317 | 366098FA79E1374D314FC321 /* [CP] Copy Pods Resources */ = { 318 | isa = PBXShellScriptBuildPhase; 319 | buildActionMask = 2147483647; 320 | files = ( 321 | ); 322 | inputFileListPaths = ( 323 | "${PODS_ROOT}/Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo/Pods-hmsAnalyticsKit_Swift_Demo-resources-${CONFIGURATION}-input-files.xcfilelist", 324 | ); 325 | name = "[CP] Copy Pods Resources"; 326 | outputFileListPaths = ( 327 | "${PODS_ROOT}/Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo/Pods-hmsAnalyticsKit_Swift_Demo-resources-${CONFIGURATION}-output-files.xcfilelist", 328 | ); 329 | runOnlyForDeploymentPostprocessing = 0; 330 | shellPath = /bin/sh; 331 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo/Pods-hmsAnalyticsKit_Swift_Demo-resources.sh\"\n"; 332 | showEnvVarsInLog = 0; 333 | }; 334 | 49DBB3A1BB5BE918EBC9F88D /* [CP] Check Pods Manifest.lock */ = { 335 | isa = PBXShellScriptBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | ); 339 | inputFileListPaths = ( 340 | ); 341 | inputPaths = ( 342 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 343 | "${PODS_ROOT}/Manifest.lock", 344 | ); 345 | name = "[CP] Check Pods Manifest.lock"; 346 | outputFileListPaths = ( 347 | ); 348 | outputPaths = ( 349 | "$(DERIVED_FILE_DIR)/Pods-hmsAnalyticsKit_Swift_Demo-checkManifestLockResult.txt", 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | shellPath = /bin/sh; 353 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 354 | showEnvVarsInLog = 0; 355 | }; 356 | 9D9AED26A3BF781838DD56B6 /* [CP] Check Pods Manifest.lock */ = { 357 | isa = PBXShellScriptBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ); 361 | inputFileListPaths = ( 362 | ); 363 | inputPaths = ( 364 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 365 | "${PODS_ROOT}/Manifest.lock", 366 | ); 367 | name = "[CP] Check Pods Manifest.lock"; 368 | outputFileListPaths = ( 369 | ); 370 | outputPaths = ( 371 | "$(DERIVED_FILE_DIR)/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests-checkManifestLockResult.txt", 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | shellPath = /bin/sh; 375 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 376 | showEnvVarsInLog = 0; 377 | }; 378 | D116087640C61E88875265C4 /* [CP] Copy Pods Resources */ = { 379 | isa = PBXShellScriptBuildPhase; 380 | buildActionMask = 2147483647; 381 | files = ( 382 | ); 383 | inputFileListPaths = ( 384 | "${PODS_ROOT}/Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests-resources-${CONFIGURATION}-input-files.xcfilelist", 385 | ); 386 | name = "[CP] Copy Pods Resources"; 387 | outputFileListPaths = ( 388 | "${PODS_ROOT}/Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests-resources-${CONFIGURATION}-output-files.xcfilelist", 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | shellPath = /bin/sh; 392 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests/Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests-resources.sh\"\n"; 393 | showEnvVarsInLog = 0; 394 | }; 395 | /* End PBXShellScriptBuildPhase section */ 396 | 397 | /* Begin PBXSourcesBuildPhase section */ 398 | A6174027256B5C7C0053FAD9 /* Sources */ = { 399 | isa = PBXSourcesBuildPhase; 400 | buildActionMask = 2147483647; 401 | files = ( 402 | A6F8006F256B8F1000EB8F91 /* MainViewController.swift in Sources */, 403 | A617402F256B5C7C0053FAD9 /* AppDelegate.swift in Sources */, 404 | A6174031256B5C7C0053FAD9 /* SceneDelegate.swift in Sources */, 405 | A60EC0DB256F912E00FAE8A1 /* HToastView.m in Sources */, 406 | A6F80071256B8F1000EB8F91 /* SettingViewController.swift in Sources */, 407 | A60EC0DA256F912E00FAE8A1 /* HToast.m in Sources */, 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | A617403D256B5C800053FAD9 /* Sources */ = { 412 | isa = PBXSourcesBuildPhase; 413 | buildActionMask = 2147483647; 414 | files = ( 415 | A6174046256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoTests.swift in Sources */, 416 | ); 417 | runOnlyForDeploymentPostprocessing = 0; 418 | }; 419 | A6174048256B5C810053FAD9 /* Sources */ = { 420 | isa = PBXSourcesBuildPhase; 421 | buildActionMask = 2147483647; 422 | files = ( 423 | A6174051256B5C810053FAD9 /* hmsAnalyticsKit_Swift_DemoUITests.swift in Sources */, 424 | ); 425 | runOnlyForDeploymentPostprocessing = 0; 426 | }; 427 | /* End PBXSourcesBuildPhase section */ 428 | 429 | /* Begin PBXTargetDependency section */ 430 | A6174043256B5C800053FAD9 /* PBXTargetDependency */ = { 431 | isa = PBXTargetDependency; 432 | target = A617402A256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo */; 433 | targetProxy = A6174042256B5C800053FAD9 /* PBXContainerItemProxy */; 434 | }; 435 | A617404E256B5C810053FAD9 /* PBXTargetDependency */ = { 436 | isa = PBXTargetDependency; 437 | target = A617402A256B5C7C0053FAD9 /* hmsAnalyticsKit_Swift_Demo */; 438 | targetProxy = A617404D256B5C810053FAD9 /* PBXContainerItemProxy */; 439 | }; 440 | /* End PBXTargetDependency section */ 441 | 442 | /* Begin XCBuildConfiguration section */ 443 | A6174053256B5C810053FAD9 /* Debug */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | ALWAYS_SEARCH_USER_PATHS = NO; 447 | CLANG_ANALYZER_NONNULL = YES; 448 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 450 | CLANG_CXX_LIBRARY = "libc++"; 451 | CLANG_ENABLE_MODULES = YES; 452 | CLANG_ENABLE_OBJC_ARC = YES; 453 | CLANG_ENABLE_OBJC_WEAK = YES; 454 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 455 | CLANG_WARN_BOOL_CONVERSION = YES; 456 | CLANG_WARN_COMMA = YES; 457 | CLANG_WARN_CONSTANT_CONVERSION = YES; 458 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 459 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 460 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 461 | CLANG_WARN_EMPTY_BODY = YES; 462 | CLANG_WARN_ENUM_CONVERSION = YES; 463 | CLANG_WARN_INFINITE_RECURSION = YES; 464 | CLANG_WARN_INT_CONVERSION = YES; 465 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 466 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 467 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 468 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 469 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 470 | CLANG_WARN_STRICT_PROTOTYPES = YES; 471 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 472 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 473 | CLANG_WARN_UNREACHABLE_CODE = YES; 474 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 475 | COMPILER_INDEX_STORE_ENABLE = NO; 476 | COPY_PHASE_STRIP = NO; 477 | DEBUG_INFORMATION_FORMAT = dwarf; 478 | ENABLE_STRICT_OBJC_MSGSEND = YES; 479 | ENABLE_TESTABILITY = YES; 480 | GCC_C_LANGUAGE_STANDARD = gnu11; 481 | GCC_DYNAMIC_NO_PIC = NO; 482 | GCC_NO_COMMON_BLOCKS = YES; 483 | GCC_OPTIMIZATION_LEVEL = 0; 484 | GCC_PREPROCESSOR_DEFINITIONS = ( 485 | "DEBUG=1", 486 | "$(inherited)", 487 | ); 488 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 489 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 490 | GCC_WARN_UNDECLARED_SELECTOR = YES; 491 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 492 | GCC_WARN_UNUSED_FUNCTION = YES; 493 | GCC_WARN_UNUSED_VARIABLE = YES; 494 | IPHONEOS_DEPLOYMENT_TARGET = 13.6; 495 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 496 | MTL_FAST_MATH = YES; 497 | ONLY_ACTIVE_ARCH = YES; 498 | SDKROOT = iphoneos; 499 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 500 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 501 | }; 502 | name = Debug; 503 | }; 504 | A6174054256B5C810053FAD9 /* Release */ = { 505 | isa = XCBuildConfiguration; 506 | buildSettings = { 507 | ALWAYS_SEARCH_USER_PATHS = NO; 508 | CLANG_ANALYZER_NONNULL = YES; 509 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 510 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 511 | CLANG_CXX_LIBRARY = "libc++"; 512 | CLANG_ENABLE_MODULES = YES; 513 | CLANG_ENABLE_OBJC_ARC = YES; 514 | CLANG_ENABLE_OBJC_WEAK = YES; 515 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 516 | CLANG_WARN_BOOL_CONVERSION = YES; 517 | CLANG_WARN_COMMA = YES; 518 | CLANG_WARN_CONSTANT_CONVERSION = YES; 519 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 520 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 521 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 522 | CLANG_WARN_EMPTY_BODY = YES; 523 | CLANG_WARN_ENUM_CONVERSION = YES; 524 | CLANG_WARN_INFINITE_RECURSION = YES; 525 | CLANG_WARN_INT_CONVERSION = YES; 526 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 527 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 528 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 529 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 530 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 531 | CLANG_WARN_STRICT_PROTOTYPES = YES; 532 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 533 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 534 | CLANG_WARN_UNREACHABLE_CODE = YES; 535 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 536 | COMPILER_INDEX_STORE_ENABLE = NO; 537 | COPY_PHASE_STRIP = NO; 538 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 539 | ENABLE_NS_ASSERTIONS = NO; 540 | ENABLE_STRICT_OBJC_MSGSEND = YES; 541 | GCC_C_LANGUAGE_STANDARD = gnu11; 542 | GCC_NO_COMMON_BLOCKS = YES; 543 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 544 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 545 | GCC_WARN_UNDECLARED_SELECTOR = YES; 546 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 547 | GCC_WARN_UNUSED_FUNCTION = YES; 548 | GCC_WARN_UNUSED_VARIABLE = YES; 549 | IPHONEOS_DEPLOYMENT_TARGET = 13.6; 550 | MTL_ENABLE_DEBUG_INFO = NO; 551 | MTL_FAST_MATH = YES; 552 | SDKROOT = iphoneos; 553 | SWIFT_COMPILATION_MODE = wholemodule; 554 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 555 | VALIDATE_PRODUCT = YES; 556 | }; 557 | name = Release; 558 | }; 559 | A6174056256B5C810053FAD9 /* Debug */ = { 560 | isa = XCBuildConfiguration; 561 | baseConfigurationReference = 531E084EFB4DCA4185104E77 /* Pods-hmsAnalyticsKit_Swift_Demo.debug.xcconfig */; 562 | buildSettings = { 563 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 564 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 565 | CODE_SIGN_STYLE = Automatic; 566 | DEVELOPMENT_TEAM = KSVZ54U2HD; 567 | INFOPLIST_FILE = hmsAnalyticsKit_Swift_Demo/Info.plist; 568 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 569 | LD_RUNPATH_SEARCH_PATHS = ( 570 | "$(inherited)", 571 | "@executable_path/Frameworks", 572 | ); 573 | MARKETING_VERSION = 5.1.0.300; 574 | PRODUCT_BUNDLE_IDENTIFIER = com.analyticskit.ios.demo; 575 | PRODUCT_NAME = "$(TARGET_NAME)"; 576 | SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/hmsAnalyticsKit_Swift_Demo/hmsAnalyticsKit_Swift_Demo-Bridging-Header.h"; 577 | SWIFT_VERSION = 5.0; 578 | TARGETED_DEVICE_FAMILY = "1,2"; 579 | }; 580 | name = Debug; 581 | }; 582 | A6174057256B5C810053FAD9 /* Release */ = { 583 | isa = XCBuildConfiguration; 584 | baseConfigurationReference = C7AED794C4927517B26FABD2 /* Pods-hmsAnalyticsKit_Swift_Demo.release.xcconfig */; 585 | buildSettings = { 586 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 587 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 588 | CODE_SIGN_STYLE = Automatic; 589 | DEVELOPMENT_TEAM = KSVZ54U2HD; 590 | INFOPLIST_FILE = hmsAnalyticsKit_Swift_Demo/Info.plist; 591 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 592 | LD_RUNPATH_SEARCH_PATHS = ( 593 | "$(inherited)", 594 | "@executable_path/Frameworks", 595 | ); 596 | MARKETING_VERSION = 5.1.0.300; 597 | PRODUCT_BUNDLE_IDENTIFIER = com.analyticskit.ios.demo; 598 | PRODUCT_NAME = "$(TARGET_NAME)"; 599 | SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/hmsAnalyticsKit_Swift_Demo/hmsAnalyticsKit_Swift_Demo-Bridging-Header.h"; 600 | SWIFT_VERSION = 5.0; 601 | TARGETED_DEVICE_FAMILY = "1,2"; 602 | }; 603 | name = Release; 604 | }; 605 | A6174059256B5C810053FAD9 /* Debug */ = { 606 | isa = XCBuildConfiguration; 607 | buildSettings = { 608 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 609 | BUNDLE_LOADER = "$(TEST_HOST)"; 610 | CODE_SIGN_STYLE = Automatic; 611 | DEVELOPMENT_TEAM = JEZ33ZWDSQ; 612 | INFOPLIST_FILE = hmsAnalyticsKit_Swift_DemoTests/Info.plist; 613 | IPHONEOS_DEPLOYMENT_TARGET = 13.6; 614 | LD_RUNPATH_SEARCH_PATHS = ( 615 | "$(inherited)", 616 | "@executable_path/Frameworks", 617 | "@loader_path/Frameworks", 618 | ); 619 | PRODUCT_BUNDLE_IDENTIFIER = "com.epro.hmsAnalyticsKit.hmsAnalyticsKit-Swift-DemoTests"; 620 | PRODUCT_NAME = "$(TARGET_NAME)"; 621 | SWIFT_VERSION = 5.0; 622 | TARGETED_DEVICE_FAMILY = "1,2"; 623 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/hmsAnalyticsKit_Swift_Demo.app/hmsAnalyticsKit_Swift_Demo"; 624 | }; 625 | name = Debug; 626 | }; 627 | A617405A256B5C810053FAD9 /* Release */ = { 628 | isa = XCBuildConfiguration; 629 | buildSettings = { 630 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 631 | BUNDLE_LOADER = "$(TEST_HOST)"; 632 | CODE_SIGN_STYLE = Automatic; 633 | DEVELOPMENT_TEAM = JEZ33ZWDSQ; 634 | INFOPLIST_FILE = hmsAnalyticsKit_Swift_DemoTests/Info.plist; 635 | IPHONEOS_DEPLOYMENT_TARGET = 13.6; 636 | LD_RUNPATH_SEARCH_PATHS = ( 637 | "$(inherited)", 638 | "@executable_path/Frameworks", 639 | "@loader_path/Frameworks", 640 | ); 641 | PRODUCT_BUNDLE_IDENTIFIER = "com.epro.hmsAnalyticsKit.hmsAnalyticsKit-Swift-DemoTests"; 642 | PRODUCT_NAME = "$(TARGET_NAME)"; 643 | SWIFT_VERSION = 5.0; 644 | TARGETED_DEVICE_FAMILY = "1,2"; 645 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/hmsAnalyticsKit_Swift_Demo.app/hmsAnalyticsKit_Swift_Demo"; 646 | }; 647 | name = Release; 648 | }; 649 | A617405C256B5C810053FAD9 /* Debug */ = { 650 | isa = XCBuildConfiguration; 651 | baseConfigurationReference = C19A1972DC26A3817D605DFC /* Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.debug.xcconfig */; 652 | buildSettings = { 653 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 654 | CODE_SIGN_STYLE = Automatic; 655 | DEVELOPMENT_TEAM = JEZ33ZWDSQ; 656 | INFOPLIST_FILE = hmsAnalyticsKit_Swift_DemoUITests/Info.plist; 657 | LD_RUNPATH_SEARCH_PATHS = ( 658 | "$(inherited)", 659 | "@executable_path/Frameworks", 660 | "@loader_path/Frameworks", 661 | ); 662 | PRODUCT_BUNDLE_IDENTIFIER = "com.epro.hmsAnalyticsKit.hmsAnalyticsKit-Swift-DemoUITests"; 663 | PRODUCT_NAME = "$(TARGET_NAME)"; 664 | SWIFT_VERSION = 5.0; 665 | TARGETED_DEVICE_FAMILY = "1,2"; 666 | TEST_TARGET_NAME = hmsAnalyticsKit_Swift_Demo; 667 | }; 668 | name = Debug; 669 | }; 670 | A617405D256B5C810053FAD9 /* Release */ = { 671 | isa = XCBuildConfiguration; 672 | baseConfigurationReference = B769997659DDB646FB7404F7 /* Pods-hmsAnalyticsKit_Swift_Demo-hmsAnalyticsKit_Swift_DemoUITests.release.xcconfig */; 673 | buildSettings = { 674 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 675 | CODE_SIGN_STYLE = Automatic; 676 | DEVELOPMENT_TEAM = JEZ33ZWDSQ; 677 | INFOPLIST_FILE = hmsAnalyticsKit_Swift_DemoUITests/Info.plist; 678 | LD_RUNPATH_SEARCH_PATHS = ( 679 | "$(inherited)", 680 | "@executable_path/Frameworks", 681 | "@loader_path/Frameworks", 682 | ); 683 | PRODUCT_BUNDLE_IDENTIFIER = "com.epro.hmsAnalyticsKit.hmsAnalyticsKit-Swift-DemoUITests"; 684 | PRODUCT_NAME = "$(TARGET_NAME)"; 685 | SWIFT_VERSION = 5.0; 686 | TARGETED_DEVICE_FAMILY = "1,2"; 687 | TEST_TARGET_NAME = hmsAnalyticsKit_Swift_Demo; 688 | }; 689 | name = Release; 690 | }; 691 | /* End XCBuildConfiguration section */ 692 | 693 | /* Begin XCConfigurationList section */ 694 | A6174026256B5C7C0053FAD9 /* Build configuration list for PBXProject "hmsAnalyticsKit_Swift_Demo" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | A6174053256B5C810053FAD9 /* Debug */, 698 | A6174054256B5C810053FAD9 /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | A6174055256B5C810053FAD9 /* Build configuration list for PBXNativeTarget "hmsAnalyticsKit_Swift_Demo" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | A6174056256B5C810053FAD9 /* Debug */, 707 | A6174057256B5C810053FAD9 /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | A6174058256B5C810053FAD9 /* Build configuration list for PBXNativeTarget "hmsAnalyticsKit_Swift_DemoTests" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | A6174059256B5C810053FAD9 /* Debug */, 716 | A617405A256B5C810053FAD9 /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | A617405B256B5C810053FAD9 /* Build configuration list for PBXNativeTarget "hmsAnalyticsKit_Swift_DemoUITests" */ = { 722 | isa = XCConfigurationList; 723 | buildConfigurations = ( 724 | A617405C256B5C810053FAD9 /* Debug */, 725 | A617405D256B5C810053FAD9 /* Release */, 726 | ); 727 | defaultConfigurationIsVisible = 0; 728 | defaultConfigurationName = Release; 729 | }; 730 | /* End XCConfigurationList section */ 731 | }; 732 | rootObject = A6174023256B5C7C0053FAD9 /* Project object */; 733 | } 734 | --------------------------------------------------------------------------------