diff --git a/build.gradle b/build.gradle index b0064db2d..45a7eb82f 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.2.2' + classpath 'com.android.tools.build:gradle:7.3.0-rc01' } } @@ -120,7 +120,7 @@ android { } dependencies { - coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.6' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.0' implementation 'androidx.appcompat:appcompat:1.5.0' implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' diff --git a/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/ExportImportTest.java b/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/ExportImportTest.java index 4376ffc98..5b1ae1da7 100644 --- a/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/ExportImportTest.java +++ b/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/ExportImportTest.java @@ -463,7 +463,7 @@ public class ExportImportTest { contentProviderUtils.deleteTrack(context, trackId); // then - InputStream expected = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.csv_export); + InputStream expected = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.csv_export); String expectedText = new BufferedReader(new InputStreamReader(expected, StandardCharsets.UTF_8)) .lines() .collect(Collectors.joining("\n")); diff --git a/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/GPXTrackImporterTest.java b/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/GPXTrackImporterTest.java index 740399fe0..392bdbc4a 100644 --- a/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/GPXTrackImporterTest.java +++ b/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/GPXTrackImporterTest.java @@ -69,7 +69,7 @@ public class GPXTrackImporterTest { public void gpx_with_pause_resume() throws IOException { // given XMLImporter importer = new XMLImporter(new GpxTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.legacy_gpx_pause_resume); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.legacy_gpx_pause_resume); // when // 1. import @@ -123,7 +123,7 @@ public class GPXTrackImporterTest { public void gpx_without_speed() throws IOException { // given XMLImporter importer = new XMLImporter(new GpxTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.gpx11_without_speed); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.gpx11_without_speed); // when // 1. import @@ -171,7 +171,7 @@ public class GPXTrackImporterTest { public void gpx_speed_no_namespace() throws IOException { // given XMLImporter importer = new XMLImporter(new GpxTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.gpx11_with_speed_no_namespace); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.gpx11_with_speed_no_namespace); // when // 1. import @@ -221,8 +221,8 @@ public class GPXTrackImporterTest { public void importExportTest_timezone() throws IOException { // given XMLImporter importer = new XMLImporter(new GpxTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.gpx_timezone); - InputStream inputStreamExpected = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.gpx_timezone); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.gpx_timezone); + InputStream inputStreamExpected = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.gpx_timezone); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); diff --git a/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/KMLTrackImporterTest.java b/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/KMLTrackImporterTest.java index afc7c5e7b..f60cfd221 100644 --- a/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/KMLTrackImporterTest.java +++ b/src/androidTest/java/de/dennisguse/opentracks/io/file/importer/KMLTrackImporterTest.java @@ -60,7 +60,7 @@ public class KMLTrackImporterTest { public void kml22_order_location_and_when() throws IOException { // given XMLImporter importer = new XMLImporter(new KmlTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.kml22_order_location_and_when); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.kml22_order_location_and_when); // when // 1. import @@ -109,7 +109,7 @@ public class KMLTrackImporterTest { public void kml22_time_decreases() throws IOException { // given XMLImporter importer = new XMLImporter(new KmlTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.kml22_time_decreases); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.kml22_time_decreases); // when // 1. import @@ -149,7 +149,7 @@ public class KMLTrackImporterTest { public void kml22_with_statistics_marker() throws IOException { // given XMLImporter importer = new XMLImporter(new KmlTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.legacy_kml22_statistics_marker); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.legacy_kml22_statistics_marker); // when // 1. import @@ -223,7 +223,7 @@ public class KMLTrackImporterTest { public void kml_without_locations() throws IOException { // given XMLImporter importer = new XMLImporter(new KmlTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.kml22_without_locations); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.kml22_without_locations); // when importTrackId = importer.importFile(inputStream).get(0); @@ -234,7 +234,7 @@ public class KMLTrackImporterTest { public void kml_when_locations_different() throws IOException { // given XMLImporter importer = new XMLImporter(new KmlTrackImporter(context, trackImporter)); - InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.debug.test.R.raw.kml22_when_locations_different); + InputStream inputStream = InstrumentationRegistry.getInstrumentation().getContext().getResources().openRawResource(de.dennisguse.opentracks.test.R.raw.kml22_when_locations_different); // when importTrackId = importer.importFile(inputStream).get(0);