From bb1a2fe3113cfa07dc7ea21c03f7ee97ccaeeef7 Mon Sep 17 00:00:00 2001 From: Norman Breau Date: Tue, 8 Oct 2024 01:09:58 -0300 Subject: [PATCH] feat(android): Splash loader --- android/.idea/codeStyles/Project.xml | 117 +++++++++++++ android/.idea/codeStyles/codeStyleConfig.xml | 5 + android/.idea/deploymentTargetSelector.xml | 8 + android/.idea/dictionaries/norman.xml | 3 + android/.idea/gradle.xml | 1 + .../java/com/breautek/fuse/FuseActivity.java | 19 +- .../java/com/breautek/fuse/FuseContext.java | 84 +++++---- .../com/breautek/fuse/utils/IProgress.java | 2 + .../breautek/fuse/utils/IProgressContext.java | 3 + .../com/breautek/fuse/utils/Progress.java | 5 + .../breautek/fuse/utils/ProgressContext.java | 17 ++ .../com/breautek/fuse/views/LoaderSplash.java | 95 ---------- .../breautek/fuse/views/SplashLoaderView.java | 90 ++++++++++ .../main/res/layout/sample_loader_splash.xml | 16 -- .../main/res/layout/splash_loader_view.xml | 49 ++++++ .../fuse/src/main/res/values-night/styles.xml | 7 - .../main/res/values/attrs_loader_splash.xml | 8 - android/fuse/src/main/res/values/colors.xml | 1 + android/fuse/src/main/res/values/strings.xml | 5 + android/fuse/src/main/res/values/styles.xml | 7 - js/src/FuseContext.ts | 9 +- js/src/FuseContextBuilder.ts | 5 +- js/src/FuseContextFactory.ts | 35 ++++ js/src/android/AndroidFuseContext.ts | 31 ++++ js/src/android/internal/BTFuseNative.d.ts | 1 + js/src/ios/IOSFuseContext.ts | 31 ++++ js/src/ios/internal/messageHandlers.d.ts | 7 +- test-app/android/src/main/assets/js/app.js | 163 ++++++++++++++++-- .../breautek/fuse/testapp/MainActivity.java | 2 - test-app/src/App.ts | 9 +- 30 files changed, 641 insertions(+), 194 deletions(-) create mode 100644 android/.idea/codeStyles/Project.xml create mode 100644 android/.idea/codeStyles/codeStyleConfig.xml create mode 100644 android/.idea/dictionaries/norman.xml delete mode 100644 android/fuse/src/main/java/com/breautek/fuse/views/LoaderSplash.java create mode 100644 android/fuse/src/main/java/com/breautek/fuse/views/SplashLoaderView.java delete mode 100644 android/fuse/src/main/res/layout/sample_loader_splash.xml create mode 100644 android/fuse/src/main/res/layout/splash_loader_view.xml delete mode 100644 android/fuse/src/main/res/values-night/styles.xml delete mode 100644 android/fuse/src/main/res/values/attrs_loader_splash.xml create mode 100644 android/fuse/src/main/res/values/strings.xml delete mode 100644 android/fuse/src/main/res/values/styles.xml create mode 100644 js/src/FuseContextFactory.ts create mode 100644 js/src/android/AndroidFuseContext.ts create mode 100644 js/src/ios/IOSFuseContext.ts diff --git a/android/.idea/codeStyles/Project.xml b/android/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..4bec4ea --- /dev/null +++ b/android/.idea/codeStyles/Project.xml @@ -0,0 +1,117 @@ + + + + + + \ No newline at end of file diff --git a/android/.idea/codeStyles/codeStyleConfig.xml b/android/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/android/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/android/.idea/deploymentTargetSelector.xml b/android/.idea/deploymentTargetSelector.xml index 69f9f2e..f6849c2 100644 --- a/android/.idea/deploymentTargetSelector.xml +++ b/android/.idea/deploymentTargetSelector.xml @@ -4,6 +4,14 @@ diff --git a/android/.idea/dictionaries/norman.xml b/android/.idea/dictionaries/norman.xml new file mode 100644 index 0000000..63cdfa6 --- /dev/null +++ b/android/.idea/dictionaries/norman.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/android/.idea/gradle.xml b/android/.idea/gradle.xml index 0c49e0d..13fcb0a 100644 --- a/android/.idea/gradle.xml +++ b/android/.idea/gradle.xml @@ -1,5 +1,6 @@ +