@suro4ek/appmetrica-push-sdk 1.0.6 → 1.0.8
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/.gradle/9.0.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/build.gradle +4 -7
- package/android/src/main/java/com/appmetricapush/AppMetricaPushModule.kt +8 -9
- package/package.json +1 -1
- package/src/AppMetricaPushModule.ts +0 -7
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
gradle.version=
|
|
1
|
+
#Mon Dec 29 12:10:25 YAKT 2025
|
|
2
|
+
gradle.version=9.0.0
|
package/android/build.gradle
CHANGED
|
@@ -28,15 +28,12 @@ android {
|
|
|
28
28
|
|
|
29
29
|
dependencies {
|
|
30
30
|
implementation "com.facebook.react:react-native:+"
|
|
31
|
-
|
|
32
|
-
// Kotlin
|
|
33
31
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.1.20"
|
|
34
32
|
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
implementation("androidx.legacy:legacy-support-v4:1.0.0")
|
|
33
|
+
// Изменить implementation на api, чтобы классы были доступны в основном приложении
|
|
34
|
+
api("io.appmetrica.analytics:push:4.2.1")
|
|
35
|
+
api("io.appmetrica.analytics:push-provider-firebase:4.2.1")
|
|
39
36
|
|
|
40
|
-
|
|
37
|
+
implementation("androidx.legacy:legacy-support-v4:1.0.0")
|
|
41
38
|
compileOnly 'com.google.firebase:firebase-messaging:24.0.0'
|
|
42
39
|
}
|
|
@@ -32,21 +32,20 @@ class AppMetricaPushModule(reactContext: ReactApplicationContext) : ReactContext
|
|
|
32
32
|
try {
|
|
33
33
|
val debugMode = if (config.hasKey("debugMode")) config.getBoolean("debugMode") else false
|
|
34
34
|
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
// Инициализация AppMetrica Push
|
|
36
|
+
AppMetricaPush.activate(reactApplicationContext)
|
|
37
|
+
|
|
39
38
|
// Настройка дефолтного канала AppMetrica Push SDK
|
|
40
39
|
setupAppMetricaDefaultChannel()
|
|
41
|
-
|
|
40
|
+
|
|
42
41
|
if (debugMode) {
|
|
43
|
-
Log.d(TAG, "AppMetrica Push
|
|
42
|
+
Log.d(TAG, "AppMetrica Push initialized successfully")
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
promise.resolve(true)
|
|
47
46
|
} catch (e: Exception) {
|
|
48
|
-
Log.e(TAG, "Failed to initialize AppMetrica Push
|
|
49
|
-
promise.reject("INIT_ERROR",
|
|
47
|
+
Log.e(TAG, "Failed to initialize AppMetrica Push", e)
|
|
48
|
+
promise.reject("INIT_ERROR", e.message)
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -174,4 +173,4 @@ class AppMetricaPushModule(reactContext: ReactApplicationContext) : ReactContext
|
|
|
174
173
|
"4.2.1" // Fallback версия
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
|
-
}
|
|
176
|
+
}
|
package/package.json
CHANGED
|
@@ -21,13 +21,6 @@ class AppMetricaPush {
|
|
|
21
21
|
return AppMetricaPush.instance;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* Статический метод инициализации (для удобства)
|
|
26
|
-
*/
|
|
27
|
-
static initialize(config: PushConfig): Promise<InitializationResult> {
|
|
28
|
-
return AppMetricaPush.getInstance().initialize(config);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
24
|
/**
|
|
32
25
|
* Инициализация AppMetrica Push SDK
|
|
33
26
|
*/
|