Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d34fb06c authored by Kevin Liu's avatar Kevin Liu
Browse files

Add strict_mode: false

As strict mode is in place, the default strict_mode is now set to true. We are encourage teams to write tests in strict_mode to make tests Bivalent (able to run on device and devicelessly)

Test: atest animationlib_robo_tests
Bug: 334089788
Change-Id: I3a5a42e52077b5c3e50e755f54893f4d083c2832
parent dabea20f
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@ package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}


android_library {
    name: "animationlib",
    manifest: "AndroidManifest.xml",
@@ -30,10 +29,10 @@ android_library {
    ],
    srcs: [
        "src/**/*.java",
        "src/**/*.kt"
        "src/**/*.kt",
    ],
    resource_dirs: [
        "res"
        "res",
    ],
    kotlincflags: ["-Xjvm-default=all"],
}
@@ -49,7 +48,7 @@ android_library {
        "androidx.test.ext.junit",
        "androidx.test.rules",
        "testables",
    ]
    ],
}

android_app {
@@ -57,7 +56,7 @@ android_app {
    platform_apis: true,
    static_libs: [
        "animationlib-tests-base",
    ]
    ],
}

android_robolectric_test {
@@ -65,11 +64,12 @@ android_robolectric_test {
    name: "animationlib_robo_tests",
    srcs: [
        "tests/src/**/*.kt",
        "tests/robolectric/src/**/*.kt"
        "tests/robolectric/src/**/*.kt",
    ],
    java_resource_dirs: ["tests/robolectric/config"],
    instrumentation_for: "TestAnimationLibApp",
    upstream: true,
    strict_mode: false,
}

android_test {
@@ -81,9 +81,8 @@ android_test {
    ],
    srcs: [
        "tests/src/**/*.java",
        "tests/src/**/*.kt"
        "tests/src/**/*.kt",
    ],
    kotlincflags: ["-Xjvm-default=all"],
    test_suites: ["general-tests"],
}