-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: test android workflow Signed-off-by: Mark Phelps <[email protected]> * chore: try workflow dispatch event Signed-off-by: Mark Phelps <[email protected]> * chore: seperate notify job Signed-off-by: Mark Phelps <[email protected]> * chore: try once more sigh Signed-off-by: Mark Phelps <[email protected]> * chore: omg workflows Signed-off-by: Mark Phelps <[email protected]> * chore: try to trigger workflow again Signed-off-by: Mark Phelps <[email protected]> * chore: use headref for trigger Signed-off-by: Mark Phelps <[email protected]> * chore: try to use caller_run_id instead Signed-off-by: Mark Phelps <[email protected]> * chore: omg inputs Signed-off-by: Mark Phelps <[email protected]> * chore: already decompressed Signed-off-by: Mark Phelps <[email protected]> * chore: omg Signed-off-by: Mark Phelps <[email protected]> * chore: tree should be there Signed-off-by: Mark Phelps <[email protected]> * chore: try to boot emu Signed-off-by: Mark Phelps <[email protected]> * chore: mkdirs Signed-off-by: Mark Phelps <[email protected]> * chore: mkdir Signed-off-by: Mark Phelps <[email protected]> * chore: fix relative paths Signed-off-by: Mark Phelps <[email protected]> * update the gh action for android Signed-off-by: Roman Dmytrenko <[email protected]> * wait a bit Signed-off-by: Roman Dmytrenko <[email protected]> * try android-emulator-runner Signed-off-by: Roman Dmytrenko <[email protected]> * checking the env variables Signed-off-by: Roman Dmytrenko <[email protected]> * chore: clear space Signed-off-by: Mark Phelps <[email protected]> * chore: add healthcheck to ensure we can access Flipt server Signed-off-by: Mark Phelps <[email protected]> * chore: hopefully enable http Signed-off-by: Mark Phelps <[email protected]> * chore: once more try to get tests to run Signed-off-by: Mark Phelps <[email protected]> * chore: connectedAndroidTests Signed-off-by: Mark Phelps <[email protected]> * chore: try dns Signed-off-by: Mark Phelps <[email protected]> * fix(kotlin): remove type from authentication strategy serialization * chore(kotlin): try to fix json serialization options for auth * chore: log options Signed-off-by: Mark Phelps <[email protected]> * change auth strategy implementation Signed-off-by: Roman Dmytrenko <[email protected]> * cleanup * chore: configure auth when testing Flipt Android IT Signed-off-by: Mark Phelps <[email protected]> * chore: upload artifacts v4 Signed-off-by: Mark Phelps <[email protected]> --------- Signed-off-by: Mark Phelps <[email protected]> Signed-off-by: Roman Dmytrenko <[email protected]> Co-authored-by: Roman Dmytrenko <[email protected]>
- Loading branch information
1 parent
2b1546d
commit 869ceaa
Showing
12 changed files
with
256 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,4 @@ Cargo.lock | |
tmp | ||
.envrc | ||
.vscode | ||
staging | ||
*.h | ||
staging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
flipt-client-kotlin-android/src/androidTest/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<application android:networkSecurityConfig="@xml/network_security_config" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
flipt-client-kotlin-android/src/androidTest/res/xml/network_security_config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<network-security-config> | ||
<domain-config cleartextTrafficPermitted="true"> | ||
<domain includeSubdomains="true">localhost</domain> | ||
<domain includeSubdomains="true">10.0.2.2</domain> | ||
</domain-config> | ||
</network-security-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
|
||
</manifest> | ||
</manifest> |
54 changes: 54 additions & 0 deletions
54
flipt-client-kotlin-android/src/main/cpp/include/flipt_engine.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#include <stdarg.h> | ||
#include <stdbool.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
|
||
/** | ||
* # Safety | ||
* | ||
* This function will initialize an Engine and return a pointer back to the caller. | ||
*/ | ||
void *initialize_engine(const char *namespace_, const char *opts); | ||
|
||
/** | ||
* # Safety | ||
* | ||
* This function will take in a pointer to the engine and return a variant evaluation response. | ||
*/ | ||
const char *evaluate_variant(void *engine_ptr, const char *evaluation_request); | ||
|
||
/** | ||
* # Safety | ||
* | ||
* This function will take in a pointer to the engine and return a boolean evaluation response. | ||
*/ | ||
const char *evaluate_boolean(void *engine_ptr, const char *evaluation_request); | ||
|
||
/** | ||
* # Safety | ||
* | ||
* This function will take in a pointer to the engine and return a batch evaluation response. | ||
*/ | ||
const char *evaluate_batch(void *engine_ptr, const char *batch_evaluation_request); | ||
|
||
/** | ||
* # Safety | ||
* | ||
* This function will take in a pointer to the engine and return a list of flags for the given namespace. | ||
*/ | ||
const char *list_flags(void *engine_ptr); | ||
|
||
/** | ||
* # Safety | ||
* | ||
* This function will free the memory occupied by the engine. | ||
*/ | ||
void destroy_engine(void *engine_ptr); | ||
|
||
/** | ||
* # Safety | ||
* | ||
* This function will take in a pointer to the string and free the memory. | ||
* See Rust the safety section in CString::from_raw. | ||
*/ | ||
void destroy_string(char *ptr); |
Oops, something went wrong.