Skip to content

Commit

Permalink
Readd accidentally removed tests and fix connected tests, disable two
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Mar 19, 2024
1 parent ce7a087 commit 67142f9
Show file tree
Hide file tree
Showing 13 changed files with 1,549 additions and 13 deletions.
13 changes: 13 additions & 0 deletions datacapturing/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,18 @@
android:process=":persistence_process"
android:syncable="true"
tools:replace="android:authorities"/>

<!-- Some connected Android tests needs this to create a test account, or else we get -->
<!-- SecurityException: ... cannot explicitly add accounts of type: ... -->
<service android:name="de.cyface.synchronization.CyfaceAuthenticatorService"
android:exported="false"
android:process=":sync"> <!-- should be fine to use the sync process -->
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import de.cyface.persistence.model.MeasurementStatus
import de.cyface.persistence.model.Modality
import de.cyface.persistence.strategy.DefaultDistanceCalculation
import de.cyface.persistence.strategy.DefaultLocationCleaning
import de.cyface.synchronization.Constants.AUTH_TOKEN_TYPE
import de.cyface.uploader.exception.SynchronisationException
import de.cyface.utils.Validate

Expand Down Expand Up @@ -105,6 +104,7 @@ class MovebisDataCapturingService internal constructor(
* running.
*/
private val preMeasurementLocationManager: LocationManager?
private val AUTH_TOKEN_TYPE = "de.cyface.jwt"

/**
* A listener for location updates, which it passes through to the user interface.
Expand Down
Loading

0 comments on commit 67142f9

Please sign in to comment.