@tenqube/visual-reward-react-native 1.1.3 → 1.1.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tenqube/visual-reward
2
2
 
3
+ ## 1.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - ee49e4d: feat: 호스트 앱과의 네이티브 모듈 버전 충돌 방지를 위해 모든 네이티브 의존성을 peerDependencies로 이동
8
+
3
9
  ## 1.1.3
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -20,20 +20,35 @@ React Native WebView 기반 리워드 광고 SDK입니다.
20
20
  npm install @tenqube/visual-reward-react-native
21
21
  ```
22
22
 
23
- SDK가 의존하는 패키지(`react-native-webview`, `react-native-device-info`, `react-native-idfa-aaid`, `react-native-orientation-locker`, `react-native-permissions`, `@react-native-community/netinfo`)는 함께 설치됩니다. 아래 **peer dependency**만 호스트 앱에 직접 설치합니다.
23
+ SDK가 사용하는 네이티브 모듈은 **peer dependency**로 선언되어 있습니다. 호스트 앱과 **네이티브 모듈 버전이 충돌하지 않도록**(단일 버전 보장) 아래 패키지들을 호스트 앱에 직접 설치합니다. 이미 설치되어 있는 것은 그대로 두면 됩니다.
24
24
 
25
25
  ```sh
26
- npm install react-native-safe-area-context
26
+ npm install \
27
+ react-native-webview \
28
+ react-native-safe-area-context \
29
+ react-native-device-info \
30
+ react-native-idfa-aaid \
31
+ react-native-orientation-locker \
32
+ react-native-permissions \
33
+ @react-native-community/netinfo
27
34
  ```
28
35
 
36
+ > 광고 연동(GMA / AdPopcorn SSP)은 **선택적 peer dependency**이며, 사용할 때만 설치합니다. ([AdMob / Ad Manager WebView 광고 연동](#admob--ad-manager-webview-광고-연동-선택) 참고)
37
+
29
38
  ### 방법 2) 수동 설치 (GitHub Release)
30
39
 
31
- npm을 쓰지 않는 경우, [GitHub Release](https://github.com/tenqube/visual-reward-sdk-react-native/releases)에서 `visual-reward-react-native-<버전>.zip`을 내려받아 압축을 풀고 프로젝트 내 원하는 위치에 복사합니다. (zip에는 `android/`, `ios/` 네이티브 모듈이 포함되어 있습니다.) 그런 다음 `package.json`에 `file:` 경로로 추가합니다.
40
+ npm을 쓰지 않는 경우, [GitHub Release](https://github.com/tenqube/visual-reward-sdk-react-native/releases)에서 `visual-reward-react-native-<버전>.zip`을 내려받아 압축을 풀고 프로젝트 내 원하는 위치에 복사합니다. (zip에는 `android/`, `ios/` 네이티브 모듈이 포함되어 있습니다.) 그런 다음 `package.json`에 `file:` 경로 및 위 peer dependency들을 추가합니다.
32
41
 
33
42
  ```json
34
43
  "dependencies": {
35
44
  "@tenqube/visual-reward-react-native": "file:./visual-reward-react-native",
36
- "react-native-safe-area-context": ">=4.0.0"
45
+ "react-native-webview": ">=13.0.0",
46
+ "react-native-safe-area-context": ">=4.0.0",
47
+ "react-native-device-info": ">=10.0.0",
48
+ "react-native-idfa-aaid": ">=0.1.1",
49
+ "react-native-orientation-locker": ">=1.7.0",
50
+ "react-native-permissions": ">=4.0.0",
51
+ "@react-native-community/netinfo": ">=11.0.0"
37
52
  }
38
53
  ```
39
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenqube/visual-reward-react-native",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Tenqube Visual Reward SDK for React Native",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
@@ -22,18 +22,16 @@
22
22
  "README.md",
23
23
  "CHANGELOG.md"
24
24
  ],
25
- "dependencies": {
26
- "@react-native-community/netinfo": "^11.0.0",
27
- "react-native-idfa-aaid": "^0.1.1",
28
- "react-native-device-info": "^10.0.0",
29
- "react-native-orientation-locker": "^1.7.0",
30
- "react-native-permissions": "^4.0.0",
31
- "react-native-webview": "^13.0.0"
32
- },
33
25
  "peerDependencies": {
34
26
  "react": ">=18.0.0",
35
27
  "react-native": ">=0.72.0",
28
+ "react-native-webview": ">=13.0.0",
36
29
  "react-native-safe-area-context": ">=4.0.0",
30
+ "react-native-device-info": ">=10.0.0",
31
+ "react-native-idfa-aaid": ">=0.1.1",
32
+ "react-native-orientation-locker": ">=1.7.0",
33
+ "react-native-permissions": ">=4.0.0",
34
+ "@react-native-community/netinfo": ">=11.0.0",
37
35
  "react-native-google-mobile-ads": "*",
38
36
  "react-native-adpopcorn-ssp": "*"
39
37
  },