@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.
- package/Adgeist.podspec +1 -1
- package/README.md +7 -2
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeAdgeistSpec.java +4 -0
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/HTML5AdNativeComponentManagerDelegate.java +1 -1
- package/android/app/build/generated/source/codegen/jni/RNAdgeistSpec-generated.cpp +6 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/Props.cpp +1 -1
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/Props.h +18 -1
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI-generated.cpp +8 -0
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI.h +9 -0
- package/android/build.gradle +22 -1
- package/android/libs/adgeistkit-beta-release.aar +0 -0
- package/android/src/main/java/com/adgeist/components/HTML5AdViewManagerImpl.kt +31 -11
- package/android/src/main/java/com/adgeist/modules/AdgeistImpl.kt +16 -12
- package/android/src/main/java/com/adgeist/utils/CreativeExtensions.kt +76 -36
- package/android/src/newarch/java/com/Adgeist.kt +1 -1
- package/android/src/oldarch/java/com/Adgeist.kt +1 -1
- package/ios/AdgeistImpl.swift +5 -3
- package/ios/NativeHTML5AdManager.mm +5 -2
- package/ios/NativeHTML5AdView.swift +15 -2
- package/lib/module/components/deprecated/BannerAdView.js +6 -5
- package/lib/module/components/deprecated/BannerAdView.js.map +1 -1
- package/lib/module/constants.js +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/AdgeistProvider.js +8 -0
- package/lib/module/providers/AdgeistProvider.js.map +1 -1
- package/lib/module/specs/HTML5AdNativeComponent.ts +4 -1
- package/lib/module/types/AdType.js +16 -0
- package/lib/module/types/AdType.js.map +1 -0
- package/lib/typescript/src/components/deprecated/BannerAdView.d.ts.map +1 -1
- package/lib/typescript/src/constants.d.ts +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/providers/AdgeistProvider.d.ts.map +1 -1
- package/lib/typescript/src/specs/HTML5AdNativeComponent.d.ts +3 -2
- package/lib/typescript/src/specs/HTML5AdNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/types/AdType.d.ts +14 -0
- package/lib/typescript/src/types/AdType.d.ts.map +1 -0
- package/lib/typescript/src/types/CPMAdResponse.d.ts +6 -2
- package/lib/typescript/src/types/CPMAdResponse.d.ts.map +1 -1
- package/lib/typescript/src/types/FixedAdResponse.d.ts +69 -38
- package/lib/typescript/src/types/FixedAdResponse.d.ts.map +1 -1
- package/lib/typescript/src/types/HTML5AdNativeComponentProps.d.ts +2 -1
- package/lib/typescript/src/types/HTML5AdNativeComponentProps.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/deprecated/BannerAdView.tsx +7 -5
- package/src/constants.ts +1 -1
- package/src/index.tsx +2 -0
- package/src/providers/AdgeistProvider.tsx +9 -0
- package/src/specs/HTML5AdNativeComponent.ts +4 -1
- package/src/types/AdType.ts +16 -0
- package/src/types/CPMAdResponse.ts +7 -2
- package/src/types/FixedAdResponse.ts +77 -38
- 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
|
|
5
|
-
signature
|
|
6
|
-
campaignId
|
|
7
|
-
advertiser
|
|
8
|
-
type
|
|
9
|
-
loadType
|
|
10
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
14
|
+
creativesV1: CreativeV1[];
|
|
15
|
+
displayOptions?: DisplayOptions;
|
|
16
|
+
frontendCacheDurationSeconds?: number;
|
|
17
|
+
impressionRequirements?: ImpressionRequirements;
|
|
21
18
|
}
|
|
22
19
|
|
|
23
20
|
interface Advertiser {
|
|
24
|
-
id
|
|
25
|
-
name
|
|
26
|
-
logoUrl
|
|
21
|
+
id?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
logoUrl?: string;
|
|
27
24
|
}
|
|
28
25
|
|
|
29
|
-
interface
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
fileName
|
|
48
|
-
fileSize
|
|
49
|
-
fileUrl
|
|
50
|
-
thumbnailUrl
|
|
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:
|
|
9
|
+
adType: AdType;
|
|
9
10
|
|
|
10
11
|
onAdLoaded?: () => void;
|
|
11
12
|
onAdFailedToLoad?: (event: NativeSyntheticEvent<AdFailedToLoadEvent>) => void;
|