Skip to content

Commit bc7fe6f

Browse files
committed
WIP
1 parent d2360a6 commit bc7fe6f

File tree

4 files changed

+35
-9
lines changed

4 files changed

+35
-9
lines changed

app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ dependencies {
121121
implementation 'com.google.firebase:firebase-messaging-ktx:23.0.0'
122122
implementation 'com.google.firebase:firebase-analytics-ktx:20.0.2'
123123

124+
implementation 'com.yandex.android:mobmetricalib:4.1.1'
125+
124126
def kotpref_version = "2.13.2"
125127
implementation "com.chibatching.kotpref:kotpref:$kotpref_version"
126128
implementation "com.chibatching.kotpref:gson-support:$kotpref_version"

app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
4-
package="ir.kindnesswall" >
4+
package="ir.kindnesswall">
55

66
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
77
<uses-permission android:name="android.permission.INTERNET" />
8+
9+
<!-- removing app-metrica accessing ad-id -->
10+
<uses-permission
11+
android:name="com.google.android.gms.permission.AD_ID"
12+
tools:node="remove" />
13+
814
<application
915
android:name=".KindnessApplication"
1016
android:allowBackup="false"
@@ -15,9 +21,8 @@
1521
android:supportsRtl="true"
1622
android:theme="@style/AppTheme"
1723
android:usesCleartextTraffic="true"
18-
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute" >
19-
<activity android:name="ir.kindnesswall.view.main.charity.Rating.RatingActivity" >
20-
</activity>
24+
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute">
25+
<activity android:name="ir.kindnesswall.view.main.charity.Rating.RatingActivity"></activity>
2126
<activity android:name=".view.reviewgift.ReviewGiftsActivity" />
2227
<activity android:name=".view.update.ForceAndOptionalUpdateActivity" />
2328
<activity android:name=".view.main.more.aboutus.AboutUsActivity" />
@@ -35,7 +40,7 @@
3540
<activity android:name=".view.authentication.AuthenticationActivity" />
3641
<activity android:name=".view.main.MainActivity" />
3742
<activity android:name=".view.onbording.OnBoardingActivity" />
38-
<activity android:name=".view.splash.SplashActivity" >
43+
<activity android:name=".view.splash.SplashActivity">
3944
<intent-filter>
4045
<action android:name="android.intent.action.MAIN" />
4146

@@ -45,7 +50,7 @@
4550

4651
<service
4752
android:name=".service.KindnessWallFirebaseMessagingService"
48-
android:exported="false" >
53+
android:exported="false">
4954
<intent-filter>
5055
<action android:name="com.google.firebase.MESSAGING_EVENT" />
5156
</intent-filter>

app/src/main/java/ir/kindnesswall/KindnessApplication.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import androidx.lifecycle.Lifecycle
99
import androidx.lifecycle.LifecycleObserver
1010
import androidx.lifecycle.OnLifecycleEvent
1111
import androidx.lifecycle.ProcessLifecycleOwner
12-
import com.chibatching.kotpref.Kotpref
12+
import com.yandex.metrica.YandexMetrica
13+
import com.yandex.metrica.YandexMetricaConfig
1314
import ir.kindnesswall.data.local.AppPref
1415
import ir.kindnesswall.data.local.dao.catalog.GiftModel
1516
import ir.kindnesswall.data.model.ChatContactModel
@@ -53,6 +54,12 @@ class KindnessApplication : Application(), LifecycleObserver {
5354
if (BuildConfig.DEBUG)
5455
Timber.plant(Timber.DebugTree())
5556

57+
YandexMetrica.activate(
58+
this,
59+
YandexMetricaConfig.newConfigBuilder("eb830151-7a51-4c99-b498-a266722b89d3").build()
60+
)
61+
YandexMetrica.enableActivityAutoTracking(this)
62+
5663
startKoin {
5764
androidLogger()
5865
androidContext(this@KindnessApplication)
@@ -82,7 +89,7 @@ class KindnessApplication : Application(), LifecycleObserver {
8289
contactListMap[chatContactModel.chat?.chatId!!] = chatContactModel
8390
}
8491

85-
fun removeContact(chatId: Long){
92+
fun removeContact(chatId: Long) {
8693
contactListMap.remove(chatId)
8794
}
8895

scripts/extract_dependencies/stagingDebugRuntimeClasspath.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,18 @@ stagingDebugRuntimeClasspath - Runtime classpath of compilation 'stagingDebug' (
527527
| +--- com.google.firebase:firebase-common-ktx:20.0.0 (*)
528528
| +--- com.google.firebase:firebase-components:17.0.0 (*)
529529
| \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50 -> 1.5.31 (*)
530+
+--- com.yandex.android:mobmetricalib:4.1.1
531+
| +--- com.google.android.gms:play-services-appset:16.0.0
532+
| | +--- com.google.android.gms:play-services-base:17.6.0
533+
| | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
534+
| | | +--- androidx.core:core:1.2.0 -> 1.5.0 (*)
535+
| | | +--- androidx.fragment:fragment:1.0.0 -> 1.3.6 (*)
536+
| | | +--- com.google.android.gms:play-services-basement:17.6.0 -> 18.0.0 (*)
537+
| | | \--- com.google.android.gms:play-services-tasks:17.2.1 -> 18.0.1 (*)
538+
| | +--- com.google.android.gms:play-services-basement:17.6.0 -> 18.0.0 (*)
539+
| | \--- com.google.android.gms:play-services-tasks:17.0.0 -> 18.0.1 (*)
540+
| +--- com.android.installreferrer:installreferrer:2.2
541+
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 -> 1.5.31 (*)
530542
+--- com.chibatching.kotpref:kotpref:2.13.2
531543
| \--- androidx.annotation:annotation:1.1.0 -> 1.2.0
532544
+--- com.chibatching.kotpref:gson-support:2.13.2
@@ -627,5 +639,5 @@ You can use '--warning-mode all' to show the individual deprecation warnings and
627639

628640
See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
629641

630-
BUILD SUCCESSFUL in 8s
642+
BUILD SUCCESSFUL in 1s
631643
1 actionable task: 1 executed

0 commit comments

Comments
 (0)