@thealteroffice/react-native-adgeist 0.0.28-beta → 0.0.30-beta

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.
Files changed (54) hide show
  1. package/Adgeist.podspec +1 -1
  2. package/README.md +7 -2
  3. package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeAdgeistSpec.java +4 -0
  4. package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/HTML5AdNativeComponentManagerDelegate.java +1 -1
  5. package/android/app/build/generated/source/codegen/jni/RNAdgeistSpec-generated.cpp +6 -0
  6. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/Props.cpp +1 -1
  7. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/Props.h +18 -1
  8. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI-generated.cpp +8 -0
  9. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI.h +9 -0
  10. package/android/build.gradle +22 -1
  11. package/android/libs/adgeistkit-beta-release.aar +0 -0
  12. package/android/src/main/java/com/adgeist/components/HTML5AdViewManagerImpl.kt +31 -11
  13. package/android/src/main/java/com/adgeist/modules/AdgeistImpl.kt +16 -12
  14. package/android/src/main/java/com/adgeist/utils/CreativeExtensions.kt +76 -36
  15. package/android/src/newarch/java/com/Adgeist.kt +1 -1
  16. package/android/src/oldarch/java/com/Adgeist.kt +1 -1
  17. package/ios/AdgeistImpl.swift +5 -3
  18. package/ios/NativeHTML5AdManager.mm +5 -2
  19. package/ios/NativeHTML5AdView.swift +15 -2
  20. package/lib/module/components/deprecated/BannerAdView.js +6 -5
  21. package/lib/module/components/deprecated/BannerAdView.js.map +1 -1
  22. package/lib/module/constants.js +1 -1
  23. package/lib/module/index.js +1 -0
  24. package/lib/module/index.js.map +1 -1
  25. package/lib/module/providers/AdgeistProvider.js +8 -0
  26. package/lib/module/providers/AdgeistProvider.js.map +1 -1
  27. package/lib/module/specs/HTML5AdNativeComponent.ts +4 -1
  28. package/lib/module/types/AdType.js +16 -0
  29. package/lib/module/types/AdType.js.map +1 -0
  30. package/lib/typescript/src/components/deprecated/BannerAdView.d.ts.map +1 -1
  31. package/lib/typescript/src/constants.d.ts +1 -1
  32. package/lib/typescript/src/index.d.ts +1 -0
  33. package/lib/typescript/src/index.d.ts.map +1 -1
  34. package/lib/typescript/src/providers/AdgeistProvider.d.ts.map +1 -1
  35. package/lib/typescript/src/specs/HTML5AdNativeComponent.d.ts +3 -2
  36. package/lib/typescript/src/specs/HTML5AdNativeComponent.d.ts.map +1 -1
  37. package/lib/typescript/src/types/AdType.d.ts +14 -0
  38. package/lib/typescript/src/types/AdType.d.ts.map +1 -0
  39. package/lib/typescript/src/types/CPMAdResponse.d.ts +6 -2
  40. package/lib/typescript/src/types/CPMAdResponse.d.ts.map +1 -1
  41. package/lib/typescript/src/types/FixedAdResponse.d.ts +69 -38
  42. package/lib/typescript/src/types/FixedAdResponse.d.ts.map +1 -1
  43. package/lib/typescript/src/types/HTML5AdNativeComponentProps.d.ts +2 -1
  44. package/lib/typescript/src/types/HTML5AdNativeComponentProps.d.ts.map +1 -1
  45. package/package.json +2 -2
  46. package/src/components/deprecated/BannerAdView.tsx +7 -5
  47. package/src/constants.ts +1 -1
  48. package/src/index.tsx +2 -0
  49. package/src/providers/AdgeistProvider.tsx +9 -0
  50. package/src/specs/HTML5AdNativeComponent.ts +4 -1
  51. package/src/types/AdType.ts +16 -0
  52. package/src/types/CPMAdResponse.ts +7 -2
  53. package/src/types/FixedAdResponse.ts +77 -38
  54. package/src/types/HTML5AdNativeComponentProps.ts +2 -1
@@ -1,51 +1,90 @@
1
1
  export interface FIXEDADRESPONSE {
2
+ isTest?: boolean;
3
+ expiresAt?: string;
2
4
  metaData: string;
3
5
  id: string;
4
- generatedAt: string;
5
- signature: string;
6
- campaignId: string;
7
- advertiser: Advertiser;
8
- type: 'FIXED' | string;
9
- loadType: 'QUICK' | string;
10
- displayOptions: DisplayOptions;
11
- campaignValidity: {
12
- startTime: string;
13
- endTime: string;
14
- };
6
+ generatedAt?: string;
7
+ signature?: string;
8
+ campaignId?: string;
9
+ advertiser?: Advertiser;
10
+ type?: string;
11
+ loadType?: string;
12
+ campaignValidity?: CampaignValidity;
15
13
  creatives: Creative[];
16
- frontendCacheDurationSeconds: number;
17
- impressionRequirements: {
18
- impressionType: ('VIEW' | 'CLICK')[];
19
- minViewDurationSeconds: number;
20
- };
14
+ creativesV1: CreativeV1[];
15
+ displayOptions?: DisplayOptions;
16
+ frontendCacheDurationSeconds?: number;
17
+ impressionRequirements?: ImpressionRequirements;
21
18
  }
22
19
 
23
20
  interface Advertiser {
24
- id: string;
25
- name: string;
26
- logoUrl: string;
21
+ id?: string;
22
+ name?: string;
23
+ logoUrl?: string;
27
24
  }
28
25
 
29
- interface DisplayOptions {
30
- isResponsive: boolean;
31
- dimensions: {
32
- width: number;
33
- height: number;
34
- };
35
- styleOptions: {
36
- fontFamily: string;
37
- fontColor: string;
38
- };
39
- allowedFormats: string[];
26
+ interface CampaignValidity {
27
+ startTime?: string;
28
+ endTime?: string;
40
29
  }
41
30
 
42
31
  interface Creative {
43
- ctaUrl: string;
44
- title: string;
45
- description: string;
46
- type: 'image' | string;
47
- fileName: string;
48
- fileSize: number;
49
- fileUrl: string;
50
- thumbnailUrl: string;
32
+ contentModerationResult?: MongoIdWrapper;
33
+ createdAt?: MongoDateWrapper;
34
+ ctaUrl?: string;
35
+ description?: string;
36
+ fileName?: string;
37
+ fileSize?: number;
38
+ fileUrl?: string;
39
+ thumbnailUrl?: string;
40
+ title?: string;
41
+ type?: string;
42
+ updatedAt?: MongoDateWrapper;
43
+ }
44
+
45
+ interface CreativeV1 {
46
+ title?: string;
47
+ description?: string;
48
+ ctaUrl?: string;
49
+ primary?: MediaItem;
50
+ companions?: MediaItem[];
51
+ }
52
+
53
+ interface MediaItem {
54
+ type?: string;
55
+ fileName?: string;
56
+ fileSize?: number;
57
+ fileUrl?: string;
58
+ thumbnailUrl?: string;
59
+ }
60
+
61
+ interface MongoIdWrapper {
62
+ $oid?: string;
63
+ }
64
+
65
+ interface MongoDateWrapper {
66
+ $date?: number;
67
+ }
68
+
69
+ interface DisplayOptions {
70
+ allowedFormats?: string[];
71
+ dimensions?: Dimensions;
72
+ isResponsive?: boolean;
73
+ responsiveType?: string;
74
+ styleOptions?: StyleOptions;
75
+ }
76
+
77
+ interface Dimensions {
78
+ height?: number;
79
+ width?: number;
80
+ }
81
+
82
+ interface StyleOptions {
83
+ fontColor?: string;
84
+ fontFamily?: string;
85
+ }
86
+
87
+ interface ImpressionRequirements {
88
+ impressionType?: string[];
89
+ minViewDurationSeconds?: number;
51
90
  }
@@ -1,11 +1,12 @@
1
1
  import type { NativeSyntheticEvent } from 'react-native';
2
2
  import type { AdSize } from './AdSize';
3
+ import type { AdType } from './AdType';
3
4
 
4
5
  export interface HTML5AdNativeComponentProps {
5
6
  adUnitID: string;
6
7
  adIsResponsive?: boolean;
7
8
  adSize?: AdSize;
8
- adType: string;
9
+ adType: AdType;
9
10
 
10
11
  onAdLoaded?: () => void;
11
12
  onAdFailedToLoad?: (event: NativeSyntheticEvent<AdFailedToLoadEvent>) => void;