From 3872ba3198fe5fc371e7325baac8a05f5f29177d Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Wed, 2 Oct 2024 11:34:36 +0300 Subject: [PATCH 01/10] gher android Signed-off-by: Lentumunai-Mark --- .../java/io/ona/kujaku/helpers/PermissionsHelper.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java index 2ba9daa5..c8abfacf 100644 --- a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java +++ b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java @@ -9,18 +9,27 @@ import com.karumi.dexter.Dexter; import com.karumi.dexter.listener.multi.MultiplePermissionsListener; +import java.util.ArrayList; +import java.util.List; + import io.ona.kujaku.utils.KujakuMultiplePermissionListener; public class PermissionsHelper { public static void checkPermissions(String TAG, Context context) { if (context instanceof Activity) { + List permissions = new ArrayList<>(); + permissions.add(Manifest.permission.ACCESS_FINE_LOCATION); + + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S) { + permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE); + } final Activity activity = (Activity) context; MultiplePermissionsListener dialogMultiplePermissionListener = new KujakuMultiplePermissionListener(activity); Dexter.withActivity(activity) - .withPermissions(Manifest.permission.ACCESS_FINE_LOCATION, (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) ? Manifest.permission.MANAGE_EXTERNAL_STORAGE : Manifest.permission.WRITE_EXTERNAL_STORAGE) + .withPermissions(permissions) .withListener(dialogMultiplePermissionListener) .check(); From 2a450836c49574eb4b7bb67b5d1906595ff2b8ee Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Thu, 3 Oct 2024 09:54:40 +0300 Subject: [PATCH 02/10] Update project versions for library and utils. Signed-off-by: Lentumunai-Mark --- library/build.gradle | 2 +- .../src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java | 3 ++- utils/build.gradle | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/library/build.gradle b/library/build.gradle index cd6e0d94..c4201c23 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -13,7 +13,7 @@ buildscript { apply plugin: 'realm-android' apply plugin: 'maven-publish' -version '0.10.6-SNAPSHOT' +version '0.10.7-SNAPSHOT' project.version = this.version diff --git a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java index c8abfacf..021e0091 100644 --- a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java +++ b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java @@ -13,6 +13,7 @@ import java.util.List; import io.ona.kujaku.utils.KujakuMultiplePermissionListener; +import timber.log.Timber; public class PermissionsHelper { @@ -34,7 +35,7 @@ public static void checkPermissions(String TAG, Context context) { .check(); } else { - Log.wtf(TAG, "KujakuMapView was not started in an activity!! This is very bad or it is being used in tests. We are going to ignore the permissions check! Good luck"); + Timber.tag(TAG).wtf("KujakuMapView was not started in an activity!! This is very bad or it is being used in tests. We are going to ignore the permissions check! Good luck"); } } } diff --git a/utils/build.gradle b/utils/build.gradle index fb65ccbc..42c11b75 100644 --- a/utils/build.gradle +++ b/utils/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'maven-publish' apply plugin: 'jacoco' -version '0.10.6-SNAPSHOT' +version '0.10.7-SNAPSHOT' project.version = this.version From d234a008fcda06e116c0cd8a19226bf5cbd32085 Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Mon, 14 Oct 2024 10:26:47 +0300 Subject: [PATCH 03/10] Add tests for permissions helper. Signed-off-by: Lentumunai-Mark --- library/build.gradle | 5 ++ .../kujaku/helpers/PermissionsHelperTest.java | 46 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java diff --git a/library/build.gradle b/library/build.gradle index c4201c23..b13ed6a0 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -136,6 +136,11 @@ dependencies { configuration -> implementation 'androidx.multidex:multidex:2.0.1' + androidTestImplementation 'org.powermock:powermock-module-junit4:2.0.9' + androidTestImplementation 'org.powermock:powermock-api-mockito2:2.0.9' + androidTestImplementation 'org.mockito:mockito-core:5.12.0' + androidTestImplementation 'org.robolectric:robolectric:4.13' + customDependencies(this, configuration) appPermissionsDependencies(configuration) infoWindowDependencies(this, configuration) diff --git a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java new file mode 100644 index 00000000..86dac07e --- /dev/null +++ b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java @@ -0,0 +1,46 @@ +package io.ona.kujaku.helpers; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; + +import com.karumi.dexter.MultiplePermissionsReport; + +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; +import org.robolectric.Robolectric; +import org.robolectric.RobolectricTestRunner; +import org.robolectric.annotation.Config; + +import io.ona.kujaku.utils.KujakuMultiplePermissionListener; + +@RunWith(RobolectricTestRunner.class) +@Config(sdk = 28) +public class PermissionsHelperTest { + + private Context mockContext; + + @Before + public void setUp() { + MockitoAnnotations.openMocks(this); + // Use a real context + mockContext = Robolectric.setupActivity(Activity.class).getApplicationContext(); + } + + @Test + public void testOnPermissionsChecked_WhenAnyPermissionPermanentlyDenied() { + MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); + Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(true); + Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); + KujakuMultiplePermissionListener listener = new KujakuMultiplePermissionListener(mockContext); + listener.onPermissionsChecked(report); + + // Check that the dialog was created with the expected properties + Mockito.verify(report).isAnyPermissionPermanentlyDenied(); + } +} From 23c96102f81077889ab2bd73cd5b0b7d8b5414bf Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Mon, 14 Oct 2024 10:53:02 +0300 Subject: [PATCH 04/10] Revert to original implementation. Signed-off-by: Lentumunai-Mark --- .../ona/kujaku/helpers/PermissionsHelper.java | 28 +++++++++++-------- .../kujaku/helpers/PermissionsHelperTest.java | 15 ++++------ 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java index 021e0091..f5b0f6f4 100644 --- a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java +++ b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java @@ -19,23 +19,29 @@ public class PermissionsHelper { public static void checkPermissions(String TAG, Context context) { if (context instanceof Activity) { - List permissions = new ArrayList<>(); - permissions.add(Manifest.permission.ACCESS_FINE_LOCATION); - - if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S) { - permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE); - } final Activity activity = (Activity) context; MultiplePermissionsListener dialogMultiplePermissionListener = new KujakuMultiplePermissionListener(activity); - Dexter.withActivity(activity) - .withPermissions(permissions) - .withListener(dialogMultiplePermissionListener) - .check(); + // Check permissions based on the Android version + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) { + // For Android versions below 13 + Dexter.withActivity(activity) + .withPermissions( + Manifest.permission.ACCESS_FINE_LOCATION, + Manifest.permission.WRITE_EXTERNAL_STORAGE + ) + .withListener(dialogMultiplePermissionListener) + .check(); + } else { + Dexter.withActivity(activity) + .withPermissions(Manifest.permission.ACCESS_FINE_LOCATION) + .withListener(dialogMultiplePermissionListener) + .check(); + } } else { - Timber.tag(TAG).wtf("KujakuMapView was not started in an activity!! This is very bad or it is being used in tests. We are going to ignore the permissions check! Good luck"); + Log.wtf(TAG, "KujakuMapView was not started in an activity!! This is very bad or it is being used in tests. We are going to ignore the permissions check! Good luck"); } } } diff --git a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java index 86dac07e..23b0f749 100644 --- a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java +++ b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java @@ -1,12 +1,7 @@ package io.ona.kujaku.helpers; import android.app.Activity; -import android.app.AlertDialog; import android.content.Context; -import android.content.DialogInterface; - -import com.karumi.dexter.MultiplePermissionsReport; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -15,15 +10,17 @@ import org.mockito.MockitoAnnotations; import org.robolectric.Robolectric; import org.robolectric.RobolectricTestRunner; -import org.robolectric.annotation.Config; - +import com.karumi.dexter.MultiplePermissionsReport; import io.ona.kujaku.utils.KujakuMultiplePermissionListener; @RunWith(RobolectricTestRunner.class) -@Config(sdk = 28) public class PermissionsHelperTest { - private Context mockContext; + @Mock + Context mockContext; + + @Mock + Activity mockActivity; @Before public void setUp() { From d6a8ab717243652560b3158ae6d783a2609104c8 Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Mon, 14 Oct 2024 11:00:54 +0300 Subject: [PATCH 05/10] mockk when permissions denied. Signed-off-by: Lentumunai-Mark --- .../kujaku/helpers/PermissionsHelperTest.java | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java index 23b0f749..591f112a 100644 --- a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java +++ b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java @@ -1,5 +1,7 @@ package io.ona.kujaku.helpers; +import static org.junit.Assert.assertFalse; + import android.app.Activity; import android.content.Context; import org.junit.Before; @@ -19,9 +21,6 @@ public class PermissionsHelperTest { @Mock Context mockContext; - @Mock - Activity mockActivity; - @Before public void setUp() { MockitoAnnotations.openMocks(this); @@ -40,4 +39,18 @@ public void testOnPermissionsChecked_WhenAnyPermissionPermanentlyDenied() { // Check that the dialog was created with the expected properties Mockito.verify(report).isAnyPermissionPermanentlyDenied(); } + + @Test + public void testOnPermissionsChecked_WhenAnyPermissionNotPermanentlyDenied() { + MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); + Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(false); + Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); + KujakuMultiplePermissionListener listener = new KujakuMultiplePermissionListener(mockContext); + listener.onPermissionsChecked(report); + + boolean result = report.isAnyPermissionPermanentlyDenied(); + + // Use the result in your assertions or further logic + assertFalse(result); + } } From 916eec30d5993ca8d5b0d2360e62cd65be8777a4 Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Mon, 14 Oct 2024 11:16:53 +0300 Subject: [PATCH 06/10] Fix function naming. Signed-off-by: Lentumunai-Mark --- .../java/io/ona/kujaku/helpers/PermissionsHelperTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java index 591f112a..b7f2483d 100644 --- a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java +++ b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java @@ -29,7 +29,7 @@ public void setUp() { } @Test - public void testOnPermissionsChecked_WhenAnyPermissionPermanentlyDenied() { + public void testOnPermissionsCheckedWhenAnyPermissionPermanentlyDenied() { MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(true); Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); @@ -41,7 +41,7 @@ public void testOnPermissionsChecked_WhenAnyPermissionPermanentlyDenied() { } @Test - public void testOnPermissionsChecked_WhenAnyPermissionNotPermanentlyDenied() { + public void testOnPermissionsCheckedWhenAnyPermissionNotPermanentlyDenied() { MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(false); Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); From 0ad0a69b1c74a70b0aa53bb27d99816a45e5893b Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Mon, 14 Oct 2024 11:25:38 +0300 Subject: [PATCH 07/10] Remove file. Signed-off-by: Lentumunai-Mark --- .../kujaku/helpers/PermissionsHelperTest.java | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java diff --git a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java deleted file mode 100644 index b7f2483d..00000000 --- a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package io.ona.kujaku.helpers; - -import static org.junit.Assert.assertFalse; - -import android.app.Activity; -import android.content.Context; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.robolectric.Robolectric; -import org.robolectric.RobolectricTestRunner; -import com.karumi.dexter.MultiplePermissionsReport; -import io.ona.kujaku.utils.KujakuMultiplePermissionListener; - -@RunWith(RobolectricTestRunner.class) -public class PermissionsHelperTest { - - @Mock - Context mockContext; - - @Before - public void setUp() { - MockitoAnnotations.openMocks(this); - // Use a real context - mockContext = Robolectric.setupActivity(Activity.class).getApplicationContext(); - } - - @Test - public void testOnPermissionsCheckedWhenAnyPermissionPermanentlyDenied() { - MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); - Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(true); - Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); - KujakuMultiplePermissionListener listener = new KujakuMultiplePermissionListener(mockContext); - listener.onPermissionsChecked(report); - - // Check that the dialog was created with the expected properties - Mockito.verify(report).isAnyPermissionPermanentlyDenied(); - } - - @Test - public void testOnPermissionsCheckedWhenAnyPermissionNotPermanentlyDenied() { - MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); - Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(false); - Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); - KujakuMultiplePermissionListener listener = new KujakuMultiplePermissionListener(mockContext); - listener.onPermissionsChecked(report); - - boolean result = report.isAnyPermissionPermanentlyDenied(); - - // Use the result in your assertions or further logic - assertFalse(result); - } -} From c8d44fba3fe5f0dee8bf97f55722df00985cad86 Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Mon, 14 Oct 2024 11:35:30 +0300 Subject: [PATCH 08/10] undo delete test file. Signed-off-by: Lentumunai-Mark --- .../ona/kujaku/helpers/PermissionsHelper.java | 28 ++++------ .../kujaku/helpers/PermissionsHelperTest.java | 56 +++++++++++++++++++ 2 files changed, 67 insertions(+), 17 deletions(-) create mode 100644 library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java diff --git a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java index f5b0f6f4..021e0091 100644 --- a/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java +++ b/library/src/main/java/io/ona/kujaku/helpers/PermissionsHelper.java @@ -19,29 +19,23 @@ public class PermissionsHelper { public static void checkPermissions(String TAG, Context context) { if (context instanceof Activity) { + List permissions = new ArrayList<>(); + permissions.add(Manifest.permission.ACCESS_FINE_LOCATION); + + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S) { + permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE); + } final Activity activity = (Activity) context; MultiplePermissionsListener dialogMultiplePermissionListener = new KujakuMultiplePermissionListener(activity); - // Check permissions based on the Android version - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) { - // For Android versions below 13 - Dexter.withActivity(activity) - .withPermissions( - Manifest.permission.ACCESS_FINE_LOCATION, - Manifest.permission.WRITE_EXTERNAL_STORAGE - ) - .withListener(dialogMultiplePermissionListener) - .check(); - } else { - Dexter.withActivity(activity) - .withPermissions(Manifest.permission.ACCESS_FINE_LOCATION) - .withListener(dialogMultiplePermissionListener) - .check(); - } + Dexter.withActivity(activity) + .withPermissions(permissions) + .withListener(dialogMultiplePermissionListener) + .check(); } else { - Log.wtf(TAG, "KujakuMapView was not started in an activity!! This is very bad or it is being used in tests. We are going to ignore the permissions check! Good luck"); + Timber.tag(TAG).wtf("KujakuMapView was not started in an activity!! This is very bad or it is being used in tests. We are going to ignore the permissions check! Good luck"); } } } diff --git a/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java new file mode 100644 index 00000000..b7f2483d --- /dev/null +++ b/library/src/test/java/io/ona/kujaku/helpers/PermissionsHelperTest.java @@ -0,0 +1,56 @@ +package io.ona.kujaku.helpers; + +import static org.junit.Assert.assertFalse; + +import android.app.Activity; +import android.content.Context; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; +import org.robolectric.Robolectric; +import org.robolectric.RobolectricTestRunner; +import com.karumi.dexter.MultiplePermissionsReport; +import io.ona.kujaku.utils.KujakuMultiplePermissionListener; + +@RunWith(RobolectricTestRunner.class) +public class PermissionsHelperTest { + + @Mock + Context mockContext; + + @Before + public void setUp() { + MockitoAnnotations.openMocks(this); + // Use a real context + mockContext = Robolectric.setupActivity(Activity.class).getApplicationContext(); + } + + @Test + public void testOnPermissionsCheckedWhenAnyPermissionPermanentlyDenied() { + MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); + Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(true); + Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); + KujakuMultiplePermissionListener listener = new KujakuMultiplePermissionListener(mockContext); + listener.onPermissionsChecked(report); + + // Check that the dialog was created with the expected properties + Mockito.verify(report).isAnyPermissionPermanentlyDenied(); + } + + @Test + public void testOnPermissionsCheckedWhenAnyPermissionNotPermanentlyDenied() { + MultiplePermissionsReport report = Mockito.mock(MultiplePermissionsReport.class); + Mockito.when(report.isAnyPermissionPermanentlyDenied()).thenReturn(false); + Mockito.when(report.areAllPermissionsGranted()).thenReturn(false); + KujakuMultiplePermissionListener listener = new KujakuMultiplePermissionListener(mockContext); + listener.onPermissionsChecked(report); + + boolean result = report.isAnyPermissionPermanentlyDenied(); + + // Use the result in your assertions or further logic + assertFalse(result); + } +} From b463265eef4428fdf14d4e482175a919663cc6a7 Mon Sep 17 00:00:00 2001 From: Benjamin Mwalimu Date: Mon, 14 Oct 2024 15:01:17 +0300 Subject: [PATCH 09/10] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Publishing=20version?= =?UTF-8?q?=200.10.7-SNAPSHOt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/build.gradle b/library/build.gradle index c4201c23..bab499cd 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -120,9 +120,9 @@ dependencies { configuration -> implementation mapboxAnnotationPlugin // Comment the line below when creating releases - The line is for development of the library & utils - //implementation (project(":utils")) { + implementation (project(":utils")) { // Uncomment the line below when creating releases - implementation('io.ona.kujaku:utils:0.10.6-SNAPSHOT') { + //implementation('io.ona.kujaku:utils:0.10.7-SNAPSHOT') { transitive = true; exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-sdk' exclude group: 'com.android.support', module: 'support-v4' From 5747f270071be0d43afcefb863a1b41c47dc0746 Mon Sep 17 00:00:00 2001 From: Lentumunai-Mark Date: Mon, 14 Oct 2024 18:38:59 +0300 Subject: [PATCH 10/10] Romove unused deps. Signed-off-by: Lentumunai-Mark --- library/build.gradle | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/build.gradle b/library/build.gradle index 062d938d..40ebb3a6 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -136,11 +136,6 @@ dependencies { configuration -> implementation 'androidx.multidex:multidex:2.0.1' - androidTestImplementation 'org.powermock:powermock-module-junit4:2.0.9' - androidTestImplementation 'org.powermock:powermock-api-mockito2:2.0.9' - androidTestImplementation 'org.mockito:mockito-core:5.12.0' - androidTestImplementation 'org.robolectric:robolectric:4.13' - customDependencies(this, configuration) appPermissionsDependencies(configuration) infoWindowDependencies(this, configuration)