mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Update dependency org.robolectric:robolectric to v4.16
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ dependencies {
|
||||
|
||||
testImplementation "junit:junit:4.13.2"
|
||||
testImplementation "org.mockito:mockito-core:5.19.0"
|
||||
testImplementation "org.robolectric:robolectric:4.15.1"
|
||||
testImplementation "org.robolectric:robolectric:4.16"
|
||||
testImplementation "org.hamcrest:hamcrest-library:3.0"
|
||||
|
||||
implementation 'androidx.core:core-ktx:1.17.0'
|
||||
|
||||
@@ -61,10 +61,19 @@ public abstract class Logging {
|
||||
getLogger().info("Gadgetbridge version: {}-{} {} {}", BuildConfig.VERSION_NAME,
|
||||
BuildConfig.GIT_HASH_SHORT, BuildConfig.FLAVOR, BuildConfig.BUILD_TYPE);
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
|
||||
getLogger().info("Android: SDK_INT={}", Build.VERSION.SDK_INT);
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.BAKLAVA) {
|
||||
getLogger().info(
|
||||
"Android: SDK_INT={} SECURITY_PATCH={}",
|
||||
Build.VERSION.SDK_INT,
|
||||
Build.VERSION.SECURITY_PATCH
|
||||
);
|
||||
} else {
|
||||
getLogger().info("Android: SDK_INT_FULL={} SECURITY_PATCH={}", Build.VERSION.SDK_INT_FULL, Build.VERSION.SECURITY_PATCH);
|
||||
getLogger().info(
|
||||
"Android: SDK_INT={} SDK_INT_FULL={} SECURITY_PATCH={}",
|
||||
Build.VERSION.SDK_INT,
|
||||
Build.VERSION.SDK_INT_FULL,
|
||||
Build.VERSION.SECURITY_PATCH
|
||||
);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Log.e("GBApplication", "External files dir not available, cannot log to file", ex);
|
||||
|
||||
@@ -32,7 +32,7 @@ import static nodomain.freeyourgadget.gadgetbridge.Logging.PROP_LOGFILES_DIR;
|
||||
* directory.
|
||||
*/
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
@Config(sdk = 21, application = GBTestApplication.class)
|
||||
@Config(sdk = 23, application = GBTestApplication.class)
|
||||
public abstract class TestBase {
|
||||
protected static File logFilesDir;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user