Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Basic reference

>[getUDID](hypsystem/system/platform/Android.hx#L35): Return the device UDID.

>[isFirebaseTestLab](hypsystem/system/platform/Android.hx#L46): Return if device is currently in the Pre-Launch test lab.

#### The [DateTools](hypsystem/system/DateTools.hx) class (hypsystem.system.DateTools)
Adding ISO & UTF date support to haxe by using native methods (iOS & Android)

Expand Down
3 changes: 3 additions & 0 deletions dependencies/hyp-system/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ android.library.reference.2=../joda-time

# Project target.
target=android-::ANDROID_TARGET_SDK_VERSION::

java.source=7
java.target=7
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,13 @@ public static float getDensity()
return metrics.density;
}

public static boolean isFirebaseTestLab()
{
String testLabSetting = Settings.System.getString(HypSystem.mainContext.getContentResolver(), "firebase.test.lab");
if ("true".equals(testLabSetting)) {
return true;
}
return false;
}

}
5 changes: 4 additions & 1 deletion dependencies/joda-time/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19
target=android-::ANDROID_TARGET_SDK_VERSION::
android.library=true

java.source=7
java.target=7
1 change: 1 addition & 0 deletions hypsystem/net/NetworkInfos.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class NetworkInfos
ConnectionType.MOBILE;

case _:
ConnectionType.NONE;
}

return res;
Expand Down
11 changes: 11 additions & 0 deletions hypsystem/system/platform/Android.hx
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,15 @@ class Android
{
return "";
}

/**
Find out if device is currently in the Pre-Launch test lab
https://firebase.google.com/docs/test-lab/android-studio

@return True or false (Bool)
**/
@JNI public static function isFirebaseTestLab():Bool
{
return false;
}
}