Skip to content

Commit

Permalink
Add target google api, remove logs, update unit test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKast committed Feb 9, 2024
1 parent 84fe609 commit 7fa2f67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: ReactiveCircus/[email protected]
with:
api-level: 34
target: google_apis
arch: x86_64
script: ./android/gradlew -p ./android :sdl_android:connectedCheck

Expand Down
4 changes: 2 additions & 2 deletions android/sdl_android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ dependencies {
api 'androidx.annotation:annotation:1.1.0'
annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.2.0'

testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.7.0'
androidTestImplementation 'org.mockito:mockito-core:5.7.0'
androidTestImplementation 'org.mockito:mockito-android:5.7.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.5.1'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@

public class DeviceUtil {
public static boolean isEmulator() {
Log.i("Julian", "isEmulator: " + Build.FINGERPRINT);
Log.i("Julian", "isEmulator: " + Build.MODEL);
Log.i("Julian", "isEmulator: " + Build.MANUFACTURER);
Log.i("Julian", "isEmulator: " + Build.BRAND);
Log.i("Julian", "isEmulator: " + Build.PRODUCT);




return Build.FINGERPRINT.startsWith("generic")
|| Build.FINGERPRINT.startsWith("unknown")
|| Build.MODEL.contains("google_sdk")
Expand Down

0 comments on commit 7fa2f67

Please sign in to comment.