Этот коммит содержится в:
Anton Tananaev
2020-06-10 21:14:19 -07:00
родитель 330dc27f0f
Коммит a3d43294ce
7 изменённых файлов: 17 добавлений и 11 удалений
+6 -5
Просмотреть файл
@@ -8,8 +8,8 @@ android {
buildConfigField 'boolean', 'HIDDEN_APP', 'false' buildConfigField 'boolean', 'HIDDEN_APP', 'false'
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 29 targetSdkVersion 29
versionCode 63 versionCode 64
versionName '6.2' versionName '6.3'
} }
lintOptions { lintOptions {
@@ -36,18 +36,19 @@ android {
} }
dependencies { dependencies {
implementation 'com.google.android.material:material:1.2.0-alpha06' implementation 'com.google.android.material:material:1.3.0-alpha01'
implementation 'androidx.preference:preference:1.1.1' implementation 'androidx.preference:preference:1.1.1'
testImplementation 'junit:junit:4.13' testImplementation 'junit:junit:4.13'
testImplementation 'org.robolectric:robolectric:4.1' testImplementation 'org.robolectric:robolectric:4.1'
googleImplementation 'com.google.firebase:firebase-core:17.3.0' googleImplementation 'com.google.firebase:firebase-core:17.4.3'
googleImplementation 'com.crashlytics.sdk.android:crashlytics:2.10.1' googleImplementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
googleImplementation 'com.google.firebase:firebase-analytics:17.4.3'
googleImplementation 'com.google.android.gms:play-services-location:17.0.0' googleImplementation 'com.google.android.gms:play-services-location:17.0.0'
} }
if (getGradle().getStartParameter().getTaskRequests().toString().contains('Google')) { if (getGradle().getStartParameter().getTaskRequests().toString().contains('Google')) {
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric' apply plugin: 'com.google.firebase.crashlytics'
task copyJson(type: Copy) { task copyJson(type: Copy) {
from '../../traccar-shared/google-services' from '../../traccar-shared/google-services'
+2
Просмотреть файл
@@ -2,6 +2,7 @@
package org.traccar.client; package org.traccar.client;
import android.location.Location; import android.location.Location;
import android.os.Build;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -14,6 +15,7 @@ import java.util.Date;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull; import static org.junit.Assert.assertNull;
@Config(sdk = Build.VERSION_CODES.P)
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
public class DatabaseHelperTest { public class DatabaseHelperTest {
+2
Просмотреть файл
@@ -2,6 +2,7 @@
package org.traccar.client; package org.traccar.client;
import android.location.Location; import android.location.Location;
import android.os.Build;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -12,6 +13,7 @@ import java.util.Date;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
@Config(sdk = Build.VERSION_CODES.P)
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
public class ProtocolFormatterTest { public class ProtocolFormatterTest {
+4 -1
Просмотреть файл
@@ -1,6 +1,8 @@
package org.traccar.client; package org.traccar.client;
import android.os.Build;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -9,10 +11,11 @@ import org.robolectric.annotation.Config;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@Config(sdk = Build.VERSION_CODES.P)
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
public class RequestManagerTest { public class RequestManagerTest {
@Ignore @Ignore("Not a real unit test")
@Test @Test
public void testSendRequest() throws Exception { public void testSendRequest() throws Exception {
+2 -3
Просмотреть файл
@@ -2,12 +2,11 @@ buildscript {
repositories { repositories {
google() google()
jcenter() jcenter()
maven { url 'https://maven.fabric.io/public' }
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.6.3' classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.gms:google-services:4.3.3'
classpath 'io.fabric.tools:gradle:1.28.0' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.1'
} }
} }
-1
Просмотреть файл
@@ -1,3 +1,2 @@
android.enableJetifier=true android.enableJetifier=true
android.useAndroidX=true android.useAndroidX=true
android.enableUnitTestBinaryResources=true
+1 -1
Просмотреть файл
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip