@adstage/react-native-sdk 1.0.1 → 1.0.3

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 CHANGED
@@ -1,21 +1,13 @@
1
- MIT License
1
+ Copyright (c) 2024-2025 NBase Inc. All Rights Reserved.
2
2
 
3
- Copyright (c) 2024 NBase
3
+ PROPRIETARY AND CONFIDENTIAL
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
5
+ This software is proprietary to NBase Inc. and is protected by copyright law.
6
+ Unauthorized copying, modification, distribution, or use of this software,
7
+ via any medium, is strictly prohibited.
11
8
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
9
+ This software is provided to authorized users only under the terms of a
10
+ separate license agreement. Use of this software is subject to compliance
11
+ with such agreement.
14
12
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
13
+ For licensing inquiries, please contact: support@nbase.io
@@ -40,7 +40,7 @@ class AdStageModule(reactContext: ReactApplicationContext) :
40
40
  try {
41
41
  Log.d(TAG, "Initializing AdStage SDK...")
42
42
 
43
- val context = currentActivity ?: reactApplicationContext
43
+ val context = reactApplicationContext.currentActivity ?: reactApplicationContext
44
44
 
45
45
  // serverUrl이 빈 문자열이면 기본값 사용 (iOS와 동일한 처리)
46
46
  if (serverUrl.isEmpty()) {
@@ -233,7 +233,7 @@ class AdStageModule(reactContext: ReactApplicationContext) :
233
233
 
234
234
  @ReactMethod
235
235
  fun handleIntent() {
236
- currentActivity?.let { activity ->
236
+ reactApplicationContext.currentActivity?.let { activity ->
237
237
  AdStage.handleIntent(activity, activity.intent)
238
238
  }
239
239
  }
@@ -285,7 +285,7 @@ class AdStageModule(reactContext: ReactApplicationContext) :
285
285
  fun handlePromotionClick(promotionMap: ReadableMap, promise: Promise) {
286
286
  scope.launch {
287
287
  try {
288
- val context = currentActivity ?: reactApplicationContext
288
+ val context = reactApplicationContext.currentActivity ?: reactApplicationContext
289
289
 
290
290
  // ReadableMap에서 Promotion 객체 복원
291
291
  val promotion = mapToPromotion(promotionMap)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adstage/react-native-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "AdStage SDK for React Native - 광고 어트리뷰션, 딥링크, 인앱 이벤트 트래킹",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -46,7 +46,7 @@
46
46
  "url": "https://github.com/nbase-io/NBase-SDK-ReactNative.git"
47
47
  },
48
48
  "author": "NBase <support@nbase.io>",
49
- "license": "MIT",
49
+ "license": "UNLICENSED",
50
50
  "bugs": {
51
51
  "url": "https://github.com/nbase-io/NBase-SDK-ReactNative/issues"
52
52
  },