turbo-native-initializer 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/README.md +23 -2
- data/lib/turbo_native_initializer/generator.rb +11 -39
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/base/NavDestination.kt.tt +0 -4
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NativeFragment.kt.tt +25 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NumbersFragment.kt.tt +40 -0
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt +0 -19
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainSessionNavHostFragment.kt.tt +2 -1
- data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/build.gradle.kts.tt +16 -3
- data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/assets/json/configuration.json +2 -1
- data/lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/fragment_native.xml +36 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/base/NavDestination.kt.tt +0 -4
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NativeFragment.kt.tt +25 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NumbersFragment.kt.tt +40 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt +1 -22
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/BaseSessionNavHostFragment.kt.tt +32 -0
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainActivity.kt.tt +8 -5
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabOneSessionNavHostFragment.kt.tt +2 -30
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabTwoSessionNavHostFragment.kt.tt +2 -30
- data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/build.gradle.kts.tt +16 -3
- data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/assets/json/configuration.json +2 -1
- data/lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/fragment_native.xml +36 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Configuration/path-configuration.json +2 -1
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/NumbersViewController.swift +31 -0
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/TurboNavigationController.swift +1 -1
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/AppDelegate.swift +1 -5
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/SceneDelegate.swift.tt +1 -1
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.pbxproj.tt +4 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Configuration/path-configuration.json +2 -1
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/NumbersViewController.swift +31 -0
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/TurboNavigationController.swift +2 -2
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/AppDelegate.swift +1 -5
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/SceneDelegate.swift.tt +10 -9
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Resources/Base.lproj/Main.storyboard +2 -2
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject.xcodeproj/project.pbxproj.tt +4 -0
- data/lib/turbo_native_initializer/version.rb +1 -1
- metadata +80 -75
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/layout/toolbar_progress.xml +0 -13
- data/lib/turbo_native_initializer/templates/android_stack/app/src/main/res/menu/web.xml +0 -14
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/layout/toolbar_progress.xml +0 -13
- data/lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/menu/web.xml +0 -14
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/.gitignore +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/proguard-rules.pro +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/debug/AndroidManifest.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/AndroidManifest.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/anim/nav_slide_enter.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/anim/nav_slide_exit.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/anim/nav_slide_pop_enter.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/anim/nav_slide_pop_exit.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/anim/overshoot_interpolator.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/drawable/ic_close.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/drawable/ic_launcher_foreground.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/layout/activity_main.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/layout/fragment_web_home.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/values/colors.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/src/main/res/values/themes.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{build.gradle.kts → base/build.gradle.kts} +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{gradle → base/gradle}/wrapper/gradle-wrapper.jar +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{gradle → base/gradle}/wrapper/gradle-wrapper.properties +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{gradle.properties → base/gradle.properties} +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{gradlew → base/gradlew} +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{gradlew.bat → base/gradlew.bat} +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{local.properties → base/local.properties} +0 -0
- /data/lib/turbo_native_initializer/templates/android_stack/{settings.gradle.kts.tt → base/settings.gradle.kts.tt} +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/.gitignore +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/proguard-rules.pro +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/debug/AndroidManifest.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/AndroidManifest.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/anim/nav_slide_enter.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/anim/nav_slide_exit.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/anim/nav_slide_pop_enter.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/anim/nav_slide_pop_exit.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/anim/overshoot_interpolator.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/drawable/ic_close.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/drawable/ic_home.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/drawable/ic_launcher_foreground.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/drawable/ic_settings.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/layout/activity_main.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/layout/fragment_web_home.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/menu/bottom_navigation_menu.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/values/colors.xml +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/src/main/res/values/themes.xml.tt +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{build.gradle.kts → base/build.gradle.kts} +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{gradle → base/gradle}/wrapper/gradle-wrapper.jar +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{gradle → base/gradle}/wrapper/gradle-wrapper.properties +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{gradle.properties → base/gradle.properties} +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{gradlew → base/gradlew} +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{gradlew.bat → base/gradlew.bat} +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{local.properties → base/local.properties} +0 -0
- /data/lib/turbo_native_initializer/templates/android_tabs/{settings.gradle.kts.tt → base/settings.gradle.kts.tt} +0 -0
data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/build.gradle.kts.tt
RENAMED
@@ -13,8 +13,6 @@ android {
|
|
13
13
|
targetSdk = 33
|
14
14
|
versionCode = 1
|
15
15
|
versionName = "1.0"
|
16
|
-
|
17
|
-
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
18
16
|
}
|
19
17
|
|
20
18
|
buildTypes {
|
@@ -33,12 +31,27 @@ android {
|
|
33
31
|
kotlinOptions {
|
34
32
|
jvmTarget = "1.8"
|
35
33
|
}
|
34
|
+
buildFeatures {
|
35
|
+
compose = true
|
36
|
+
}
|
37
|
+
composeOptions {
|
38
|
+
kotlinCompilerExtensionVersion = "1.5.2"
|
39
|
+
}
|
36
40
|
}
|
37
|
-
|
38
41
|
dependencies {
|
42
|
+
// Android
|
39
43
|
implementation("androidx.core:core-ktx:1.9.0")
|
40
44
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
41
45
|
implementation("androidx.browser:browser:1.5.0")
|
42
46
|
implementation("com.google.android.material:material:1.9.0")
|
47
|
+
|
48
|
+
// Jetpack Compose
|
49
|
+
implementation(platform("androidx.compose:compose-bom:2023.06.01"))
|
50
|
+
implementation("androidx.compose.material3:material3")
|
51
|
+
implementation("androidx.compose.ui:ui-tooling-preview")
|
52
|
+
debugImplementation("androidx.compose.ui:ui-tooling")
|
53
|
+
implementation("androidx.activity:activity-compose:1.7.2")
|
54
|
+
|
55
|
+
// Turbo Android
|
43
56
|
implementation("dev.hotwire:turbo:7.0.0")
|
44
57
|
}
|
@@ -6,6 +6,7 @@
|
|
6
6
|
{ "patterns": ["/recede_historical_location"], "properties": { "presentation": "pop" } },
|
7
7
|
{ "patterns": ["/resume_historical_location"], "properties": { "presentation": "none" } },
|
8
8
|
{ "patterns": ["^/$"], "properties": { "uri": "turbo://fragment/web/home", "presentation": "replace_all" } },
|
9
|
-
{ "patterns": ["/new$", "/edit$"], "properties": { "context": "modal", "uri": "turbo://fragment/web/modal" } }
|
9
|
+
{ "patterns": ["/new$", "/edit$"], "properties": { "context": "modal", "uri": "turbo://fragment/web/modal" } },
|
10
|
+
{ "patterns": ["/numbers$"], "properties": { "uri": "turbo://fragment/numbers", "title": "Numbers" } }
|
10
11
|
]
|
11
12
|
}
|
@@ -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
|
+
<androidx.compose.ui.platform.ComposeView
|
30
|
+
android:id="@+id/compose_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>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
{ "patterns": ["/recede_historical_location"], "properties": { "presentation": "pop", "visitable": false } },
|
6
6
|
{ "patterns": ["/resume_historical_location"], "properties": { "presentation": "none", "visitable": false } },
|
7
7
|
{ "patterns": ["^/$"], "properties": { "presentation": "replace-all" } },
|
8
|
-
{ "patterns": ["/new$", "/edit$", "/signin$"], "properties": { "presentation": "modal" } }
|
8
|
+
{ "patterns": ["/new$", "/edit$", "/signin$"], "properties": { "presentation": "modal" } },
|
9
|
+
{ "patterns": ["/numbers$"], "properties": { "view-controller": "numbers" } }
|
9
10
|
]
|
10
11
|
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import SwiftUI
|
2
|
+
|
3
|
+
class NumbersViewController: UIHostingController<NumbersView> {
|
4
|
+
init() {
|
5
|
+
super.init(rootView: NumbersView())
|
6
|
+
}
|
7
|
+
|
8
|
+
required init(coder aDecoder: NSCoder) {
|
9
|
+
fatalError("init(coder:) has not been implemented")
|
10
|
+
}
|
11
|
+
|
12
|
+
override func viewDidLoad() {
|
13
|
+
super.viewDidLoad(); title = "Numbers"
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
struct NumbersView: View {
|
18
|
+
private let numbers = 1 ... 100
|
19
|
+
|
20
|
+
var body: some View {
|
21
|
+
List(numbers, id: \.self) { number in
|
22
|
+
Text("Row \(number)")
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
struct NumbersView_Preview: PreviewProvider {
|
28
|
+
static var previews: some View {
|
29
|
+
NumbersView()
|
30
|
+
}
|
31
|
+
}
|
@@ -75,7 +75,7 @@ extension TurboNavigationController {
|
|
75
75
|
if let viewController = properties["view-controller"] as? String {
|
76
76
|
switch viewController {
|
77
77
|
case "numbers":
|
78
|
-
|
78
|
+
return NumbersViewController()
|
79
79
|
default:
|
80
80
|
assertionFailure("Invalid view controller, defaulting to WebView")
|
81
81
|
}
|
data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/AppDelegate.swift
CHANGED
@@ -1,8 +1,4 @@
|
|
1
1
|
import UIKit
|
2
2
|
|
3
3
|
@main
|
4
|
-
class AppDelegate: UIResponder, UIApplicationDelegate {
|
5
|
-
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
|
6
|
-
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
|
7
|
-
}
|
8
|
-
}
|
4
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {}
|
@@ -17,7 +17,7 @@ final class SceneDelegate: UIResponder {
|
|
17
17
|
|
18
18
|
window.tintColor = UIColor(named: "Tint")
|
19
19
|
|
20
|
-
navigationController =
|
20
|
+
navigationController = window.rootViewController as? TurboNavigationController
|
21
21
|
navigationController.session = session
|
22
22
|
navigationController.modalSession = modalSession
|
23
23
|
}
|
@@ -18,6 +18,7 @@
|
|
18
18
|
5DCC50EE2A95A27600B529A0 /* ErrorPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC50ED2A95A27600B529A0 /* ErrorPresenter.swift */; };
|
19
19
|
5DCC50F12A95A66700B529A0 /* Turbo in Frameworks */ = {isa = PBXBuildFile; productRef = 5DCC50F02A95A66700B529A0 /* Turbo */; };
|
20
20
|
5DCC50F32A95A7E600B529A0 /* <%= name %>.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC50F22A95A7E600B529A0 /* <%= name %>.swift */; };
|
21
|
+
5DDD58812AA9A8BE00FAC961 /* NumbersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DDD58802AA9A8BE00FAC961 /* NumbersViewController.swift */; };
|
21
22
|
/* End PBXBuildFile section */
|
22
23
|
|
23
24
|
/* Begin PBXFileReference section */
|
@@ -33,6 +34,7 @@
|
|
33
34
|
5DCC50E92A95A19600B529A0 /* path-configuration.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = "path-configuration.json"; sourceTree = "<group>"; };
|
34
35
|
5DCC50ED2A95A27600B529A0 /* ErrorPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorPresenter.swift; sourceTree = "<group>"; };
|
35
36
|
5DCC50F22A95A7E600B529A0 /* <%= name %>.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = <%= name %>.swift; sourceTree = "<group>"; };
|
37
|
+
5DDD58802AA9A8BE00FAC961 /* NumbersViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NumbersViewController.swift; sourceTree = "<group>"; };
|
36
38
|
/* End PBXFileReference section */
|
37
39
|
|
38
40
|
/* Begin PBXFrameworksBuildPhase section */
|
@@ -90,6 +92,7 @@
|
|
90
92
|
5DCC50ED2A95A27600B529A0 /* ErrorPresenter.swift */,
|
91
93
|
5DCC50E72A95A0D900B529A0 /* TurboNavigationController.swift */,
|
92
94
|
5DCC50D72A959DF900B529A0 /* ViewController.swift */,
|
95
|
+
5DDD58802AA9A8BE00FAC961 /* NumbersViewController.swift */,
|
93
96
|
);
|
94
97
|
path = Controllers;
|
95
98
|
sourceTree = "<group>";
|
@@ -192,6 +195,7 @@
|
|
192
195
|
buildActionMask = 2147483647;
|
193
196
|
files = (
|
194
197
|
5DCC50D82A959DF900B529A0 /* ViewController.swift in Sources */,
|
198
|
+
5DDD58812AA9A8BE00FAC961 /* NumbersViewController.swift in Sources */,
|
195
199
|
5DCC50D42A959DF900B529A0 /* AppDelegate.swift in Sources */,
|
196
200
|
5DCC50E82A95A0D900B529A0 /* TurboNavigationController.swift in Sources */,
|
197
201
|
5DCC50D62A959DF900B529A0 /* SceneDelegate.swift in Sources */,
|
@@ -5,6 +5,7 @@
|
|
5
5
|
{ "patterns": ["/recede_historical_location"], "properties": { "presentation": "pop", "visitable": false } },
|
6
6
|
{ "patterns": ["/resume_historical_location"], "properties": { "presentation": "none", "visitable": false } },
|
7
7
|
{ "patterns": ["^/$"], "properties": { "presentation": "replace-all" } },
|
8
|
-
{ "patterns": ["/new$", "/edit$"], "properties": { "presentation": "modal" } }
|
8
|
+
{ "patterns": ["/new$", "/edit$"], "properties": { "presentation": "modal" } },
|
9
|
+
{ "patterns": ["/numbers$"], "properties": { "view-controller": "numbers" } }
|
9
10
|
]
|
10
11
|
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import SwiftUI
|
2
|
+
|
3
|
+
class NumbersViewController: UIHostingController<NumbersView> {
|
4
|
+
init() {
|
5
|
+
super.init(rootView: NumbersView())
|
6
|
+
}
|
7
|
+
|
8
|
+
required init(coder aDecoder: NSCoder) {
|
9
|
+
fatalError("init(coder:) has not been implemented")
|
10
|
+
}
|
11
|
+
|
12
|
+
override func viewDidLoad() {
|
13
|
+
super.viewDidLoad(); title = "Numbers"
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
struct NumbersView: View {
|
18
|
+
private let numbers = 1 ... 100
|
19
|
+
|
20
|
+
var body: some View {
|
21
|
+
List(numbers, id: \.self) { number in
|
22
|
+
Text("Row \(number)")
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
struct NumbersView_Preview: PreviewProvider {
|
28
|
+
static var previews: some View {
|
29
|
+
NumbersView()
|
30
|
+
}
|
31
|
+
}
|
@@ -75,7 +75,7 @@ extension TurboNavigationController {
|
|
75
75
|
if let viewController = properties["view-controller"] as? String {
|
76
76
|
switch viewController {
|
77
77
|
case "numbers":
|
78
|
-
|
78
|
+
return NumbersViewController()
|
79
79
|
default:
|
80
80
|
assertionFailure("Invalid view controller, defaulting to WebView")
|
81
81
|
}
|
@@ -87,7 +87,7 @@ extension TurboNavigationController {
|
|
87
87
|
private func navigate(to viewController: UIViewController, action: VisitAction, properties: PathProperties = [:], animated: Bool = true) {
|
88
88
|
let modalNavController = UINavigationController(rootViewController: viewController)
|
89
89
|
modalNavController.modalPresentationStyle = .fullScreen
|
90
|
-
|
90
|
+
|
91
91
|
if isModal(properties) {
|
92
92
|
present(modalNavController, animated: animated)
|
93
93
|
} else if isClearAll(properties) {
|
data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/AppDelegate.swift
CHANGED
@@ -1,8 +1,4 @@
|
|
1
1
|
import UIKit
|
2
2
|
|
3
3
|
@main
|
4
|
-
class AppDelegate: UIResponder, UIApplicationDelegate {
|
5
|
-
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
|
6
|
-
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
|
7
|
-
}
|
8
|
-
}
|
4
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {}
|
@@ -22,6 +22,10 @@ final class SceneDelegate: UIResponder {
|
|
22
22
|
tabBarController.viewControllers![1] as! TurboNavigationController
|
23
23
|
}()
|
24
24
|
|
25
|
+
private func navigationController() -> TurboNavigationController {
|
26
|
+
tabBarController.selectedViewController as! TurboNavigationController
|
27
|
+
}
|
28
|
+
|
25
29
|
// MARK: - Setup
|
26
30
|
|
27
31
|
private func configureRootViewController() {
|
@@ -29,7 +33,7 @@ final class SceneDelegate: UIResponder {
|
|
29
33
|
|
30
34
|
window.tintColor = UIColor(named: "Tint")
|
31
35
|
|
32
|
-
tabBarController =
|
36
|
+
tabBarController = window.rootViewController as? UITabBarController
|
33
37
|
|
34
38
|
navigationController1.session = session1
|
35
39
|
navigationController1.modalSession = modalSession
|
@@ -38,18 +42,11 @@ final class SceneDelegate: UIResponder {
|
|
38
42
|
navigationController2.modalSession = modalSession
|
39
43
|
}
|
40
44
|
|
41
|
-
private func navigationController() -> TurboNavigationController {
|
42
|
-
tabBarController.selectedViewController as! TurboNavigationController
|
43
|
-
}
|
44
|
-
|
45
|
-
private func session() -> Session {
|
46
|
-
navigationController().session
|
47
|
-
}
|
48
|
-
|
49
45
|
// MARK: - Sessions
|
50
46
|
|
51
47
|
private lazy var session1 = makeSession()
|
52
48
|
private lazy var session2 = makeSession()
|
49
|
+
|
53
50
|
private lazy var modalSession = makeSession()
|
54
51
|
|
55
52
|
private func makeSession() -> Session {
|
@@ -66,6 +63,10 @@ final class SceneDelegate: UIResponder {
|
|
66
63
|
return session
|
67
64
|
}
|
68
65
|
|
66
|
+
private func session() -> Session {
|
67
|
+
navigationController().session
|
68
|
+
}
|
69
|
+
|
69
70
|
// MARK: - Path Configuration
|
70
71
|
|
71
72
|
private lazy var pathConfiguration = PathConfiguration(sources: [
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<viewLayoutGuide key="safeArea" id="CoL-dA-Hxa"/>
|
19
19
|
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
20
20
|
</view>
|
21
|
-
<tabBarItem key="tabBarItem" title="
|
21
|
+
<tabBarItem key="tabBarItem" title="" image="gear" catalog="system" id="rhZ-zi-yeq"/>
|
22
22
|
</viewController>
|
23
23
|
<placeholder placeholderIdentifier="IBFirstResponder" id="ife-PY-okT" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
24
24
|
</objects>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
<viewLayoutGuide key="safeArea" id="K5f-nY-Cgh"/>
|
35
35
|
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
36
36
|
</view>
|
37
|
-
<tabBarItem key="tabBarItem" title="
|
37
|
+
<tabBarItem key="tabBarItem" title="" image="house" catalog="system" id="ZWo-HO-m4a"/>
|
38
38
|
</viewController>
|
39
39
|
<placeholder placeholderIdentifier="IBFirstResponder" id="GRr-XE-fAM" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
40
40
|
</objects>
|
data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject.xcodeproj/project.pbxproj.tt
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
5DCC50EE2A95A27600B529A0 /* ErrorPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC50ED2A95A27600B529A0 /* ErrorPresenter.swift */; };
|
19
19
|
5DCC50F12A95A66700B529A0 /* Turbo in Frameworks */ = {isa = PBXBuildFile; productRef = 5DCC50F02A95A66700B529A0 /* Turbo */; };
|
20
20
|
5DCC50F32A95A7E600B529A0 /* <%= name %>.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC50F22A95A7E600B529A0 /* <%= name %>.swift */; };
|
21
|
+
5DDD58812AA9A8BE00FAC961 /* NumbersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DDD58802AA9A8BE00FAC961 /* NumbersViewController.swift */; };
|
21
22
|
/* End PBXBuildFile section */
|
22
23
|
|
23
24
|
/* Begin PBXFileReference section */
|
@@ -33,6 +34,7 @@
|
|
33
34
|
5DCC50E92A95A19600B529A0 /* path-configuration.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = "path-configuration.json"; sourceTree = "<group>"; };
|
34
35
|
5DCC50ED2A95A27600B529A0 /* ErrorPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorPresenter.swift; sourceTree = "<group>"; };
|
35
36
|
5DCC50F22A95A7E600B529A0 /* <%= name %>.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = <%= name %>.swift; sourceTree = "<group>"; };
|
37
|
+
5DDD58802AA9A8BE00FAC961 /* NumbersViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NumbersViewController.swift; sourceTree = "<group>"; };
|
36
38
|
/* End PBXFileReference section */
|
37
39
|
|
38
40
|
/* Begin PBXFrameworksBuildPhase section */
|
@@ -90,6 +92,7 @@
|
|
90
92
|
5DCC50ED2A95A27600B529A0 /* ErrorPresenter.swift */,
|
91
93
|
5DCC50E72A95A0D900B529A0 /* TurboNavigationController.swift */,
|
92
94
|
5DCC50D72A959DF900B529A0 /* ViewController.swift */,
|
95
|
+
5DDD58802AA9A8BE00FAC961 /* NumbersViewController.swift */,
|
93
96
|
);
|
94
97
|
path = Controllers;
|
95
98
|
sourceTree = "<group>";
|
@@ -192,6 +195,7 @@
|
|
192
195
|
buildActionMask = 2147483647;
|
193
196
|
files = (
|
194
197
|
5DCC50D82A959DF900B529A0 /* ViewController.swift in Sources */,
|
198
|
+
5DDD58812AA9A8BE00FAC961 /* NumbersViewController.swift in Sources */,
|
195
199
|
5DCC50D42A959DF900B529A0 /* AppDelegate.swift in Sources */,
|
196
200
|
5DCC50E82A95A0D900B529A0 /* TurboNavigationController.swift in Sources */,
|
197
201
|
5DCC50D62A959DF900B529A0 /* SceneDelegate.swift in Sources */,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo-native-initializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -41,94 +41,97 @@ files:
|
|
41
41
|
- lib/turbo-native-initializer.rb
|
42
42
|
- lib/turbo_native_initializer.rb
|
43
43
|
- lib/turbo_native_initializer/generator.rb
|
44
|
-
- lib/turbo_native_initializer/templates/android_stack/app/.gitignore
|
45
|
-
- lib/turbo_native_initializer/templates/android_stack/app/build.gradle.kts.tt
|
46
|
-
- lib/turbo_native_initializer/templates/android_stack/app/proguard-rules.pro
|
47
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/debug/AndroidManifest.xml.tt
|
48
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/AndroidManifest.xml.tt
|
49
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/assets/json/configuration.json
|
50
44
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/base/NavDestination.kt.tt
|
45
|
+
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NativeFragment.kt.tt
|
46
|
+
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NumbersFragment.kt.tt
|
51
47
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt
|
52
48
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebHomeFragment.kt.tt
|
53
49
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebModalFragment.kt.tt
|
54
50
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainActivity.kt.tt
|
55
51
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainSessionNavHostFragment.kt.tt
|
56
52
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/util/Constants.kt.tt
|
57
|
-
- lib/turbo_native_initializer/templates/android_stack/app
|
58
|
-
- lib/turbo_native_initializer/templates/android_stack/app/
|
59
|
-
- lib/turbo_native_initializer/templates/android_stack/app/
|
60
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/
|
61
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/
|
62
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/
|
63
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
64
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
65
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
66
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
67
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
68
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
69
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
70
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
71
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
72
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
73
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-
|
74
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-
|
75
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/mipmap-
|
76
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
77
|
-
- lib/turbo_native_initializer/templates/android_stack/app/src/main/res/
|
78
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
79
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
80
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
81
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
82
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
83
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
84
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
85
|
-
- lib/turbo_native_initializer/templates/android_stack/
|
86
|
-
- lib/turbo_native_initializer/templates/
|
87
|
-
- lib/turbo_native_initializer/templates/
|
88
|
-
- lib/turbo_native_initializer/templates/
|
89
|
-
- lib/turbo_native_initializer/templates/
|
90
|
-
- lib/turbo_native_initializer/templates/
|
91
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/assets/json/configuration.json
|
53
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/.gitignore
|
54
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/build.gradle.kts.tt
|
55
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/proguard-rules.pro
|
56
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/debug/AndroidManifest.xml.tt
|
57
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/AndroidManifest.xml.tt
|
58
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/assets/json/configuration.json
|
59
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_enter.xml
|
60
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_exit.xml
|
61
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_pop_enter.xml
|
62
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_pop_exit.xml
|
63
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/overshoot_interpolator.xml
|
64
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/drawable/ic_close.xml
|
65
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/drawable/ic_launcher_foreground.xml
|
66
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/activity_main.xml.tt
|
67
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/fragment_native.xml
|
68
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/fragment_web_home.xml
|
69
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
|
70
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
|
71
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xhdpi/ic_launcher.png
|
72
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
|
73
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
|
74
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
|
75
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
|
76
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
|
77
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/values/colors.xml
|
78
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/values/themes.xml.tt
|
79
|
+
- lib/turbo_native_initializer/templates/android_stack/base/build.gradle.kts
|
80
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradle.properties
|
81
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradle/wrapper/gradle-wrapper.jar
|
82
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradle/wrapper/gradle-wrapper.properties
|
83
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradlew
|
84
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradlew.bat
|
85
|
+
- lib/turbo_native_initializer/templates/android_stack/base/local.properties
|
86
|
+
- lib/turbo_native_initializer/templates/android_stack/base/settings.gradle.kts.tt
|
92
87
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/base/NavDestination.kt.tt
|
88
|
+
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NativeFragment.kt.tt
|
89
|
+
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/native/NumbersFragment.kt.tt
|
93
90
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt
|
94
91
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebHomeFragment.kt.tt
|
95
92
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebModalFragment.kt.tt
|
93
|
+
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/BaseSessionNavHostFragment.kt.tt
|
96
94
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainActivity.kt.tt
|
97
95
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabOneSessionNavHostFragment.kt.tt
|
98
96
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabTwoSessionNavHostFragment.kt.tt
|
99
97
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/util/Constants.kt.tt
|
100
|
-
- lib/turbo_native_initializer/templates/android_tabs/app
|
101
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/
|
102
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/
|
103
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/
|
104
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/
|
105
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/
|
106
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
107
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
108
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
109
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
110
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
111
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
112
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
113
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
114
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
115
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
116
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
117
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
118
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
119
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-
|
120
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-
|
121
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/mipmap-
|
122
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
123
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/res/
|
124
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
125
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
126
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
127
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
128
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
129
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
130
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
131
|
-
- lib/turbo_native_initializer/templates/android_tabs/
|
98
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/.gitignore
|
99
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/build.gradle.kts.tt
|
100
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/proguard-rules.pro
|
101
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/debug/AndroidManifest.xml.tt
|
102
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/AndroidManifest.xml.tt
|
103
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/assets/json/configuration.json
|
104
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_enter.xml
|
105
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_exit.xml
|
106
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_pop_enter.xml
|
107
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_pop_exit.xml
|
108
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/overshoot_interpolator.xml
|
109
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_close.xml
|
110
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_home.xml
|
111
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_launcher_foreground.xml
|
112
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_settings.xml
|
113
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/activity_main.xml.tt
|
114
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/fragment_native.xml
|
115
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/fragment_web_home.xml
|
116
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/menu/bottom_navigation_menu.xml
|
117
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
|
118
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
|
119
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xhdpi/ic_launcher.png
|
120
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
|
121
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
|
122
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
|
123
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
|
124
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
|
125
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/values/colors.xml
|
126
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/values/themes.xml.tt
|
127
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/build.gradle.kts
|
128
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradle.properties
|
129
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradle/wrapper/gradle-wrapper.jar
|
130
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradle/wrapper/gradle-wrapper.properties
|
131
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradlew
|
132
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradlew.bat
|
133
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/local.properties
|
134
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/settings.gradle.kts.tt
|
132
135
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.pbxproj.tt
|
133
136
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
134
137
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
@@ -136,6 +139,7 @@ files:
|
|
136
139
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Configuration/Info.plist
|
137
140
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Configuration/path-configuration.json
|
138
141
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/ErrorPresenter.swift
|
142
|
+
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/NumbersViewController.swift
|
139
143
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/TurboNavigationController.swift
|
140
144
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/ViewController.swift
|
141
145
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/AppDelegate.swift
|
@@ -156,6 +160,7 @@ files:
|
|
156
160
|
- lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Configuration/Info.plist
|
157
161
|
- lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Configuration/path-configuration.json
|
158
162
|
- lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/ErrorPresenter.swift
|
163
|
+
- lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/NumbersViewController.swift
|
159
164
|
- lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/TurboNavigationController.swift
|
160
165
|
- lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/ViewController.swift
|
161
166
|
- lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/AppDelegate.swift
|
@@ -1,13 +0,0 @@
|
|
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>
|