turbo-native-initializer 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +2 -0
- data/exe/turbo-native-initializer +3 -0
- data/lib/turbo-native-initializer.rb +1 -0
- data/lib/turbo_native_initializer/generator.rb +79 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/.gitignore +1 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/build.gradle.kts.tt +44 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/proguard-rules.pro +21 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/debug/AndroidManifest.xml.tt +4 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/AndroidManifest.xml.tt +29 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/assets/json/configuration.json +11 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/base/NavDestination.kt.tt +69 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt +37 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebHomeFragment.kt.tt +15 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebModalFragment.kt.tt +17 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainActivity.kt.tt +18 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainSessionNavHostFragment.kt.tt +37 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/util/Constants.kt.tt +8 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/anim/nav_slide_enter.xml +10 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/anim/nav_slide_exit.xml +7 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/anim/nav_slide_pop_enter.xml +15 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/anim/nav_slide_pop_exit.xml +15 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/anim/overshoot_interpolator.xml +4 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/drawable/ic_close.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/drawable/ic_launcher_foreground.xml +17 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/layout/activity_main.xml.tt +17 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/layout/fragment_web_home.xml +36 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/layout/toolbar_progress.xml +13 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/menu/web.xml +14 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/values/colors.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/values/themes.xml.tt +5 -0
- data/lib/turbo_native_initializer/templates/android_stack/build.gradle.kts +5 -0
- data/lib/turbo_native_initializer/templates/android_stack/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/lib/turbo_native_initializer/templates/android_stack/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/lib/turbo_native_initializer/templates/android_stack/gradle.properties +23 -0
- data/lib/turbo_native_initializer/templates/android_stack/gradlew +185 -0
- data/lib/turbo_native_initializer/templates/android_stack/gradlew.bat +89 -0
- data/lib/turbo_native_initializer/templates/android_stack/local.properties +10 -0
- data/lib/turbo_native_initializer/templates/android_stack/settings.gradle.kts.tt +17 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/.gitignore +1 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/build.gradle.kts.tt +44 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/proguard-rules.pro +21 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/debug/AndroidManifest.xml.tt +4 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/AndroidManifest.xml.tt +29 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/assets/json/configuration.json +11 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/base/NavDestination.kt.tt +69 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt +29 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebHomeFragment.kt.tt +15 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebModalFragment.kt.tt +17 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainActivity.kt.tt +47 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabOneSessionNavHostFragment.kt.tt +37 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabTwoSessionNavHostFragment.kt.tt +37 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/util/Constants.kt.tt +8 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/anim/nav_slide_enter.xml +10 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/anim/nav_slide_exit.xml +7 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/anim/nav_slide_pop_enter.xml +15 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/anim/nav_slide_pop_exit.xml +15 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/anim/overshoot_interpolator.xml +4 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/drawable/ic_close.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/drawable/ic_home.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/drawable/ic_launcher_foreground.xml +17 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/drawable/ic_settings.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/layout/activity_main.xml.tt +34 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/layout/fragment_web_home.xml +36 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/layout/toolbar_progress.xml +13 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/menu/bottom_navigation_menu.xml +12 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/menu/web.xml +14 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/values/colors.xml +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/values/themes.xml.tt +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/build.gradle.kts +5 -0
- data/lib/turbo_native_initializer/templates/android_tabs/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/lib/turbo_native_initializer/templates/android_tabs/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/lib/turbo_native_initializer/templates/android_tabs/gradle.properties +23 -0
- data/lib/turbo_native_initializer/templates/android_tabs/gradlew +185 -0
- data/lib/turbo_native_initializer/templates/android_tabs/gradlew.bat +89 -0
- data/lib/turbo_native_initializer/templates/android_tabs/local.properties +10 -0
- data/lib/turbo_native_initializer/templates/android_tabs/settings.gradle.kts.tt +17 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Configuration/Info.plist +29 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Configuration/path-configuration.json +10 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/ErrorPresenter.swift +74 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/TurboNavigationController.swift +123 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/ViewController.swift +20 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/AppDelegate.swift +8 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/SceneDelegate.swift.tt +139 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Assets.xcassets/AppIcon.appiconset/turbo.png +0 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Assets.xcassets/Contents.json +6 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Assets.xcassets/SplashIcon.imageset/Contents.json +21 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Assets.xcassets/SplashIcon.imageset/turbo.png +0 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Base.lproj/LaunchScreen.storyboard +39 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Resources/Base.lproj/Main.storyboard.tt +32 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/TurboNativeProject.swift.tt +10 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.pbxproj.tt +436 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +14 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Configuration/Info.plist +29 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Configuration/path-configuration.json +10 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/ErrorPresenter.swift +74 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/TurboNavigationController.swift +123 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/ViewController.swift +20 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/AppDelegate.swift +8 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/SceneDelegate.swift.tt +156 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Assets.xcassets/AppIcon.appiconset/turbo.png +0 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Assets.xcassets/Contents.json +6 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Assets.xcassets/SplashIcon.imageset/Contents.json +21 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Assets.xcassets/SplashIcon.imageset/turbo.png +0 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Base.lproj/LaunchScreen.storyboard +39 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Base.lproj/Main.storyboard +69 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/TurboNativeProject.swift.tt +10 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject.xcodeproj/project.pbxproj.tt +436 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +14 -0
- data/lib/turbo_native_initializer/version.rb +3 -0
- data/lib/turbo_native_initializer.rb +5 -0
- metadata +199 -0
data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/drawable/ic_close.xml
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
<vector android:height="24dp" android:tint="#000000"
|
2
|
+
android:viewportHeight="24" android:viewportWidth="24"
|
3
|
+
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
4
|
+
<path android:fillColor="@android:color/white" android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
|
5
|
+
</vector>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
2
|
+
android:width="108dp"
|
3
|
+
android:height="108dp"
|
4
|
+
android:viewportWidth="108"
|
5
|
+
android:viewportHeight="108">
|
6
|
+
<group android:scaleX="0.21352941"
|
7
|
+
android:scaleY="0.21352941"
|
8
|
+
android:translateX="17.7"
|
9
|
+
android:translateY="17.7">
|
10
|
+
<path
|
11
|
+
android:pathData="M197.2,163.5c-1.7,-7.3 -6.3,-13.5 -12.6,-17.4c-4.4,-2.7 -9.4,-4.1 -14.6,-4c-0.7,0 -1.5,0 -2.2,0.1c-1.5,0.1 -2.9,0.4 -4.3,0.7c-5.8,1.3 -11.1,4.5 -14.9,9.1c-0.9,1 -1.8,2.2 -2.5,3.4c-2.7,4.4 -4.1,9.4 -4.1,14.6c0,0.7 0,1.5 0.1,2.2c0.1,1.5 0.3,3 0.7,4.4c1.4,5.8 4.6,11 9.1,14.8c1.1,0.9 2.3,1.8 3.5,2.5c4.4,2.7 9.4,4.1 14.6,4.1c0.7,0 1.5,0 2.2,-0.1c1.5,-0.1 3,-0.3 4.4,-0.7c12.6,-3.1 21.4,-14.3 21.4,-27.2c0,-0.7 0,-1.5 -0.1,-2.2C197.8,166.3 197.5,164.9 197.2,163.5z"
|
12
|
+
android:fillColor="#FFFFFF"/>
|
13
|
+
<path
|
14
|
+
android:pathData="M285.8,170c0,-64 -51.9,-115.8 -115.8,-115.8H0v51.6h73.6c-12.7,19 -19.4,41.3 -19.4,64.2c0,64 51.9,115.8 115.8,115.8h170v-51.6h-73.6C279,215.2 285.8,192.9 285.8,170zM254,172.9c-13.1,-4.7 -23.6,-7.2 -32.3,-8c0.1,1.7 0.2,3.4 0.2,5.1c0,2.7 -0.2,5.3 -0.6,7.9c9.9,8.2 19.1,19 27.8,32.8c3.7,5.8 1.9,13.5 -3.9,17.2s-13.5,1.9 -17.2,-3.9c-4.9,-8 -10.7,-15.3 -17.2,-22c-3.1,3.9 -6.7,7.4 -10.7,10.3c0.2,7.4 -0.4,14.7 -1.8,21.9c-1.9,9.7 -4.5,19.2 -8,28.5c-2.4,6.5 -9.5,9.9 -16,7.5c-1.7,-0.6 -3.2,-1.6 -4.5,-2.9c-3.4,-3.4 -4.6,-8.5 -2.9,-13.1c1.1,-3.1 2,-5.9 2.9,-8.7c1.3,-4.1 2.3,-7.8 3.1,-11.3c0.9,-4.1 1.6,-8.2 2,-12.4c-1.7,0.1 -3.4,0.2 -5.1,0.2c-2.6,0 -5.3,-0.2 -7.9,-0.6c-7.6,9.2 -18.2,18.6 -32.7,27.8c-5.8,3.7 -13.5,1.9 -17.2,-3.9s-1.9,-13.5 3.9,-17.2c8,-4.9 15.3,-10.7 22,-17.2c-3.9,-3 -7.3,-6.7 -10.2,-10.7c-1,0.1 -1.9,0.1 -2.9,0.1c-12.7,0 -28.2,-2.8 -47.5,-9.8c-6.5,-2.4 -9.8,-9.5 -7.5,-16c2.4,-6.5 9.6,-9.8 15.7,-7.6c13.1,4.7 23.6,7.2 32.3,8c-0.1,-1.7 -0.2,-3.4 -0.2,-5.1c0,-2.6 0.2,-5.3 0.6,-7.9c-9.2,-7.6 -18.6,-18.2 -27.8,-32.7c-3.7,-5.9 -1.9,-13.6 3.9,-17.3c5.9,-3.7 13.6,-1.9 17.3,3.9c4.9,8 10.7,15.3 17.2,22c3.1,-3.9 6.7,-7.4 10.7,-10.3c-0.2,-7.4 0.4,-14.7 1.8,-21.9c1.9,-9.7 4.5,-19.2 8,-28.5c2.4,-6.5 9.5,-9.8 16,-7.5c1.7,0.6 3.2,1.6 4.5,2.9c3.4,3.4 4.6,8.5 2.9,13.1c-1.1,3.1 -2,5.9 -2.9,8.7c-1.3,4.1 -2.3,7.8 -3.1,11.3c-0.9,4.1 -1.6,8.2 -2,12.4c1.7,-0.1 3.4,-0.2 5.1,-0.2c2.7,0 5.3,0.2 7.9,0.6c8.2,-9.9 19,-19.1 32.8,-27.8c5.8,-3.7 13.5,-1.9 17.2,3.9c3.7,5.9 1.9,13.6 -3.9,17.3c-8,4.9 -15.3,10.7 -22,17.2c4,3 7.4,6.7 10.3,10.7c13.3,-0.5 29.5,2.1 50.4,9.7c6.4,2.4 9.6,9.4 7.4,15.8C267.6,171.7 260.5,175.2 254,172.9z"
|
15
|
+
android:fillColor="#FFFFFF"/>
|
16
|
+
</group>
|
17
|
+
</vector>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
4
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
5
|
+
xmlns:tools="http://schemas.android.com/tools"
|
6
|
+
android:layout_width="match_parent"
|
7
|
+
android:layout_height="match_parent"
|
8
|
+
tools:context=".main.MainActivity">
|
9
|
+
|
10
|
+
<androidx.fragment.app.FragmentContainerView
|
11
|
+
android:id="@+id/main_nav_host"
|
12
|
+
android:name="<%= package_name %>.main.MainSessionNavHostFragment"
|
13
|
+
android:layout_width="match_parent"
|
14
|
+
android:layout_height="match_parent"
|
15
|
+
app:defaultNavHost="false" />
|
16
|
+
|
17
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
4
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
5
|
+
android:layout_width="match_parent"
|
6
|
+
android:layout_height="match_parent">
|
7
|
+
|
8
|
+
<com.google.android.material.appbar.AppBarLayout
|
9
|
+
android:id="@+id/app_bar"
|
10
|
+
android:layout_width="match_parent"
|
11
|
+
android:layout_height="56dp"
|
12
|
+
app:layout_constraintEnd_toEndOf="parent"
|
13
|
+
app:layout_constraintStart_toStartOf="parent"
|
14
|
+
app:layout_constraintTop_toTopOf="parent">
|
15
|
+
|
16
|
+
<FrameLayout
|
17
|
+
android:layout_width="match_parent"
|
18
|
+
android:layout_height="match_parent">
|
19
|
+
|
20
|
+
<com.google.android.material.appbar.MaterialToolbar
|
21
|
+
android:id="@+id/toolbar"
|
22
|
+
android:layout_width="match_parent"
|
23
|
+
android:layout_height="wrap_content" />
|
24
|
+
|
25
|
+
</FrameLayout>
|
26
|
+
|
27
|
+
</com.google.android.material.appbar.AppBarLayout>
|
28
|
+
|
29
|
+
<include
|
30
|
+
layout="@layout/turbo_view"
|
31
|
+
android:layout_width="match_parent"
|
32
|
+
android:layout_height="0dp"
|
33
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
34
|
+
app:layout_constraintTop_toBottomOf="@+id/app_bar" />
|
35
|
+
|
36
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
+
android:layout_width="wrap_content"
|
4
|
+
android:layout_height="match_parent">
|
5
|
+
|
6
|
+
<ProgressBar
|
7
|
+
android:layout_width="40dp"
|
8
|
+
android:layout_height="24dp"
|
9
|
+
android:layout_gravity="center"
|
10
|
+
android:layout_marginEnd="12dp"
|
11
|
+
android:indeterminateTint="?colorSecondary" />
|
12
|
+
|
13
|
+
</FrameLayout>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
4
|
+
xmlns:tools="http://schemas.android.com/tools">
|
5
|
+
|
6
|
+
<item
|
7
|
+
android:id="@+id/menu_progress"
|
8
|
+
android:title="Loading..."
|
9
|
+
android:visible="false"
|
10
|
+
app:actionLayout="@layout/toolbar_progress"
|
11
|
+
app:showAsAction="always"
|
12
|
+
tools:ignore="AlwaysShowAction" />
|
13
|
+
|
14
|
+
</menu>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Project-wide Gradle settings.
|
2
|
+
# IDE (e.g. Android Studio) users:
|
3
|
+
# Gradle settings configured through the IDE *will override*
|
4
|
+
# any settings specified in this file.
|
5
|
+
# For more details on how to configure your build environment visit
|
6
|
+
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
7
|
+
# Specifies the JVM arguments used for the daemon process.
|
8
|
+
# The setting is particularly useful for tweaking memory settings.
|
9
|
+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
10
|
+
# When configured, Gradle will run in incubating parallel mode.
|
11
|
+
# This option should only be used with decoupled projects. More details, visit
|
12
|
+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
13
|
+
# org.gradle.parallel=true
|
14
|
+
# AndroidX package structure to make it clearer which packages are bundled with the
|
15
|
+
# Android operating system, and which are packaged with your app's APK
|
16
|
+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
17
|
+
android.useAndroidX=true
|
18
|
+
# Kotlin code style for this project: "official" or "obsolete":
|
19
|
+
kotlin.code.style=official
|
20
|
+
# Enables namespacing of each library's R class so that its R class includes only the
|
21
|
+
# resources declared in the library itself and none from the library's dependencies,
|
22
|
+
# thereby reducing the size of the R class for that library
|
23
|
+
android.nonTransitiveRClass=true
|
@@ -0,0 +1,185 @@
|
|
1
|
+
#!/usr/bin/env sh
|
2
|
+
|
3
|
+
#
|
4
|
+
# Copyright 2015 the original author or authors.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
##############################################################################
|
20
|
+
##
|
21
|
+
## Gradle start up script for UN*X
|
22
|
+
##
|
23
|
+
##############################################################################
|
24
|
+
|
25
|
+
# Attempt to set APP_HOME
|
26
|
+
# Resolve links: $0 may be a link
|
27
|
+
PRG="$0"
|
28
|
+
# Need this for relative symlinks.
|
29
|
+
while [ -h "$PRG" ] ; do
|
30
|
+
ls=`ls -ld "$PRG"`
|
31
|
+
link=`expr "$ls" : '.*-> \(.*\)$'`
|
32
|
+
if expr "$link" : '/.*' > /dev/null; then
|
33
|
+
PRG="$link"
|
34
|
+
else
|
35
|
+
PRG=`dirname "$PRG"`"/$link"
|
36
|
+
fi
|
37
|
+
done
|
38
|
+
SAVED="`pwd`"
|
39
|
+
cd "`dirname \"$PRG\"`/" >/dev/null
|
40
|
+
APP_HOME="`pwd -P`"
|
41
|
+
cd "$SAVED" >/dev/null
|
42
|
+
|
43
|
+
APP_NAME="Gradle"
|
44
|
+
APP_BASE_NAME=`basename "$0"`
|
45
|
+
|
46
|
+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
47
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
48
|
+
|
49
|
+
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
50
|
+
MAX_FD="maximum"
|
51
|
+
|
52
|
+
warn () {
|
53
|
+
echo "$*"
|
54
|
+
}
|
55
|
+
|
56
|
+
die () {
|
57
|
+
echo
|
58
|
+
echo "$*"
|
59
|
+
echo
|
60
|
+
exit 1
|
61
|
+
}
|
62
|
+
|
63
|
+
# OS specific support (must be 'true' or 'false').
|
64
|
+
cygwin=false
|
65
|
+
msys=false
|
66
|
+
darwin=false
|
67
|
+
nonstop=false
|
68
|
+
case "`uname`" in
|
69
|
+
CYGWIN* )
|
70
|
+
cygwin=true
|
71
|
+
;;
|
72
|
+
Darwin* )
|
73
|
+
darwin=true
|
74
|
+
;;
|
75
|
+
MINGW* )
|
76
|
+
msys=true
|
77
|
+
;;
|
78
|
+
NONSTOP* )
|
79
|
+
nonstop=true
|
80
|
+
;;
|
81
|
+
esac
|
82
|
+
|
83
|
+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
84
|
+
|
85
|
+
|
86
|
+
# Determine the Java command to use to start the JVM.
|
87
|
+
if [ -n "$JAVA_HOME" ] ; then
|
88
|
+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
89
|
+
# IBM's JDK on AIX uses strange locations for the executables
|
90
|
+
JAVACMD="$JAVA_HOME/jre/sh/java"
|
91
|
+
else
|
92
|
+
JAVACMD="$JAVA_HOME/bin/java"
|
93
|
+
fi
|
94
|
+
if [ ! -x "$JAVACMD" ] ; then
|
95
|
+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
96
|
+
|
97
|
+
Please set the JAVA_HOME variable in your environment to match the
|
98
|
+
location of your Java installation."
|
99
|
+
fi
|
100
|
+
else
|
101
|
+
JAVACMD="java"
|
102
|
+
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
103
|
+
|
104
|
+
Please set the JAVA_HOME variable in your environment to match the
|
105
|
+
location of your Java installation."
|
106
|
+
fi
|
107
|
+
|
108
|
+
# Increase the maximum file descriptors if we can.
|
109
|
+
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
110
|
+
MAX_FD_LIMIT=`ulimit -H -n`
|
111
|
+
if [ $? -eq 0 ] ; then
|
112
|
+
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
113
|
+
MAX_FD="$MAX_FD_LIMIT"
|
114
|
+
fi
|
115
|
+
ulimit -n $MAX_FD
|
116
|
+
if [ $? -ne 0 ] ; then
|
117
|
+
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
118
|
+
fi
|
119
|
+
else
|
120
|
+
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
121
|
+
fi
|
122
|
+
fi
|
123
|
+
|
124
|
+
# For Darwin, add options to specify how the application appears in the dock
|
125
|
+
if $darwin; then
|
126
|
+
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
127
|
+
fi
|
128
|
+
|
129
|
+
# For Cygwin or MSYS, switch paths to Windows format before running java
|
130
|
+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
131
|
+
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
132
|
+
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
133
|
+
|
134
|
+
JAVACMD=`cygpath --unix "$JAVACMD"`
|
135
|
+
|
136
|
+
# We build the pattern for arguments to be converted via cygpath
|
137
|
+
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
138
|
+
SEP=""
|
139
|
+
for dir in $ROOTDIRSRAW ; do
|
140
|
+
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
141
|
+
SEP="|"
|
142
|
+
done
|
143
|
+
OURCYGPATTERN="(^($ROOTDIRS))"
|
144
|
+
# Add a user-defined pattern to the cygpath arguments
|
145
|
+
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
146
|
+
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
147
|
+
fi
|
148
|
+
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
149
|
+
i=0
|
150
|
+
for arg in "$@" ; do
|
151
|
+
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
152
|
+
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
153
|
+
|
154
|
+
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
155
|
+
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
156
|
+
else
|
157
|
+
eval `echo args$i`="\"$arg\""
|
158
|
+
fi
|
159
|
+
i=`expr $i + 1`
|
160
|
+
done
|
161
|
+
case $i in
|
162
|
+
0) set -- ;;
|
163
|
+
1) set -- "$args0" ;;
|
164
|
+
2) set -- "$args0" "$args1" ;;
|
165
|
+
3) set -- "$args0" "$args1" "$args2" ;;
|
166
|
+
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
167
|
+
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
168
|
+
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
169
|
+
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
170
|
+
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
171
|
+
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
172
|
+
esac
|
173
|
+
fi
|
174
|
+
|
175
|
+
# Escape application args
|
176
|
+
save () {
|
177
|
+
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
178
|
+
echo " "
|
179
|
+
}
|
180
|
+
APP_ARGS=`save "$@"`
|
181
|
+
|
182
|
+
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
183
|
+
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
184
|
+
|
185
|
+
exec "$JAVACMD" "$@"
|
@@ -0,0 +1,89 @@
|
|
1
|
+
@rem
|
2
|
+
@rem Copyright 2015 the original author or authors.
|
3
|
+
@rem
|
4
|
+
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
@rem you may not use this file except in compliance with the License.
|
6
|
+
@rem You may obtain a copy of the License at
|
7
|
+
@rem
|
8
|
+
@rem https://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
@rem
|
10
|
+
@rem Unless required by applicable law or agreed to in writing, software
|
11
|
+
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
@rem See the License for the specific language governing permissions and
|
14
|
+
@rem limitations under the License.
|
15
|
+
@rem
|
16
|
+
|
17
|
+
@if "%DEBUG%" == "" @echo off
|
18
|
+
@rem ##########################################################################
|
19
|
+
@rem
|
20
|
+
@rem Gradle startup script for Windows
|
21
|
+
@rem
|
22
|
+
@rem ##########################################################################
|
23
|
+
|
24
|
+
@rem Set local scope for the variables with windows NT shell
|
25
|
+
if "%OS%"=="Windows_NT" setlocal
|
26
|
+
|
27
|
+
set DIRNAME=%~dp0
|
28
|
+
if "%DIRNAME%" == "" set DIRNAME=.
|
29
|
+
set APP_BASE_NAME=%~n0
|
30
|
+
set APP_HOME=%DIRNAME%
|
31
|
+
|
32
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
33
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
34
|
+
|
35
|
+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
36
|
+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
37
|
+
|
38
|
+
@rem Find java.exe
|
39
|
+
if defined JAVA_HOME goto findJavaFromJavaHome
|
40
|
+
|
41
|
+
set JAVA_EXE=java.exe
|
42
|
+
%JAVA_EXE% -version >NUL 2>&1
|
43
|
+
if "%ERRORLEVEL%" == "0" goto execute
|
44
|
+
|
45
|
+
echo.
|
46
|
+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
47
|
+
echo.
|
48
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
49
|
+
echo location of your Java installation.
|
50
|
+
|
51
|
+
goto fail
|
52
|
+
|
53
|
+
:findJavaFromJavaHome
|
54
|
+
set JAVA_HOME=%JAVA_HOME:"=%
|
55
|
+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
56
|
+
|
57
|
+
if exist "%JAVA_EXE%" goto execute
|
58
|
+
|
59
|
+
echo.
|
60
|
+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
61
|
+
echo.
|
62
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
63
|
+
echo location of your Java installation.
|
64
|
+
|
65
|
+
goto fail
|
66
|
+
|
67
|
+
:execute
|
68
|
+
@rem Setup the command line
|
69
|
+
|
70
|
+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
71
|
+
|
72
|
+
|
73
|
+
@rem Execute Gradle
|
74
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
75
|
+
|
76
|
+
:end
|
77
|
+
@rem End local scope for the variables with windows NT shell
|
78
|
+
if "%ERRORLEVEL%"=="0" goto mainEnd
|
79
|
+
|
80
|
+
:fail
|
81
|
+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
82
|
+
rem the _cmd.exe /c_ return code!
|
83
|
+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
84
|
+
exit /b 1
|
85
|
+
|
86
|
+
:mainEnd
|
87
|
+
if "%OS%"=="Windows_NT" endlocal
|
88
|
+
|
89
|
+
:omega
|
@@ -0,0 +1,10 @@
|
|
1
|
+
## This file is automatically generated by Android Studio.
|
2
|
+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
3
|
+
#
|
4
|
+
# This file should *NOT* be checked into Version Control Systems,
|
5
|
+
# as it contains information specific to your local configuration.
|
6
|
+
#
|
7
|
+
# Location of the SDK. This is only used by Gradle.
|
8
|
+
# For customization when using a Version Control System, please read the
|
9
|
+
# header note.
|
10
|
+
sdk.dir=/Users/lazaro.amaral/Library/Android/sdk
|
@@ -0,0 +1,17 @@
|
|
1
|
+
pluginManagement {
|
2
|
+
repositories {
|
3
|
+
google()
|
4
|
+
mavenCentral()
|
5
|
+
gradlePluginPortal()
|
6
|
+
}
|
7
|
+
}
|
8
|
+
dependencyResolutionManagement {
|
9
|
+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
10
|
+
repositories {
|
11
|
+
google()
|
12
|
+
mavenCentral()
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
rootProject.name = "<%= name %>"
|
17
|
+
include(":app")
|
@@ -0,0 +1 @@
|
|
1
|
+
/build
|
@@ -0,0 +1,44 @@
|
|
1
|
+
plugins {
|
2
|
+
id("com.android.application")
|
3
|
+
id("org.jetbrains.kotlin.android")
|
4
|
+
}
|
5
|
+
|
6
|
+
android {
|
7
|
+
namespace = "<%= package_name %>"
|
8
|
+
compileSdk = 33
|
9
|
+
|
10
|
+
defaultConfig {
|
11
|
+
applicationId = "<%= package_name %>"
|
12
|
+
minSdk = 24
|
13
|
+
targetSdk = 33
|
14
|
+
versionCode = 1
|
15
|
+
versionName = "1.0"
|
16
|
+
|
17
|
+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
18
|
+
}
|
19
|
+
|
20
|
+
buildTypes {
|
21
|
+
release {
|
22
|
+
isMinifyEnabled = false
|
23
|
+
proguardFiles(
|
24
|
+
getDefaultProguardFile("proguard-android-optimize.txt"),
|
25
|
+
"proguard-rules.pro"
|
26
|
+
)
|
27
|
+
}
|
28
|
+
}
|
29
|
+
compileOptions {
|
30
|
+
sourceCompatibility = JavaVersion.VERSION_1_8
|
31
|
+
targetCompatibility = JavaVersion.VERSION_1_8
|
32
|
+
}
|
33
|
+
kotlinOptions {
|
34
|
+
jvmTarget = "1.8"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
dependencies {
|
39
|
+
implementation("androidx.core:core-ktx:1.9.0")
|
40
|
+
implementation("androidx.appcompat:appcompat:1.6.1")
|
41
|
+
implementation("androidx.browser:browser:1.5.0")
|
42
|
+
implementation("com.google.android.material:material:1.9.0")
|
43
|
+
implementation("dev.hotwire:turbo:7.0.0")
|
44
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Add project specific ProGuard rules here.
|
2
|
+
# You can control the set of applied configuration files using the
|
3
|
+
# proguardFiles setting in build.gradle.
|
4
|
+
#
|
5
|
+
# For more details, see
|
6
|
+
# http://developer.android.com/guide/developing/tools/proguard.html
|
7
|
+
|
8
|
+
# If your project uses WebView with JS, uncomment the following
|
9
|
+
# and specify the fully qualified class name to the JavaScript interface
|
10
|
+
# class:
|
11
|
+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
12
|
+
# public *;
|
13
|
+
#}
|
14
|
+
|
15
|
+
# Uncomment this to preserve the line number information for
|
16
|
+
# debugging stack traces.
|
17
|
+
#-keepattributes SourceFile,LineNumberTable
|
18
|
+
|
19
|
+
# If you keep the line number information, uncomment this to
|
20
|
+
# hide the original source file name.
|
21
|
+
#-renamesourcefileattribute SourceFile
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
+
xmlns:tools="http://schemas.android.com/tools">
|
4
|
+
|
5
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
6
|
+
|
7
|
+
<application
|
8
|
+
android:allowBackup="false"
|
9
|
+
android:enableOnBackInvokedCallback="true"
|
10
|
+
android:icon="@mipmap/ic_launcher"
|
11
|
+
android:label="<%= name %>"
|
12
|
+
android:roundIcon="@mipmap/ic_launcher_round"
|
13
|
+
android:supportsRtl="true"
|
14
|
+
android:theme="@style/Theme.<%= name %>"
|
15
|
+
tools:targetApi="31">
|
16
|
+
<activity
|
17
|
+
android:name="<%= package_name %>.main.MainActivity"
|
18
|
+
android:launchMode="singleInstance"
|
19
|
+
android:theme="@style/Theme.<%= name %>"
|
20
|
+
android:windowSoftInputMode="adjustResize"
|
21
|
+
android:exported="true">
|
22
|
+
<intent-filter>
|
23
|
+
<action android:name="android.intent.action.MAIN"/>
|
24
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
25
|
+
</intent-filter>
|
26
|
+
</activity>
|
27
|
+
</application>
|
28
|
+
|
29
|
+
</manifest>
|
data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/assets/json/configuration.json
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"settings": {},
|
3
|
+
"rules": [
|
4
|
+
{ "patterns": [".*"], "properties": { "uri": "turbo://fragment/web", "pull_to_refresh_enabled": true } },
|
5
|
+
{ "patterns": ["/refresh_historical_location"], "properties": { "presentation": "refresh" } },
|
6
|
+
{ "patterns": ["/recede_historical_location"], "properties": { "presentation": "pop" } },
|
7
|
+
{ "patterns": ["/resume_historical_location"], "properties": { "presentation": "none" } },
|
8
|
+
{ "patterns": ["^/$"], "properties": { "uri": "turbo://fragment/web/home", "presentation": "replace_all" } },
|
9
|
+
{ "patterns": ["/new$", "/edit$"], "properties": { "context": "modal", "uri": "turbo://fragment/web/modal" } }
|
10
|
+
]
|
11
|
+
}
|