react-native-gemius-plugin 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/README.md +44 -0
- package/android/.classpath +6 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/8.0.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.0.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.0.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +19 -0
- package/android/.idea/jarRepositories.xml +55 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_experimental_1_1_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_jvm_1_6_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_1_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_browser_browser_1_4_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_core_core_1_8_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_3_1.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_1_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_1_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_3_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_privacysandbox_ads_ads_adservices_1_0_0_beta05_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_privacysandbox_ads_ads_adservices_java_1_0_0_beta05_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_startup_startup_runtime_1_0_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__androidx_work_work_runtime_2_7_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__ch_acra_acra_core_5_7_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__ch_acra_acra_http_5_7_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__ch_acra_acra_javacore_5_7_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_gemius_mobile_sdk_2_0_8_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_22_4_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_base_22_4_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_identifier_18_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_lite_22_4_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_appset_16_0_2_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_base_18_2_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_18_1_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_base_20_1_2_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_sdk_api_20_1_2_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_18_0_2_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_ump_user_messaging_platform_2_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_code_gson_gson_2_8_5.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml +9 -0
- package/android/.idea/libraries/Gradle__com_huawei_hms_ads_identifier_3_4_58_301_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_annotations_23_0_0.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_8_21.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_8_21.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_8_20.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_8_20.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_core_jvm_1_7_1.xml +13 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/modules/android.androidTest.iml +89 -0
- package/android/.idea/modules/android.iml +32 -0
- package/android/.idea/modules/android.main.iml +94 -0
- package/android/.idea/modules/android.unitTest.iml +84 -0
- package/android/.idea/modules.xml +11 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.project +34 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/README.md +14 -0
- package/android/build.gradle +87 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/android/gradle.properties +18 -0
- package/android/gradlew +172 -0
- package/android/gradlew.bat +84 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/reactlibrary/GemiusPluginModule.java +162 -0
- package/android/src/main/java/com/reactlibrary/GemiusPluginPackage.java +20 -0
- package/index.d.ts +27 -0
- package/index.js +66 -0
- package/ios/Frameworks/GemiusSDK.xcframework/Info.plist +40 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/GemiusSDK +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/AdData.h +23 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/AdDefine.h +16 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/AdOceanConfig.h +14 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/AudienceConfig.h +19 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/AudienceEvent.h +18 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/BaseConfig.h +19 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/BaseEvent.h +37 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/Config.h +25 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/ContentData.h +15 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/EventAdData.h +7 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/EventData.h +14 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/EventProgramData.h +7 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/GEMBillboardAd.h +43 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/GEMFullScreenAd.h +44 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/GemiusSDK.h +34 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/NetpanelConfig.h +17 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/NetpanelEvent.h +23 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/Player.h +40 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/PlayerData.h +8 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/ProgramData.h +41 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/GemiusSDK +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/AdData.h +23 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/AdDefine.h +16 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/AdOceanConfig.h +14 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/AudienceConfig.h +19 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/AudienceEvent.h +18 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/BaseConfig.h +19 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/BaseEvent.h +37 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/Config.h +25 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/ContentData.h +15 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/EventAdData.h +7 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/EventData.h +14 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/EventProgramData.h +7 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/GEMBillboardAd.h +43 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/GEMFullScreenAd.h +44 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/GemiusSDK.h +34 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/NetpanelConfig.h +17 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/NetpanelEvent.h +23 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/Player.h +40 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/PlayerData.h +8 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Headers/ProgramData.h +41 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeResources +417 -0
- package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64_x86_64-simulator/GemiusSDK.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/GemiusPlugin.h +5 -0
- package/ios/GemiusPlugin.m +163 -0
- package/ios/GemiusPlugin.xcodeproj/project.pbxproj +313 -0
- package/ios/GemiusPlugin.xcodeproj/xcshareddata/xcschemes/GemiusPlugin.xcscheme +67 -0
- package/ios/GemiusPlugin.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/GemiusPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/GemiusPlugin.xcworkspace/xcuserdata/kestasvenslauskas.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +30 -0
- package/react-native-gemius-plugin.podspec +30 -0
package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/GemiusSDK.h
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GemiusSDK.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <UIKit/UIKit.h>
|
|
9
|
+
|
|
10
|
+
//! Project version number for GemiusSDK.
|
|
11
|
+
FOUNDATION_EXPORT double GemiusSDKVersionNumber;
|
|
12
|
+
|
|
13
|
+
//! Project version string for GemiusSDK.
|
|
14
|
+
FOUNDATION_EXPORT const unsigned char GemiusSDKVersionString[];
|
|
15
|
+
|
|
16
|
+
// In this header, you should import all the public headers of your framework using statements like #import <GemiusSDK/PublicHeader.h>
|
|
17
|
+
|
|
18
|
+
#import <GemiusSDK/Config.h>
|
|
19
|
+
#import <GemiusSDK/AdOceanConfig.h>
|
|
20
|
+
#import <GemiusSDK/AdDefine.h>
|
|
21
|
+
#import <GemiusSDK/GEMBillboardAd.h>
|
|
22
|
+
#import <GemiusSDK/GEMFullScreenAd.h>
|
|
23
|
+
#import <GemiusSDK/AudienceEvent.h>
|
|
24
|
+
#import <GemiusSDK/NetpanelEvent.h>
|
|
25
|
+
#import <GemiusSDK/AudienceConfig.h>
|
|
26
|
+
#import <GemiusSDK/NetpanelConfig.h>
|
|
27
|
+
#import <GemiusSDK/ContentData.h>
|
|
28
|
+
#import <GemiusSDK/AdData.h>
|
|
29
|
+
#import <GemiusSDK/ProgramData.h>
|
|
30
|
+
#import <GemiusSDK/EventData.h>
|
|
31
|
+
#import <GemiusSDK/EventProgramData.h>
|
|
32
|
+
#import <GemiusSDK/EventAdData.h>
|
|
33
|
+
#import <GemiusSDK/PlayerData.h>
|
|
34
|
+
#import <GemiusSDK/Player.h>
|
package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/NetpanelConfig.h
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NetpanelConfig.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "BaseConfig.h"
|
|
9
|
+
|
|
10
|
+
@interface GEMNetpanelConfig : GEMBaseConfig
|
|
11
|
+
|
|
12
|
+
@property(nonatomic, strong)NSString *netpanelUID;
|
|
13
|
+
|
|
14
|
+
+(void)sendBufferedEvents;
|
|
15
|
+
+(GEMNetpanelConfig*)sharedInstance;
|
|
16
|
+
|
|
17
|
+
@end
|
package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/NetpanelEvent.h
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NetpanelEvent.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "BaseEvent.h"
|
|
9
|
+
|
|
10
|
+
@interface GEMNetpanelEvent : GEMBaseEvent
|
|
11
|
+
|
|
12
|
+
//Setters
|
|
13
|
+
//-------------------------------------
|
|
14
|
+
-(void)setReferrer:(NSString*)referrer;
|
|
15
|
+
-(void)setPageUrl:(NSString*)pageUrl;
|
|
16
|
+
-(void)setCustomUserAgent:(NSString*)userAgent;
|
|
17
|
+
|
|
18
|
+
//Methods
|
|
19
|
+
//-------------------------------------
|
|
20
|
+
-(void)removeReferer;
|
|
21
|
+
-(void)removePageUrl;
|
|
22
|
+
-(void)resetUserAgent;
|
|
23
|
+
@end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import "ProgramData.h"
|
|
3
|
+
#import "AdData.h"
|
|
4
|
+
#import "EventProgramData.h"
|
|
5
|
+
#import "EventAdData.h"
|
|
6
|
+
#import "PlayerData.h"
|
|
7
|
+
|
|
8
|
+
typedef NS_ENUM(NSInteger, GSMEventType) {
|
|
9
|
+
GSM_PLAY, GSM_PAUSE, GSM_STOP, GSM_CLOSE, GSM_BUFFER, GSM_BREAK, GSM_SEEK, GSM_COMPLETE, GSM_SKIP, GSM_NEXT, GSM_PREV, GSM_CHANGE_VOL, GSM_CHANGE_QUAL, GSM_CHANGE_RES
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@interface GSMPlayer : NSObject < NSCoding >
|
|
14
|
+
|
|
15
|
+
-(id) init __attribute__((unavailable("init not available")));
|
|
16
|
+
|
|
17
|
+
-(GSMPlayer*)initWithID:(NSString*)playerID
|
|
18
|
+
withHost:(NSString*)hitCollectorHost
|
|
19
|
+
withGemiusID:(NSString*)gemiusID
|
|
20
|
+
withData:(GSMPlayerData*)playerData;
|
|
21
|
+
|
|
22
|
+
-(void)newProgram:(NSString*)programID
|
|
23
|
+
withData:(GSMProgramData*)programData;
|
|
24
|
+
|
|
25
|
+
-(void)newAd:(NSString*)adID
|
|
26
|
+
withData:(GSMAdData*)adData;
|
|
27
|
+
|
|
28
|
+
-(void)programEvent:(GSMEventType)eventType
|
|
29
|
+
forProgram:(NSString*)programID
|
|
30
|
+
atOffset:(NSNumber*)offset
|
|
31
|
+
withData:(GSMEventProgramData*)eventData;
|
|
32
|
+
|
|
33
|
+
-(void)adEvent:(GSMEventType)eventType
|
|
34
|
+
forProgram:(NSString*)programID
|
|
35
|
+
forAd:(NSString*)adID
|
|
36
|
+
atOffset:(NSNumber*)offset
|
|
37
|
+
withData:(GSMEventAdData*)eventData;
|
|
38
|
+
|
|
39
|
+
@end
|
|
40
|
+
|
package/ios/Frameworks/GemiusSDK.xcframework/ios-arm64/GemiusSDK.framework/Headers/ProgramData.h
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#import "ContentData.h"
|
|
2
|
+
|
|
3
|
+
typedef NS_ENUM(NSInteger, GSMProgramType) {
|
|
4
|
+
GSM_AUDIO = 1,
|
|
5
|
+
GSM_VIDEO
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
typedef NS_ENUM(NSInteger, GSMProgramGenre) {
|
|
9
|
+
GSMProgramGenreUndefined = 0,
|
|
10
|
+
GSMProgramGenreLiveProgram = 1,
|
|
11
|
+
GSMProgramGenreFilm = 2,
|
|
12
|
+
GSMProgramGenreSeries = 3,
|
|
13
|
+
GSMProgramGenreProgram = 4,
|
|
14
|
+
GSMProgramGenreMusic = 5,
|
|
15
|
+
GSMProgramGenreTrailer = 6
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
typedef NS_ENUM(NSInteger, GSMTransmissionType) {
|
|
19
|
+
GSMTransmissionTypeUndefined = 0,
|
|
20
|
+
GSMTransmissionTypeOnDemand = 1,
|
|
21
|
+
GSMTransmissionTypeBroadcast = 2
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
@interface GSMProgramData : GSMContentData
|
|
25
|
+
|
|
26
|
+
@property (nonatomic) GSMProgramType programType;
|
|
27
|
+
@property (nonatomic, copy) NSString *series;
|
|
28
|
+
@property (nonatomic, copy) NSString *typology;
|
|
29
|
+
@property (nonatomic, copy) NSString *premiereDate;
|
|
30
|
+
@property (nonatomic, copy) NSString *externalPremiereDate;
|
|
31
|
+
@property (nonatomic) GSMProgramGenre programGenre;
|
|
32
|
+
@property (nonatomic, copy) NSString *programPartialName;
|
|
33
|
+
@property (nonatomic, copy) NSString *programProducer;
|
|
34
|
+
@property (nonatomic, copy) NSString *programThematicCategory;
|
|
35
|
+
@property (nonatomic, copy) NSString *programSeason;
|
|
36
|
+
@property (nonatomic, copy) NSString *transmissionChannel;
|
|
37
|
+
@property (nonatomic, copy) NSString *transmissionStartTime;
|
|
38
|
+
@property (nonatomic) GSMTransmissionType transmissionType;
|
|
39
|
+
|
|
40
|
+
@end
|
|
41
|
+
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#import "ContentData.h"
|
|
2
|
+
|
|
3
|
+
typedef NS_ENUM(NSInteger, GSMAdType) {
|
|
4
|
+
GSM_PROMO = 1,
|
|
5
|
+
GSM_SPOT,
|
|
6
|
+
GSM_SPONSOR,
|
|
7
|
+
GSM_AD_BREAK
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
typedef NS_ENUM(NSInteger, GSMAdFormat) {
|
|
11
|
+
GSMAdFormatUndefined = 0,
|
|
12
|
+
GSMAdFormatVideo = 1,
|
|
13
|
+
GSMAdFormatAudio = 2
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
@interface GSMAdData : GSMContentData
|
|
17
|
+
|
|
18
|
+
@property (nonatomic) GSMAdType adType;
|
|
19
|
+
@property (nonatomic) GSMAdFormat adFormat;
|
|
20
|
+
@property (nonatomic, copy) NSString *campaignClassification;
|
|
21
|
+
|
|
22
|
+
@end
|
|
23
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AdDefine.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef AdDefine_h
|
|
9
|
+
#define AdDefine_h
|
|
10
|
+
|
|
11
|
+
typedef void (^onGEMAdReadyBlock)(BOOL hasAd);
|
|
12
|
+
typedef void (^onGEMFailBlock)(NSError *error);
|
|
13
|
+
typedef void (^onGEMAdClosedBlock)(void);
|
|
14
|
+
typedef void (^onGEMContentReadyBlock)(void);
|
|
15
|
+
|
|
16
|
+
#endif /* AdDefine_h */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AdOceanConfig.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@interface GEMAdOceanConfig : NSObject
|
|
11
|
+
@property(nonatomic, strong) NSString *emitterHost;
|
|
12
|
+
@property(nonatomic, strong) NSString *baseUrl;
|
|
13
|
+
+ (GEMAdOceanConfig*)sharedInstance;
|
|
14
|
+
@end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AudienceConfig.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import "BaseConfig.h"
|
|
10
|
+
|
|
11
|
+
@interface GEMAudienceConfig : GEMBaseConfig
|
|
12
|
+
|
|
13
|
+
@property(nonatomic, assign) BOOL bufferedMode;
|
|
14
|
+
@property(nonatomic, strong) NSNumber *bufferFlushInterval;
|
|
15
|
+
@property(nonatomic, assign) BOOL powerSavingMode;
|
|
16
|
+
|
|
17
|
+
+(GEMAudienceConfig*)sharedInstance;
|
|
18
|
+
|
|
19
|
+
@end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AudienceEvent.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import "BaseEvent.h"
|
|
10
|
+
|
|
11
|
+
@interface GEMAudienceEvent : GEMBaseEvent
|
|
12
|
+
|
|
13
|
+
//Static methods
|
|
14
|
+
//---------------------------------------
|
|
15
|
+
+(void)flushBufferWithForce:(BOOL)force;
|
|
16
|
+
+(NSTimeInterval)eventLastSendTS;
|
|
17
|
+
|
|
18
|
+
@end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// BaseConfig.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@interface GEMBaseConfig : NSObject
|
|
11
|
+
|
|
12
|
+
@property(nonatomic, strong) NSString *hitcollectorHost;
|
|
13
|
+
@property(nonatomic, strong) NSString *scriptIdentifier;
|
|
14
|
+
@property(nonatomic, strong) NSDictionary *extraParameters;
|
|
15
|
+
|
|
16
|
+
@property(nonatomic, assign) NSInteger bufferSize;
|
|
17
|
+
@property(nonatomic, assign) NSInteger bufferingTimeout;
|
|
18
|
+
|
|
19
|
+
@end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//
|
|
2
|
+
// BaseEvent.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
typedef NS_ENUM(NSInteger, GEMEventType) {
|
|
11
|
+
GEM_EVENT_FULL_PAGEVIEW,
|
|
12
|
+
GEM_EVENT_PARTIAL_PAGEVIEW,
|
|
13
|
+
GEM_EVENT_SONAR,
|
|
14
|
+
GEM_EVENT_ACTION,
|
|
15
|
+
GEM_EVENT_STREAM,
|
|
16
|
+
GEM_EVENT_DATA
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
#define GEM_EventTypeString(enum) [@[@"&et=view&hsrc=1",@"&et=view&hsrc=2",@"&et=sonar&hsrc=2", @"&et=action&hsrc=3", @"&et=stream&hsrc=2",@"&et=data&hsrc=3"] objectAtIndex:enum]
|
|
20
|
+
|
|
21
|
+
@interface GEMBaseEvent : NSObject
|
|
22
|
+
|
|
23
|
+
//Properties
|
|
24
|
+
//---------------------------------------
|
|
25
|
+
@property(nonatomic, assign) GEMEventType eventType;
|
|
26
|
+
@property(nonatomic, strong) NSString *hitcollectorHost;
|
|
27
|
+
@property(nonatomic, strong) NSString *scriptIdentifier;
|
|
28
|
+
|
|
29
|
+
//Methods
|
|
30
|
+
//---------------------------------------
|
|
31
|
+
-(void)setExtraParameters:(NSDictionary*)extraParameters;
|
|
32
|
+
-(NSDictionary*)getExtraParameters;
|
|
33
|
+
-(void)addExtraParameter:(NSString*)key value:(NSString*)value;
|
|
34
|
+
-(void)removeExtraParameter:(NSString*)key;
|
|
35
|
+
-(void)sendEvent;
|
|
36
|
+
|
|
37
|
+
@end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Config.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <UIKit/UIKit.h>
|
|
9
|
+
|
|
10
|
+
#define GEM_SDK_NAME @"GemiusSDK"
|
|
11
|
+
#define GEM_SDK_VERSION @"2.0.5"
|
|
12
|
+
|
|
13
|
+
@interface GEMConfig : NSObject
|
|
14
|
+
|
|
15
|
+
@property (nonatomic) BOOL loggingEnabled;
|
|
16
|
+
@property (nonatomic) BOOL cookiesAllowed;
|
|
17
|
+
@property (nonatomic) BOOL IDFACollectionEnabled;
|
|
18
|
+
|
|
19
|
+
+ (GEMConfig *)sharedInstance;
|
|
20
|
+
+ (NSString *)getSdkVersion;
|
|
21
|
+
|
|
22
|
+
- (void)setAppInfo:(NSString*)name version:(NSString*)version;
|
|
23
|
+
- (NSString *)getUA4WebView;
|
|
24
|
+
|
|
25
|
+
@end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
@interface GSMContentData : NSObject < NSCopying, NSCoding >
|
|
4
|
+
@property(nonatomic, strong) NSNumber *duration;
|
|
5
|
+
@property(nonatomic, strong) NSString *name;
|
|
6
|
+
@property(nonatomic, strong) NSString *quality;
|
|
7
|
+
@property(nonatomic, strong) NSString *resolution;
|
|
8
|
+
@property(nonatomic, strong) NSString *transmission;
|
|
9
|
+
@property(nonatomic, strong) NSNumber *volume;
|
|
10
|
+
|
|
11
|
+
-(void)addCustomParameter:(NSString*)key value:(NSString*)value;
|
|
12
|
+
-(NSMutableDictionary*)customParameters;
|
|
13
|
+
|
|
14
|
+
@end
|
|
15
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
@interface GSMEventData : NSObject
|
|
4
|
+
|
|
5
|
+
@property(nonatomic, strong) NSNumber *autoPlay;
|
|
6
|
+
@property(nonatomic, strong) NSNumber *volume;
|
|
7
|
+
@property(nonatomic, strong) NSString *resolution;
|
|
8
|
+
@property(nonatomic, strong) NSString *quality;
|
|
9
|
+
@property(nonatomic, strong) NSString *listID;
|
|
10
|
+
|
|
11
|
+
- (void)addCustomParameter:(NSString *)key value:(NSString *)value;
|
|
12
|
+
|
|
13
|
+
@end
|
|
14
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GEMBillboardAd.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Jakub Lyskawka on 09/11/2019.
|
|
6
|
+
// Copyright © 2019 Gemius. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <UIKit/UIKit.h>
|
|
10
|
+
#import "AdDefine.h"
|
|
11
|
+
|
|
12
|
+
@interface GEMBillboardAd : UIView
|
|
13
|
+
|
|
14
|
+
@property (nonatomic, copy) onGEMAdReadyBlock onAdReady;
|
|
15
|
+
@property (nonatomic, copy) onGEMFailBlock onFail;
|
|
16
|
+
@property (nonatomic, copy) onGEMAdClosedBlock onAdClosed;
|
|
17
|
+
@property (nonatomic, copy) onGEMContentReadyBlock onContentReady;
|
|
18
|
+
@property (nonatomic, weak) UIViewController *rootViewController;
|
|
19
|
+
@property (nonatomic, readonly) CGSize optimalSize;
|
|
20
|
+
|
|
21
|
+
- (instancetype)initWithFrame:(CGRect)frame andPlacementId:(NSString *)placementId;
|
|
22
|
+
- (void)setPlacementId:(NSString *)placementId;
|
|
23
|
+
- (void)setReloadInterval:(int)intervalSec;
|
|
24
|
+
- (void)setCustomRequestParamWithKey:(NSString *)key andValue:(NSString *)value;
|
|
25
|
+
- (void)load;
|
|
26
|
+
|
|
27
|
+
/*!
|
|
28
|
+
@param keywords - NSArray of strings
|
|
29
|
+
*/
|
|
30
|
+
- (void)setKeywords:(NSArray *)keywords;
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
@param variables - NSDictionary with NSString for key and NSNumber for value
|
|
34
|
+
*/
|
|
35
|
+
- (void)setNumericalVariables:(NSDictionary *)variables;
|
|
36
|
+
|
|
37
|
+
/*!
|
|
38
|
+
@param clusterVariables - NSDictionary with NSString for key and NSArray of NSNumber for value
|
|
39
|
+
*/
|
|
40
|
+
- (void)setClusterVariables:(NSDictionary *)clusterVariables;
|
|
41
|
+
|
|
42
|
+
@end
|
|
43
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GEMFullScreenAd.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Kuba on 26/11/2019.
|
|
6
|
+
// Copyright © 2019 Gemius. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <UIKit/UIKit.h>
|
|
10
|
+
#import "AdDefine.h"
|
|
11
|
+
|
|
12
|
+
@interface GEMFullScreenAd : NSObject
|
|
13
|
+
|
|
14
|
+
@property (nonatomic, copy) NSString *placementId;
|
|
15
|
+
@property (nonatomic, weak) UIViewController *rootViewController;
|
|
16
|
+
@property (nonatomic, copy) onGEMAdReadyBlock onAdReady;
|
|
17
|
+
@property (nonatomic, copy) onGEMFailBlock onFail;
|
|
18
|
+
@property (nonatomic, copy) onGEMAdClosedBlock onAdClosed;
|
|
19
|
+
@property (nonatomic, copy) onGEMContentReadyBlock onContentReady;
|
|
20
|
+
|
|
21
|
+
- (instancetype)initWithPlacementId:(NSString *)placementId andRootViewController:(UIViewController *)viewController;
|
|
22
|
+
- (void)setCustomRequestParamWithKey:(NSString *)key andValue:(NSString *)value;
|
|
23
|
+
- (void)setLandscapeAllowed:(BOOL)isAllowed;
|
|
24
|
+
- (void)open;
|
|
25
|
+
- (void)load;
|
|
26
|
+
- (void)close;
|
|
27
|
+
|
|
28
|
+
/*!
|
|
29
|
+
@param keywords - NSArray of strings
|
|
30
|
+
*/
|
|
31
|
+
- (void)setKeywords:(NSArray *)keywords;
|
|
32
|
+
|
|
33
|
+
/*!
|
|
34
|
+
@param variables - NSDictionary with NSString for key and NSNumber for value
|
|
35
|
+
*/
|
|
36
|
+
- (void)setNumericalVariables:(NSDictionary *)variables;
|
|
37
|
+
|
|
38
|
+
/*!
|
|
39
|
+
@param clusterVariables - NSDictionary with NSString for key and NSArray of NSNumber for value
|
|
40
|
+
*/
|
|
41
|
+
- (void)setClusterVariables:(NSDictionary *)clusterVariables;
|
|
42
|
+
|
|
43
|
+
@end
|
|
44
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GemiusSDK.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <UIKit/UIKit.h>
|
|
9
|
+
|
|
10
|
+
//! Project version number for GemiusSDK.
|
|
11
|
+
FOUNDATION_EXPORT double GemiusSDKVersionNumber;
|
|
12
|
+
|
|
13
|
+
//! Project version string for GemiusSDK.
|
|
14
|
+
FOUNDATION_EXPORT const unsigned char GemiusSDKVersionString[];
|
|
15
|
+
|
|
16
|
+
// In this header, you should import all the public headers of your framework using statements like #import <GemiusSDK/PublicHeader.h>
|
|
17
|
+
|
|
18
|
+
#import <GemiusSDK/Config.h>
|
|
19
|
+
#import <GemiusSDK/AdOceanConfig.h>
|
|
20
|
+
#import <GemiusSDK/AdDefine.h>
|
|
21
|
+
#import <GemiusSDK/GEMBillboardAd.h>
|
|
22
|
+
#import <GemiusSDK/GEMFullScreenAd.h>
|
|
23
|
+
#import <GemiusSDK/AudienceEvent.h>
|
|
24
|
+
#import <GemiusSDK/NetpanelEvent.h>
|
|
25
|
+
#import <GemiusSDK/AudienceConfig.h>
|
|
26
|
+
#import <GemiusSDK/NetpanelConfig.h>
|
|
27
|
+
#import <GemiusSDK/ContentData.h>
|
|
28
|
+
#import <GemiusSDK/AdData.h>
|
|
29
|
+
#import <GemiusSDK/ProgramData.h>
|
|
30
|
+
#import <GemiusSDK/EventData.h>
|
|
31
|
+
#import <GemiusSDK/EventProgramData.h>
|
|
32
|
+
#import <GemiusSDK/EventAdData.h>
|
|
33
|
+
#import <GemiusSDK/PlayerData.h>
|
|
34
|
+
#import <GemiusSDK/Player.h>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NetpanelConfig.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "BaseConfig.h"
|
|
9
|
+
|
|
10
|
+
@interface GEMNetpanelConfig : GEMBaseConfig
|
|
11
|
+
|
|
12
|
+
@property(nonatomic, strong)NSString *netpanelUID;
|
|
13
|
+
|
|
14
|
+
+(void)sendBufferedEvents;
|
|
15
|
+
+(GEMNetpanelConfig*)sharedInstance;
|
|
16
|
+
|
|
17
|
+
@end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NetpanelEvent.h
|
|
3
|
+
// GemiusSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Gemius. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "BaseEvent.h"
|
|
9
|
+
|
|
10
|
+
@interface GEMNetpanelEvent : GEMBaseEvent
|
|
11
|
+
|
|
12
|
+
//Setters
|
|
13
|
+
//-------------------------------------
|
|
14
|
+
-(void)setReferrer:(NSString*)referrer;
|
|
15
|
+
-(void)setPageUrl:(NSString*)pageUrl;
|
|
16
|
+
-(void)setCustomUserAgent:(NSString*)userAgent;
|
|
17
|
+
|
|
18
|
+
//Methods
|
|
19
|
+
//-------------------------------------
|
|
20
|
+
-(void)removeReferer;
|
|
21
|
+
-(void)removePageUrl;
|
|
22
|
+
-(void)resetUserAgent;
|
|
23
|
+
@end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import "ProgramData.h"
|
|
3
|
+
#import "AdData.h"
|
|
4
|
+
#import "EventProgramData.h"
|
|
5
|
+
#import "EventAdData.h"
|
|
6
|
+
#import "PlayerData.h"
|
|
7
|
+
|
|
8
|
+
typedef NS_ENUM(NSInteger, GSMEventType) {
|
|
9
|
+
GSM_PLAY, GSM_PAUSE, GSM_STOP, GSM_CLOSE, GSM_BUFFER, GSM_BREAK, GSM_SEEK, GSM_COMPLETE, GSM_SKIP, GSM_NEXT, GSM_PREV, GSM_CHANGE_VOL, GSM_CHANGE_QUAL, GSM_CHANGE_RES
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@interface GSMPlayer : NSObject < NSCoding >
|
|
14
|
+
|
|
15
|
+
-(id) init __attribute__((unavailable("init not available")));
|
|
16
|
+
|
|
17
|
+
-(GSMPlayer*)initWithID:(NSString*)playerID
|
|
18
|
+
withHost:(NSString*)hitCollectorHost
|
|
19
|
+
withGemiusID:(NSString*)gemiusID
|
|
20
|
+
withData:(GSMPlayerData*)playerData;
|
|
21
|
+
|
|
22
|
+
-(void)newProgram:(NSString*)programID
|
|
23
|
+
withData:(GSMProgramData*)programData;
|
|
24
|
+
|
|
25
|
+
-(void)newAd:(NSString*)adID
|
|
26
|
+
withData:(GSMAdData*)adData;
|
|
27
|
+
|
|
28
|
+
-(void)programEvent:(GSMEventType)eventType
|
|
29
|
+
forProgram:(NSString*)programID
|
|
30
|
+
atOffset:(NSNumber*)offset
|
|
31
|
+
withData:(GSMEventProgramData*)eventData;
|
|
32
|
+
|
|
33
|
+
-(void)adEvent:(GSMEventType)eventType
|
|
34
|
+
forProgram:(NSString*)programID
|
|
35
|
+
forAd:(NSString*)adID
|
|
36
|
+
atOffset:(NSNumber*)offset
|
|
37
|
+
withData:(GSMEventAdData*)eventData;
|
|
38
|
+
|
|
39
|
+
@end
|
|
40
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#import "ContentData.h"
|
|
2
|
+
|
|
3
|
+
typedef NS_ENUM(NSInteger, GSMProgramType) {
|
|
4
|
+
GSM_AUDIO = 1,
|
|
5
|
+
GSM_VIDEO
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
typedef NS_ENUM(NSInteger, GSMProgramGenre) {
|
|
9
|
+
GSMProgramGenreUndefined = 0,
|
|
10
|
+
GSMProgramGenreLiveProgram = 1,
|
|
11
|
+
GSMProgramGenreFilm = 2,
|
|
12
|
+
GSMProgramGenreSeries = 3,
|
|
13
|
+
GSMProgramGenreProgram = 4,
|
|
14
|
+
GSMProgramGenreMusic = 5,
|
|
15
|
+
GSMProgramGenreTrailer = 6
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
typedef NS_ENUM(NSInteger, GSMTransmissionType) {
|
|
19
|
+
GSMTransmissionTypeUndefined = 0,
|
|
20
|
+
GSMTransmissionTypeOnDemand = 1,
|
|
21
|
+
GSMTransmissionTypeBroadcast = 2
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
@interface GSMProgramData : GSMContentData
|
|
25
|
+
|
|
26
|
+
@property (nonatomic) GSMProgramType programType;
|
|
27
|
+
@property (nonatomic, copy) NSString *series;
|
|
28
|
+
@property (nonatomic, copy) NSString *typology;
|
|
29
|
+
@property (nonatomic, copy) NSString *premiereDate;
|
|
30
|
+
@property (nonatomic, copy) NSString *externalPremiereDate;
|
|
31
|
+
@property (nonatomic) GSMProgramGenre programGenre;
|
|
32
|
+
@property (nonatomic, copy) NSString *programPartialName;
|
|
33
|
+
@property (nonatomic, copy) NSString *programProducer;
|
|
34
|
+
@property (nonatomic, copy) NSString *programThematicCategory;
|
|
35
|
+
@property (nonatomic, copy) NSString *programSeason;
|
|
36
|
+
@property (nonatomic, copy) NSString *transmissionChannel;
|
|
37
|
+
@property (nonatomic, copy) NSString *transmissionStartTime;
|
|
38
|
+
@property (nonatomic) GSMTransmissionType transmissionType;
|
|
39
|
+
|
|
40
|
+
@end
|
|
41
|
+
|