@adstage/react-native-sdk 1.0.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/LICENSE +21 -0
- package/README.md +327 -0
- package/adstage-react-native.podspec +24 -0
- package/android/build.gradle +66 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/io/nbase/adstage/reactnative/AdStageModule.kt +701 -0
- package/android/src/main/java/io/nbase/adstage/reactnative/AdStagePackage.kt +24 -0
- package/ios/AdStageModule.m +70 -0
- package/ios/AdStageModule.swift +457 -0
- package/lib/commonjs/AdStage.js +213 -0
- package/lib/commonjs/AdStage.js.map +1 -0
- package/lib/commonjs/deeplink/AdStageDeepLink.js +235 -0
- package/lib/commonjs/deeplink/AdStageDeepLink.js.map +1 -0
- package/lib/commonjs/event/AdStageEvent.js +689 -0
- package/lib/commonjs/event/AdStageEvent.js.map +1 -0
- package/lib/commonjs/index.js +34 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/promotion/AdStagePromotion.js +158 -0
- package/lib/commonjs/promotion/AdStagePromotion.js.map +1 -0
- package/lib/commonjs/types.js +2 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/AdStage.js +206 -0
- package/lib/module/AdStage.js.map +1 -0
- package/lib/module/deeplink/AdStageDeepLink.js +228 -0
- package/lib/module/deeplink/AdStageDeepLink.js.map +1 -0
- package/lib/module/event/AdStageEvent.js +682 -0
- package/lib/module/event/AdStageEvent.js.map +1 -0
- package/lib/module/index.js +15 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/promotion/AdStagePromotion.js +151 -0
- package/lib/module/promotion/AdStagePromotion.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/src/AdStage.d.ts +124 -0
- package/lib/typescript/src/AdStage.d.ts.map +1 -0
- package/lib/typescript/src/deeplink/AdStageDeepLink.d.ts +154 -0
- package/lib/typescript/src/deeplink/AdStageDeepLink.d.ts.map +1 -0
- package/lib/typescript/src/event/AdStageEvent.d.ts +426 -0
- package/lib/typescript/src/event/AdStageEvent.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +13 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/promotion/AdStagePromotion.d.ts +98 -0
- package/lib/typescript/src/promotion/AdStagePromotion.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +305 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +105 -0
- package/src/AdStage.ts +212 -0
- package/src/deeplink/AdStageDeepLink.ts +246 -0
- package/src/event/AdStageEvent.ts +844 -0
- package/src/index.ts +48 -0
- package/src/promotion/AdStagePromotion.ts +162 -0
- package/src/types.ts +392 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AdStage", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _AdStage.AdStage;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AdStageDeepLink", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _AdStageDeepLink.AdStageDeepLink;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "AdStageEvent", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _AdStageEvent.AdStageEvent;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "AdStagePromotion", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _AdStagePromotion.AdStagePromotion;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _AdStage = require("./AdStage");
|
|
31
|
+
var _AdStageDeepLink = require("./deeplink/AdStageDeepLink");
|
|
32
|
+
var _AdStagePromotion = require("./promotion/AdStagePromotion");
|
|
33
|
+
var _AdStageEvent = require("./event/AdStageEvent");
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_AdStage","require","_AdStageDeepLink","_AdStagePromotion","_AdStageEvent"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AdStagePromotion = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
/**
|
|
9
|
+
* AdStage Promotion 모듈
|
|
10
|
+
*
|
|
11
|
+
* 프로모션 조회, 표시, 클릭 처리를 담당합니다.
|
|
12
|
+
* Android/iOS PromotionHandler, PromotionManager와 동일한 API를 제공합니다.
|
|
13
|
+
*
|
|
14
|
+
* @since 3.0.0
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
AdStageModule
|
|
19
|
+
} = _reactNative.NativeModules;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* AdStage Promotion 클래스
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* // 프로모션 목록 조회
|
|
27
|
+
* const response = await AdStage.promotion.getList({
|
|
28
|
+
* bannerType: 'NATIVE',
|
|
29
|
+
* region: 'KR',
|
|
30
|
+
* limit: 10
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* // 프로모션 클릭 처리
|
|
34
|
+
* const result = await AdStage.promotion.handleClick(response.promotions[0]);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
class AdStagePromotion {
|
|
38
|
+
// ============================================
|
|
39
|
+
// Promotion List
|
|
40
|
+
// ============================================
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 프로모션 목록 조회
|
|
44
|
+
*
|
|
45
|
+
* @param params - 조회 파라미터
|
|
46
|
+
* @returns 프로모션 목록 응답
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```typescript
|
|
50
|
+
* const response = await AdStage.promotion.getList({
|
|
51
|
+
* bannerType: 'NATIVE', // NATIVE, INTERSTITIAL, REWARDED_VIDEO, POPUP
|
|
52
|
+
* region: 'KR', // KR, JP, US, SEA, EU, GLOBAL
|
|
53
|
+
* deviceType: 'HIGH_END', // LOW_END, MID_END, HIGH_END
|
|
54
|
+
* limit: 10,
|
|
55
|
+
* status: 'ACTIVE',
|
|
56
|
+
* partner: 'game_company',
|
|
57
|
+
* primaryInterest: 'GAMES',
|
|
58
|
+
* primaryAgeGroup: '18-24',
|
|
59
|
+
* gameGenrePreference: 'RPG',
|
|
60
|
+
* playerSpendingTier: 'DOLPHIN', // F2P, DOLPHIN, WHALE
|
|
61
|
+
* playTimePattern: 'EVENING'
|
|
62
|
+
* });
|
|
63
|
+
*
|
|
64
|
+
* console.log('Total:', response.totalItems);
|
|
65
|
+
* response.promotions.forEach(promo => {
|
|
66
|
+
* console.log(`${promo.appName}: ${promo.bannerUrl}`);
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
static async getList(params = {}) {
|
|
71
|
+
if (!AdStageModule) {
|
|
72
|
+
throw new Error('AdStage: Native module is not available');
|
|
73
|
+
}
|
|
74
|
+
const result = await AdStageModule.getPromotionList(params);
|
|
75
|
+
return {
|
|
76
|
+
totalItems: result.totalItems ?? 0,
|
|
77
|
+
promotions: result.promotions ?? []
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ============================================
|
|
82
|
+
// Promotion Click Handling
|
|
83
|
+
// ============================================
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 프로모션 클릭 처리
|
|
87
|
+
*
|
|
88
|
+
* 클릭 이벤트를 서버에 전송하고 스토어를 엽니다.
|
|
89
|
+
*
|
|
90
|
+
* @param promotion - 클릭할 프로모션
|
|
91
|
+
* @returns 클릭 처리 결과
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const result = await AdStage.promotion.handleClick(promotion);
|
|
96
|
+
*
|
|
97
|
+
* if (result.success) {
|
|
98
|
+
* console.log('스토어로 이동:', result.storeUrl);
|
|
99
|
+
* } else {
|
|
100
|
+
* console.error('클릭 처리 실패:', result.error);
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
static async handleClick(promotion) {
|
|
105
|
+
if (!AdStageModule) {
|
|
106
|
+
throw new Error('AdStage: Native module is not available');
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
const result = await AdStageModule.handlePromotionClick(promotion);
|
|
110
|
+
return {
|
|
111
|
+
success: true,
|
|
112
|
+
storeUrl: result.storeUrl
|
|
113
|
+
};
|
|
114
|
+
} catch (error) {
|
|
115
|
+
return {
|
|
116
|
+
success: false,
|
|
117
|
+
error: error instanceof Error ? error.message : 'Unknown error occurred'
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* 프로모션 노출 이벤트 전송
|
|
124
|
+
*
|
|
125
|
+
* 프로모션이 화면에 표시될 때 호출합니다.
|
|
126
|
+
*
|
|
127
|
+
* @param promotion - 노출된 프로모션
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* // 프로모션 배너가 화면에 보일 때
|
|
132
|
+
* AdStage.promotion.trackImpression(promotion);
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
static async trackImpression(promotion) {
|
|
136
|
+
if (!AdStageModule) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
await AdStageModule.trackPromotionImpression?.(promotion);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// ============================================
|
|
143
|
+
// Utility
|
|
144
|
+
// ============================================
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 플랫폼에 맞는 스토어 URL 추출
|
|
148
|
+
*
|
|
149
|
+
* @param promotion - 프로모션
|
|
150
|
+
* @returns 스토어 URL 또는 null
|
|
151
|
+
*/
|
|
152
|
+
static getStoreUrl(promotion) {
|
|
153
|
+
const platform = require('react-native').Platform.OS === 'ios' ? 'ios' : 'android';
|
|
154
|
+
return promotion.storeUrls?.[platform] ?? null;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.AdStagePromotion = AdStagePromotion;
|
|
158
|
+
//# sourceMappingURL=AdStagePromotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","AdStageModule","NativeModules","AdStagePromotion","getList","params","Error","result","getPromotionList","totalItems","promotions","handleClick","promotion","handlePromotionClick","success","storeUrl","error","message","trackImpression","trackPromotionImpression","getStoreUrl","platform","Platform","OS","storeUrls","exports"],"sourceRoot":"../../../src","sources":["promotion/AdStagePromotion.ts"],"mappings":";;;;;;AASA,IAAAA,YAAA,GAAAC,OAAA;AATA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAM;EAAEC;AAAc,CAAC,GAAGC,0BAAa;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,gBAAgB,CAAC;EAC5B;EACA;EACA;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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,MAAMS,QAAQ,GACZrB,OAAO,CAAC,cAAc,CAAC,CAACsB,QAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,KAAK,GAAG,SAAS;IACnE,OAAOX,SAAS,CAACY,SAAS,GAAGH,QAAQ,CAAC,IAAI,IAAI;EAChD;AACF;AAACI,OAAA,CAAAtB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AdStage SDK 메인 클래스
|
|
3
|
+
*
|
|
4
|
+
* React Native용 AdStage SDK의 통합 진입점입니다.
|
|
5
|
+
* Android/iOS 네이티브 SDK(AdStage, AdStageManager)와 동일한 API를 제공합니다.
|
|
6
|
+
*
|
|
7
|
+
* @since 3.0.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { NativeModules, Platform } from 'react-native';
|
|
11
|
+
import { AdStageDeepLink } from './deeplink/AdStageDeepLink';
|
|
12
|
+
import { AdStagePromotion } from './promotion/AdStagePromotion';
|
|
13
|
+
import { AdStageEvent } from './event/AdStageEvent';
|
|
14
|
+
const {
|
|
15
|
+
AdStageModule
|
|
16
|
+
} = NativeModules;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* AdStage SDK
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* // 초기화
|
|
24
|
+
* await AdStage.initialize({
|
|
25
|
+
* apiKey: 'your-api-key',
|
|
26
|
+
* serverUrl: 'https://api.adstage.app'
|
|
27
|
+
* });
|
|
28
|
+
*
|
|
29
|
+
* // 딥링크 리스너 설정
|
|
30
|
+
* AdStage.deepLink.setListener((data) => {
|
|
31
|
+
* console.log('딥링크 수신:', data.shortPath);
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* // 프로모션 조회
|
|
35
|
+
* const promotions = await AdStage.promotion.getList({ bannerType: 'NATIVE' });
|
|
36
|
+
*
|
|
37
|
+
* // 이벤트 전송
|
|
38
|
+
* await AdStage.event.trackPurchase({
|
|
39
|
+
* value: 29.99,
|
|
40
|
+
* currency: 'USD',
|
|
41
|
+
* transactionId: 'TX_123'
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export class AdStage {
|
|
46
|
+
// ============================================
|
|
47
|
+
// Static Properties
|
|
48
|
+
// ============================================
|
|
49
|
+
|
|
50
|
+
static _isInitialized = false;
|
|
51
|
+
static _config = null;
|
|
52
|
+
|
|
53
|
+
// ============================================
|
|
54
|
+
// Sub-modules
|
|
55
|
+
// ============================================
|
|
56
|
+
|
|
57
|
+
/** 딥링크 관련 기능 */
|
|
58
|
+
static deepLink = AdStageDeepLink;
|
|
59
|
+
|
|
60
|
+
/** 프로모션 관련 기능 */
|
|
61
|
+
static promotion = AdStagePromotion;
|
|
62
|
+
|
|
63
|
+
/** 이벤트 트래킹 관련 기능 */
|
|
64
|
+
static event = AdStageEvent;
|
|
65
|
+
|
|
66
|
+
// ============================================
|
|
67
|
+
// Initialization
|
|
68
|
+
// ============================================
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* AdStage SDK 초기화
|
|
72
|
+
*
|
|
73
|
+
* 앱 시작 시 가장 먼저 호출해야 합니다.
|
|
74
|
+
*
|
|
75
|
+
* @param config - SDK 설정
|
|
76
|
+
* @throws SDK 초기화 실패 시 에러
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* await AdStage.initialize({
|
|
81
|
+
* apiKey: 'your-api-key',
|
|
82
|
+
* serverUrl: 'https://your-server.com' // 선택사항, 없으면 네이티브 SDK 기본값 사용
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
static async initialize(config) {
|
|
87
|
+
if (!config.apiKey) {
|
|
88
|
+
throw new Error('AdStage: apiKey is required');
|
|
89
|
+
}
|
|
90
|
+
if (this._isInitialized) {
|
|
91
|
+
console.warn('AdStage: SDK is already initialized');
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (!AdStageModule) {
|
|
95
|
+
throw new Error('AdStage: Native module is not available');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// serverUrl이 없으면 빈 문자열 전달 - 네이티브 SDK에서 기본값 사용
|
|
99
|
+
const serverUrl = config.serverUrl ?? '';
|
|
100
|
+
await AdStageModule.initialize(config.apiKey, serverUrl);
|
|
101
|
+
this._config = config;
|
|
102
|
+
this._isInitialized = true;
|
|
103
|
+
console.log(`AdStage: SDK initialized (${Platform.OS})`);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* SDK 초기화 여부 확인
|
|
108
|
+
*
|
|
109
|
+
* @returns 초기화되었으면 true
|
|
110
|
+
*/
|
|
111
|
+
static isInitialized() {
|
|
112
|
+
return this._isInitialized;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* SDK 버전 조회
|
|
117
|
+
*
|
|
118
|
+
* @returns SDK 버전 문자열
|
|
119
|
+
*/
|
|
120
|
+
static async getVersion() {
|
|
121
|
+
if (!AdStageModule) {
|
|
122
|
+
return '3.0.0';
|
|
123
|
+
}
|
|
124
|
+
return AdStageModule.getVersion();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// ============================================
|
|
128
|
+
// User Attributes
|
|
129
|
+
// ============================================
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* 전역 사용자 속성 설정
|
|
133
|
+
*
|
|
134
|
+
* 설정된 사용자 속성은 이후 모든 이벤트에 자동으로 포함됩니다.
|
|
135
|
+
*
|
|
136
|
+
* @param attributes - 사용자 속성
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```typescript
|
|
140
|
+
* AdStage.setUserAttributes({
|
|
141
|
+
* gender: 'female',
|
|
142
|
+
* country: 'KR',
|
|
143
|
+
* city: 'Seoul',
|
|
144
|
+
* age: '28',
|
|
145
|
+
* language: 'ko-KR'
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
static async setUserAttributes(attributes) {
|
|
150
|
+
if (!AdStageModule) {
|
|
151
|
+
throw new Error('AdStage: Native module is not available');
|
|
152
|
+
}
|
|
153
|
+
await AdStageModule.setUserAttributes(attributes);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* 전역 사용자 속성 조회
|
|
158
|
+
*
|
|
159
|
+
* @returns 설정된 사용자 속성 또는 null
|
|
160
|
+
*/
|
|
161
|
+
static async getUserAttributes() {
|
|
162
|
+
if (!AdStageModule) {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
return AdStageModule.getUserAttributes();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* 전역 사용자 속성 초기화
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```typescript
|
|
173
|
+
* // 로그아웃 시
|
|
174
|
+
* await AdStage.clearUserAttributes();
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
static async clearUserAttributes() {
|
|
178
|
+
if (!AdStageModule) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
await AdStageModule.clearUserAttributes();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// ============================================
|
|
185
|
+
// Internal
|
|
186
|
+
// ============================================
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* 초기화 상태 검증
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
static ensureInitialized() {
|
|
193
|
+
if (!this._isInitialized) {
|
|
194
|
+
throw new Error('AdStage: SDK is not initialized. Call AdStage.initialize() first.');
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* 현재 설정 조회
|
|
200
|
+
* @internal
|
|
201
|
+
*/
|
|
202
|
+
static getConfig() {
|
|
203
|
+
return this._config;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
//# sourceMappingURL=AdStage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","AdStageDeepLink","AdStagePromotion","AdStageEvent","AdStageModule","AdStage","_isInitialized","_config","deepLink","promotion","event","initialize","config","apiKey","Error","console","warn","serverUrl","log","OS","isInitialized","getVersion","setUserAttributes","attributes","getUserAttributes","clearUserAttributes","ensureInitialized","getConfig"],"sourceRoot":"../../src","sources":["AdStage.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,YAAY,QAAQ,sBAAsB;AAGnD,MAAM;EAAEC;AAAc,CAAC,GAAGL,aAAa;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,OAAO,CAAC;EACnB;EACA;EACA;;EAEA,OAAeC,cAAc,GAAG,KAAK;EACrC,OAAeC,OAAO,GAAyB,IAAI;;EAEnD;EACA;EACA;;EAEA;EACA,OAAgBC,QAAQ,GAAGP,eAAe;;EAE1C;EACA,OAAgBQ,SAAS,GAAGP,gBAAgB;;EAE5C;EACA,OAAgBQ,KAAK,GAAGP,YAAY;;EAEpC;EACA;EACA;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,aAAaQ,UAAUA,CAACC,MAAqB,EAAiB;IAC5D,IAAI,CAACA,MAAM,CAACC,MAAM,EAAE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C;EAC1C;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,aAAaC,mBAAmBA,CAAA,EAAkB;IAChD,IAAI,CAACrB,aAAa,EAAE;MAClB;IACF;IACA,MAAMA,aAAa,CAACqB,mBAAmB,CAAC,CAAC;EAC3C;;EAEA;EACA;EACA;;EAEA;AACF;AACA;AACA;EACE,OAAOC,iBAAiBA,CAAA,EAAS;IAC/B,IAAI,CAAC,IAAI,CAACpB,cAAc,EAAE;MACxB,MAAM,IAAIQ,KAAK,CACb,mEACF,CAAC;IACH;EACF;;EAEA;AACF;AACA;AACA;EACE,OAAOa,SAASA,CAAA,EAAyB;IACvC,OAAO,IAAI,CAACpB,OAAO;EACrB;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AdStage DeepLink 모듈
|
|
3
|
+
*
|
|
4
|
+
* 딥링크 생성, 수신, 처리를 담당합니다.
|
|
5
|
+
* Android DeeplinkHandler, iOS DeepLinkManager와 동일한 API를 제공합니다.
|
|
6
|
+
*
|
|
7
|
+
* @since 3.0.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { NativeModules, NativeEventEmitter, Platform } from 'react-native';
|
|
11
|
+
const {
|
|
12
|
+
AdStageModule
|
|
13
|
+
} = NativeModules;
|
|
14
|
+
const eventEmitter = AdStageModule ? new NativeEventEmitter(AdStageModule) : null;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* AdStage DeepLink 클래스
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* // 딥링크 리스너 설정
|
|
22
|
+
* const unsubscribe = AdStage.deepLink.setListener((data) => {
|
|
23
|
+
* console.log('딥링크 수신:', data.shortPath);
|
|
24
|
+
* console.log('파라미터:', data.parameters);
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* // 딥링크 생성
|
|
28
|
+
* const result = await AdStage.deepLink.create({
|
|
29
|
+
* name: '여름 프로모션',
|
|
30
|
+
* channel: 'google-ads',
|
|
31
|
+
* campaign: 'summer_2024'
|
|
32
|
+
* });
|
|
33
|
+
* console.log('Short URL:', result.shortUrl);
|
|
34
|
+
*
|
|
35
|
+
* // 리스너 해제
|
|
36
|
+
* unsubscribe();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export class AdStageDeepLink {
|
|
40
|
+
static subscription = null;
|
|
41
|
+
|
|
42
|
+
// ============================================
|
|
43
|
+
// Listener Management
|
|
44
|
+
// ============================================
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 딥링크 리스너 설정
|
|
48
|
+
*
|
|
49
|
+
* 딥링크가 수신되면 콜백이 호출됩니다.
|
|
50
|
+
* 반환된 함수를 호출하면 리스너가 해제됩니다.
|
|
51
|
+
*
|
|
52
|
+
* @param listener - 딥링크 수신 콜백
|
|
53
|
+
* @returns 리스너 해제 함수
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* const unsubscribe = AdStage.deepLink.setListener((data) => {
|
|
58
|
+
* // URL Scheme: myapp://adstage.net/ABCDEF
|
|
59
|
+
* // Universal Link: https://adstage.net/ABCDEF
|
|
60
|
+
* console.log('Short Path:', data.shortPath); // "ABCDEF"
|
|
61
|
+
* console.log('Link ID:', data.linkId);
|
|
62
|
+
* console.log('Parameters:', data.parameters);
|
|
63
|
+
* console.log('Source:', data.source); // "realtime" | "install"
|
|
64
|
+
* console.log('Event Type:', data.eventType); // "OPEN" | "INSTALL"
|
|
65
|
+
* });
|
|
66
|
+
*
|
|
67
|
+
* // 컴포넌트 unmount 시
|
|
68
|
+
* unsubscribe();
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
static setListener(listener) {
|
|
72
|
+
if (!eventEmitter) {
|
|
73
|
+
console.warn('AdStage: Native event emitter is not available');
|
|
74
|
+
return () => {};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// 기존 리스너 제거
|
|
78
|
+
this.removeListener();
|
|
79
|
+
this.subscription = eventEmitter.addListener('onDeepLinkReceived', event => {
|
|
80
|
+
listener(event);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// 네이티브에 리스너 설정 알림
|
|
84
|
+
AdStageModule?.setDeepLinkListener?.();
|
|
85
|
+
return () => this.removeListener();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 딥링크 리스너 제거
|
|
90
|
+
*/
|
|
91
|
+
static removeListener() {
|
|
92
|
+
if (this.subscription) {
|
|
93
|
+
this.subscription.remove();
|
|
94
|
+
this.subscription = null;
|
|
95
|
+
}
|
|
96
|
+
AdStageModule?.removeDeepLinkListener?.();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// ============================================
|
|
100
|
+
// DeepLink Creation
|
|
101
|
+
// ============================================
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* 딥링크 생성
|
|
105
|
+
*
|
|
106
|
+
* @param request - 딥링크 생성 요청
|
|
107
|
+
* @returns 생성된 딥링크 정보
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```typescript
|
|
111
|
+
* const result = await AdStage.deepLink.create({
|
|
112
|
+
* name: '여름 프로모션 링크',
|
|
113
|
+
* description: '2024년 여름 시즌용',
|
|
114
|
+
* channel: 'google-ads',
|
|
115
|
+
* campaign: 'summer_promotion_2024',
|
|
116
|
+
* redirectConfig: {
|
|
117
|
+
* type: 'STORE',
|
|
118
|
+
* android: {
|
|
119
|
+
* packageName: 'com.example.app',
|
|
120
|
+
* appScheme: 'myapp://promo'
|
|
121
|
+
* },
|
|
122
|
+
* ios: {
|
|
123
|
+
* appStoreId: '123456789',
|
|
124
|
+
* appScheme: 'myapp://promo'
|
|
125
|
+
* }
|
|
126
|
+
* },
|
|
127
|
+
* parameters: {
|
|
128
|
+
* productId: 'SUMMER_2024',
|
|
129
|
+
* discount: '20'
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
*
|
|
133
|
+
* console.log('Short URL:', result.shortUrl); // https://adstage.net/ABCDEF
|
|
134
|
+
* console.log('Short Path:', result.shortPath); // ABCDEF
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
static async create(request) {
|
|
138
|
+
if (!AdStageModule) {
|
|
139
|
+
throw new Error('AdStage: Native module is not available');
|
|
140
|
+
}
|
|
141
|
+
if (!request.name) {
|
|
142
|
+
throw new Error('AdStage: name is required for creating a deep link');
|
|
143
|
+
}
|
|
144
|
+
const result = await AdStageModule.createDeepLink(request);
|
|
145
|
+
return {
|
|
146
|
+
shortUrl: result.shortUrl,
|
|
147
|
+
shortPath: result.shortPath,
|
|
148
|
+
linkId: result.linkId
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// ============================================
|
|
153
|
+
// DeepLink Handling
|
|
154
|
+
// ============================================
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Pending 딥링크 확인 및 처리
|
|
158
|
+
*
|
|
159
|
+
* 앱이 종료된 상태에서 딥링크로 실행된 경우,
|
|
160
|
+
* SDK 초기화 후 이 메서드를 호출하여 pending 딥링크를 처리합니다.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```typescript
|
|
164
|
+
* // SDK 초기화 후
|
|
165
|
+
* await AdStage.initialize({ apiKey: '...' });
|
|
166
|
+
*
|
|
167
|
+
* // 리스너 설정
|
|
168
|
+
* AdStage.deepLink.setListener((data) => {
|
|
169
|
+
* console.log('딥링크:', data);
|
|
170
|
+
* });
|
|
171
|
+
*
|
|
172
|
+
* // Pending 딥링크 확인
|
|
173
|
+
* AdStage.deepLink.checkPendingDeepLink();
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
static checkPendingDeepLink() {
|
|
177
|
+
AdStageModule?.checkPendingDeepLink?.();
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Intent 처리 (Android 전용)
|
|
182
|
+
*
|
|
183
|
+
* MainActivity에서 새로운 Intent가 들어올 때 호출합니다.
|
|
184
|
+
* iOS에서는 호출해도 무시됩니다.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```typescript
|
|
188
|
+
* // React Native에서 AppState 변경 감지
|
|
189
|
+
* import { Linking } from 'react-native';
|
|
190
|
+
*
|
|
191
|
+
* Linking.addEventListener('url', ({ url }) => {
|
|
192
|
+
* // Android에서는 네이티브에서 자동 처리되므로 필요 없음
|
|
193
|
+
* // 필요한 경우 수동 호출
|
|
194
|
+
* AdStage.deepLink.handleIntent();
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
static handleIntent() {
|
|
199
|
+
if (Platform.OS === 'android') {
|
|
200
|
+
AdStageModule?.handleIntent?.();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* URL에서 Short Path 추출
|
|
206
|
+
*
|
|
207
|
+
* @param url - 딥링크 URL
|
|
208
|
+
* @returns Short Path 또는 null
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```typescript
|
|
212
|
+
* const shortPath = AdStage.deepLink.extractShortPath('https://adstage.net/ABCDEF');
|
|
213
|
+
* console.log(shortPath); // "ABCDEF"
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
static extractShortPath(url) {
|
|
217
|
+
try {
|
|
218
|
+
const urlObj = new URL(url);
|
|
219
|
+
const pathParts = urlObj.pathname.split('/').filter(Boolean);
|
|
220
|
+
return pathParts[0] ?? null;
|
|
221
|
+
} catch {
|
|
222
|
+
// URL Scheme인 경우
|
|
223
|
+
const match = url.match(/adstage\.(?:net|app)\/([A-Za-z0-9]+)/);
|
|
224
|
+
return match?.[1] ?? null;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=AdStageDeepLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeModules","NativeEventEmitter","Platform","AdStageModule","eventEmitter","AdStageDeepLink","subscription","setListener","listener","console","warn","removeListener","addListener","event","setDeepLinkListener","remove","removeDeepLinkListener","create","request","Error","name","result","createDeepLink","shortUrl","shortPath","linkId","checkPendingDeepLink","handleIntent","OS","extractShortPath","url","urlObj","URL","pathParts","pathname","split","filter","Boolean","match"],"sourceRoot":"../../../src","sources":["deeplink/AdStageDeepLink.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc;AAQ1E,MAAM;EAAEC;AAAc,CAAC,GAAGH,aAAa;AACvC,MAAMI,YAAY,GAAGD,aAAa,GAC9B,IAAIF,kBAAkB,CAACE,aAAa,CAAC,GACrC,IAAI;;AAER;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,eAAe,CAAC;EAC3B,OAAeC,YAAY,GAEhB,IAAI;;EAEf;EACA;EACA;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAOC,WAAWA,CAACC,QAA0B,EAAc;IACzD,IAAI,CAACJ,YAAY,EAAE;MACjBK,OAAO,CAACC,IAAI,CAAC,gDAAgD,CAAC;MAC9D,OAAO,MAAM,CAAC,CAAC;IACjB;;IAEA;IACA,IAAI,CAACC,cAAc,CAAC,CAAC;IAErB,IAAI,CAACL,YAAY,GAAGF,YAAY,CAACQ,WAAW,CAC1C,oBAAoB,EACnBC,KAAmB,IAAK;MACvBL,QAAQ,CAACK,KAAK,CAAC;IACjB,CACF,CAAC;;IAED;IACAV,aAAa,EAAEW,mBAAmB,GAAG,CAAC;IAEtC,OAAO,MAAM,IAAI,CAACH,cAAc,CAAC,CAAC;EACpC;;EAEA;AACF;AACA;EACE,OAAOA,cAAcA,CAAA,EAAS;IAC5B,IAAI,IAAI,CAACL,YAAY,EAAE;MACrB,IAAI,CAACA,YAAY,CAACS,MAAM,CAAC,CAAC;MAC1B,IAAI,CAACT,YAAY,GAAG,IAAI;IAC1B;IACAH,aAAa,EAAEa,sBAAsB,GAAG,CAAC;EAC3C;;EAEA;EACA;EACA;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,aAAaC,MAAMA,CACjBC,OAA8B,EACG;IACjC,IAAI,CAACf,aAAa,EAAE;MAClB,MAAM,IAAIgB,KAAK,CAAC,yCAAyC,CAAC;IAC5D;IAEA,IAAI,CAACD,OAAO,CAACE,IAAI,EAAE;MACjB,MAAM,IAAID,KAAK,CAAC,oDAAoD,CAAC;IACvE;IAEA,MAAME,MAAM,GAAG,MAAMlB,aAAa,CAACmB,cAAc,CAACJ,OAAO,CAAC;IAE1D,OAAO;MACLK,QAAQ,EAAEF,MAAM,CAACE,QAAQ;MACzBC,SAAS,EAAEH,MAAM,CAACG,SAAS;MAC3BC,MAAM,EAAEJ,MAAM,CAACI;IACjB,CAAC;EACH;;EAEA;EACA;EACA;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAOC,oBAAoBA,CAAA,EAAS;IAClCvB,aAAa,EAAEuB,oBAAoB,GAAG,CAAC;EACzC;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAOC,YAAYA,CAAA,EAAS;IAC1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