Сравнить коммиты

..
1 Коммитов
Автор SHA1 Сообщение Дата
Anton Tananaev a3d43294ce Update project and tests 2020-06-10 21:14:19 -07:00
7 изменённых файлов: 17 добавлений и 11 удалений
+6 -5
Просмотреть файл
@@ -8,8 +8,8 @@ android {
buildConfigField 'boolean', 'HIDDEN_APP', 'false'
minSdkVersion 16
targetSdkVersion 29
versionCode 63
versionName '6.2'
versionCode 64
versionName '6.3'
}
lintOptions {
@@ -36,18 +36,19 @@ android {
}
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'
testImplementation 'junit:junit:4.13'
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.google.firebase:firebase-analytics:17.4.3'
googleImplementation 'com.google.android.gms:play-services-location:17.0.0'
}
if (getGradle().getStartParameter().getTaskRequests().toString().contains('Google')) {
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
apply plugin: 'com.google.firebase.crashlytics'
task copyJson(type: Copy) {
from '../../traccar-shared/google-services'
+2
Просмотреть файл
@@ -2,6 +2,7 @@
package org.traccar.client;
import android.location.Location;
import android.os.Build;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -14,6 +15,7 @@ import java.util.Date;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
@Config(sdk = Build.VERSION_CODES.P)
@RunWith(RobolectricTestRunner.class)
public class DatabaseHelperTest {
+2
Просмотреть файл
@@ -2,6 +2,7 @@
package org.traccar.client;
import android.location.Location;
import android.os.Build;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -12,6 +13,7 @@ import java.util.Date;
import static org.junit.Assert.assertEquals;
@Config(sdk = Build.VERSION_CODES.P)
@RunWith(RobolectricTestRunner.class)
public class ProtocolFormatterTest {
+4 -1
Просмотреть файл
@@ -1,6 +1,8 @@
package org.traccar.client;
import android.os.Build;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -9,10 +11,11 @@ import org.robolectric.annotation.Config;
import static org.junit.Assert.assertTrue;
@Config(sdk = Build.VERSION_CODES.P)
@RunWith(RobolectricTestRunner.class)
public class RequestManagerTest {
@Ignore
@Ignore("Not a real unit test")
@Test
public void testSendRequest() throws Exception {
+2 -3
Просмотреть файл
@@ -2,12 +2,11 @@ buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
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 '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.useAndroidX=true
android.enableUnitTestBinaryResources=true
+1 -1
Просмотреть файл
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
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