@adstage/react-native-sdk 1.0.4 → 1.0.6
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/android/build.gradle
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
ext.
|
|
3
|
-
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
4
|
-
}
|
|
5
|
-
repositories {
|
|
6
|
-
google()
|
|
7
|
-
mavenCentral()
|
|
8
|
-
}
|
|
9
|
-
dependencies {
|
|
10
|
-
classpath("com.android.tools.build:gradle:8.1.0")
|
|
11
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.9.0')}")
|
|
12
|
-
}
|
|
1
|
+
def safeExtGet = { prop, fallback ->
|
|
2
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
13
3
|
}
|
|
14
4
|
|
|
15
5
|
apply plugin: 'com.android.library'
|
|
@@ -45,15 +45,17 @@ class AdStageModule(reactContext: ReactApplicationContext) :
|
|
|
45
45
|
/**
|
|
46
46
|
* 앱이 이미 실행 중일 때 새로운 딥링크 Intent 수신 (Warm Start)
|
|
47
47
|
* MainActivity에서 onNewIntent 오버라이드 불필요
|
|
48
|
+
*
|
|
49
|
+
* Note: RN 0.81+에서 시그니처가 Intent? → Intent로 변경됨
|
|
48
50
|
*/
|
|
49
|
-
override fun onNewIntent(intent: Intent
|
|
50
|
-
Log.d(TAG, "onNewIntent received: ${intent
|
|
51
|
+
override fun onNewIntent(intent: Intent) {
|
|
52
|
+
Log.d(TAG, "onNewIntent received: ${intent.data}")
|
|
51
53
|
reactApplicationContext.currentActivity?.let { activity ->
|
|
52
54
|
AdStage.handleIntent(activity, intent)
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
|
|
56
|
-
override fun onActivityResult(activity: Activity
|
|
58
|
+
override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, data: Intent?) {
|
|
57
59
|
// 현재 사용하지 않음
|
|
58
60
|
}
|
|
59
61
|
|