Updated Android SDK, all dependencies, and did the gradle migarion, fixed unit tests and ktlint (#627)

Co-authored-by: Artak Kalantarian <artak@amazon.com>
This commit is contained in:
Artak Kalantarian
2022-12-21 18:11:43 +04:00
committed by GitHub
parent c6dd558665
commit b038aeddb0
95 changed files with 796 additions and 704 deletions

View File

@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
compileSdkVersion 33
defaultConfig {
applicationId = 'com.mapbox.mapboxsdk.maps.benchmark_runner'
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion 33
def abi = 'all'
if (project.hasProperty('mapbox.abis')) {
abi = project.getProperty('mapbox.abis')
@@ -44,9 +44,9 @@ android {
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
androidTestImplementation 'androidx.test:rules:1.5.0'
}

View File

@@ -2,7 +2,7 @@ package android.app;
import android.util.Log;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner;
import androidx.test.filters.LargeTest;
import androidx.test.rule.ActivityTestRule;
@@ -12,7 +12,7 @@ import org.junit.Test;
import org.junit.runner.RunWith;
@LargeTest
@RunWith(AndroidJUnit4.class)
@RunWith(AndroidJUnit4ClassRunner.class)
public class NativeActivityTest {
@Rule