turbo-native-initializer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/README.md +12 -2
- data/lib/turbo_native_initializer/generator.rb +8 -36
- 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/web/WebFragment.kt.tt +0 -19
- 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/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 +31 -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/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_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/version.rb +1 -1
- metadata +72 -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}/build.gradle.kts.tt +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/assets/json/configuration.json +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}/build.gradle.kts.tt +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/assets/json/configuration.json +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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 176b16802d0622c1efbf2b490120d975bfaff446f7c48728e7931c3145dc9bee
|
4
|
+
data.tar.gz: 90bc9b58ac276531c18df91da08e1db2270fdf23e23c44749a4a557247bf49da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e91a773673535adb6447794f9d224de54561d892c8ebe205e5cfc5ce580dcae807b5206b1f2811fe1885113f21aa8a3f53fc2ff30b5d61304930f223342a6ef
|
7
|
+
data.tar.gz: 676a976889172ab21c01084db2dd1562788c9b54dfce7f3246b4ecc1c731f01e23ab704adfb1261705c15be044740c133145d27ec30885ece716ca1bd36d7bb3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -28,10 +28,20 @@ $ cd AwesomeProject
|
|
28
28
|
$ studio .
|
29
29
|
```
|
30
30
|
|
31
|
-
|
31
|
+
## Usage
|
32
32
|
|
33
33
|
```
|
34
|
-
|
34
|
+
Usage:
|
35
|
+
turbo-native-initializer NAME --platform=PLATFORM
|
36
|
+
|
37
|
+
Options:
|
38
|
+
--platform=PLATFORM
|
39
|
+
# Possible values: ios, android
|
40
|
+
[--navigation=NAVIGATION]
|
41
|
+
# Default: stack
|
42
|
+
# Possible values: stack, tabs
|
43
|
+
[--package=PACKAGE]
|
44
|
+
# Default: dev.hotwire.turbo
|
35
45
|
```
|
36
46
|
|
37
47
|
## Development
|
@@ -18,50 +18,22 @@ module TurboNativeInitializer
|
|
18
18
|
|
19
19
|
def copy_template_files
|
20
20
|
case options.platform
|
21
|
-
when "android"
|
22
|
-
copy_android_files
|
23
21
|
when "ios"
|
24
|
-
copy_ios_files
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
private
|
29
|
-
def project
|
30
|
-
"#{options[:platform]}_#{options[:navigation]}"
|
31
|
-
end
|
32
|
-
|
33
|
-
def copy_ios_files
|
34
|
-
# project/TurboNativeProject
|
35
22
|
directory "#{project}/TurboNativeProject/Configuration", "#{name}/#{name}/Configuration"
|
36
23
|
directory "#{project}/TurboNativeProject/Controllers", "#{name}/#{name}/Controllers"
|
37
24
|
directory "#{project}/TurboNativeProject/Delegates", "#{name}/#{name}/Delegates"
|
38
25
|
directory "#{project}/TurboNativeProject/Resources", "#{name}/#{name}/Resources"
|
39
|
-
template "#{project}/TurboNativeProject/TurboNativeProject.swift", "#{name}/#{name}/#{name}.swift"
|
40
|
-
# project
|
41
26
|
directory "#{project}/TurboNativeProject.xcodeproj", "#{name}/#{name}.xcodeproj"
|
27
|
+
template "#{project}/TurboNativeProject/TurboNativeProject.swift", "#{name}/#{name}/#{name}.swift"
|
28
|
+
when "android"
|
29
|
+
directory "#{project}/base", "#{name}"
|
30
|
+
directory "#{project}/app/src/main/java/dev/hotwire/turbo/turbonativeproject", "#{name}/app/src/main/java/#{package_path}"
|
42
31
|
end
|
32
|
+
end
|
43
33
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
copy_file "#{project}/app/proguard-rules.pro", "#{name}/app/proguard-rules.pro"
|
48
|
-
template "#{project}/app/build.gradle.kts", "#{name}/app/build.gradle.kts"
|
49
|
-
# project/app/src/debug
|
50
|
-
directory "#{project}/app/src/debug", "#{name}/app/src/debug"
|
51
|
-
# project/app/src/main
|
52
|
-
directory "#{project}/app/src/main/assets", "#{name}/app/src/main/assets"
|
53
|
-
directory "#{project}/app/src/main/java/dev/hotwire/turbo/turbonativeproject", "#{name}/app/src/main/java/#{package_path}"
|
54
|
-
directory "#{project}/app/src/main/res", "#{name}/app/src/main/res"
|
55
|
-
template "#{project}/app/src/main/AndroidManifest.xml", "#{name}/app/src/main/AndroidManifest.xml"
|
56
|
-
# project/gradle
|
57
|
-
directory "#{project}/gradle", "#{name}/gradle"
|
58
|
-
# project
|
59
|
-
copy_file "#{project}/build.gradle.kts", "#{name}/build.gradle.kts"
|
60
|
-
copy_file "#{project}/gradle.properties", "#{name}/gradle.properties"
|
61
|
-
copy_file "#{project}/gradlew", "#{name}/gradlew"
|
62
|
-
copy_file "#{project}/gradlew.bat", "#{name}/gradlew.bat"
|
63
|
-
copy_file "#{project}/local.properties", "#{name}/local.properties"
|
64
|
-
template "#{project}/settings.gradle.kts", "#{name}/settings.gradle.kts"
|
34
|
+
private
|
35
|
+
def project
|
36
|
+
"#{options[:platform]}_#{options[:navigation]}"
|
65
37
|
end
|
66
38
|
|
67
39
|
def package_path
|
@@ -1,7 +1,6 @@
|
|
1
1
|
package <%= package_name %>.base
|
2
2
|
|
3
3
|
import android.net.Uri
|
4
|
-
import android.view.MenuItem
|
5
4
|
import androidx.browser.customtabs.CustomTabColorSchemeParams
|
6
5
|
import androidx.browser.customtabs.CustomTabsIntent
|
7
6
|
import androidx.browser.customtabs.CustomTabsIntent.SHARE_STATE_ON
|
@@ -15,9 +14,6 @@ import dev.hotwire.turbo.nav.TurboNavDestination
|
|
15
14
|
import dev.hotwire.turbo.nav.TurboNavPresentationContext.MODAL
|
16
15
|
|
17
16
|
interface NavDestination : TurboNavDestination {
|
18
|
-
val menuProgress: MenuItem?
|
19
|
-
get() = toolbarForNavigation()?.menu?.findItem(R.id.menu_progress)
|
20
|
-
|
21
17
|
override fun shouldNavigateTo(newLocation: String): Boolean {
|
22
18
|
return when (isNavigable(newLocation)) {
|
23
19
|
true -> true
|
@@ -1,8 +1,5 @@
|
|
1
1
|
package <%= package_name %>.features.web
|
2
2
|
|
3
|
-
import android.os.Bundle
|
4
|
-
import android.view.View
|
5
|
-
import <%= package_name %>.R
|
6
3
|
import <%= package_name %>.base.NavDestination
|
7
4
|
import <%= package_name %>.util.SIGN_IN_URL
|
8
5
|
import dev.hotwire.turbo.fragments.TurboWebFragment
|
@@ -12,26 +9,10 @@ import dev.hotwire.turbo.visit.TurboVisitOptions
|
|
12
9
|
|
13
10
|
@TurboNavGraphDestination(uri = "turbo://fragment/web")
|
14
11
|
open class WebFragment : TurboWebFragment(), NavDestination {
|
15
|
-
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
16
|
-
super.onViewCreated(view, savedInstanceState); setupMenu()
|
17
|
-
}
|
18
|
-
|
19
|
-
override fun onFormSubmissionStarted(location: String) {
|
20
|
-
menuProgress?.isVisible = true
|
21
|
-
}
|
22
|
-
|
23
|
-
override fun onFormSubmissionFinished(location: String) {
|
24
|
-
menuProgress?.isVisible = false
|
25
|
-
}
|
26
|
-
|
27
12
|
override fun onVisitErrorReceived(location: String, errorCode: Int) {
|
28
13
|
when (errorCode) {
|
29
14
|
401 -> navigate(SIGN_IN_URL, TurboVisitOptions(action = REPLACE))
|
30
15
|
else -> super.onVisitErrorReceived(location, errorCode)
|
31
16
|
}
|
32
17
|
}
|
33
|
-
|
34
|
-
private fun setupMenu() {
|
35
|
-
toolbarForNavigation()?.inflateMenu(R.menu.web)
|
36
|
-
}
|
37
18
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
package <%= package_name %>.base
|
2
2
|
|
3
3
|
import android.net.Uri
|
4
|
-
import android.view.MenuItem
|
5
4
|
import androidx.browser.customtabs.CustomTabColorSchemeParams
|
6
5
|
import androidx.browser.customtabs.CustomTabsIntent
|
7
6
|
import androidx.browser.customtabs.CustomTabsIntent.SHARE_STATE_ON
|
@@ -15,9 +14,6 @@ import dev.hotwire.turbo.nav.TurboNavDestination
|
|
15
14
|
import dev.hotwire.turbo.nav.TurboNavPresentationContext.MODAL
|
16
15
|
|
17
16
|
interface NavDestination : TurboNavDestination {
|
18
|
-
val menuProgress: MenuItem?
|
19
|
-
get() = toolbarForNavigation()?.menu?.findItem(R.id.menu_progress)
|
20
|
-
|
21
17
|
override fun shouldNavigateTo(newLocation: String): Boolean {
|
22
18
|
return when (isNavigable(newLocation)) {
|
23
19
|
true -> true
|
@@ -1,29 +1,8 @@
|
|
1
1
|
package <%= package_name %>.features.web
|
2
2
|
|
3
|
-
import android.os.Bundle
|
4
|
-
import android.view.View
|
5
|
-
import <%= package_name %>.R
|
6
3
|
import <%= package_name %>.base.NavDestination
|
7
4
|
import dev.hotwire.turbo.fragments.TurboWebFragment
|
8
5
|
import dev.hotwire.turbo.nav.TurboNavGraphDestination
|
9
|
-
import dev.hotwire.turbo.visit.TurboVisitAction.REPLACE
|
10
|
-
import dev.hotwire.turbo.visit.TurboVisitOptions
|
11
6
|
|
12
7
|
@TurboNavGraphDestination(uri = "turbo://fragment/web")
|
13
|
-
open class WebFragment : TurboWebFragment(), NavDestination
|
14
|
-
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
15
|
-
super.onViewCreated(view, savedInstanceState); setupMenu()
|
16
|
-
}
|
17
|
-
|
18
|
-
override fun onFormSubmissionStarted(location: String) {
|
19
|
-
menuProgress?.isVisible = true
|
20
|
-
}
|
21
|
-
|
22
|
-
override fun onFormSubmissionFinished(location: String) {
|
23
|
-
menuProgress?.isVisible = false
|
24
|
-
}
|
25
|
-
|
26
|
-
private fun setupMenu() {
|
27
|
-
toolbarForNavigation()?.inflateMenu(R.menu.web)
|
28
|
-
}
|
29
|
-
}
|
8
|
+
open class WebFragment : TurboWebFragment(), NavDestination
|
@@ -0,0 +1,31 @@
|
|
1
|
+
package <%= package_name %>.main
|
2
|
+
|
3
|
+
import android.webkit.WebView
|
4
|
+
import androidx.appcompat.app.AppCompatActivity
|
5
|
+
import androidx.fragment.app.Fragment
|
6
|
+
import dev.hotwire.turbo.config.TurboPathConfiguration
|
7
|
+
import <%= package_name %>.features.web.WebFragment
|
8
|
+
import <%= package_name %>.features.web.WebHomeFragment
|
9
|
+
import <%= package_name %>.features.web.WebModalFragment
|
10
|
+
import dev.hotwire.turbo.session.TurboSessionNavHostFragment
|
11
|
+
import kotlin.reflect.KClass
|
12
|
+
|
13
|
+
abstract class BaseSessionNavHostFragment : TurboSessionNavHostFragment() {
|
14
|
+
override val registeredActivities: List<KClass<out AppCompatActivity>>
|
15
|
+
get() = listOf()
|
16
|
+
|
17
|
+
override val registeredFragments: List<KClass<out Fragment>>
|
18
|
+
get() = listOf(WebFragment::class, WebHomeFragment::class, WebModalFragment::class)
|
19
|
+
|
20
|
+
override val pathConfigurationLocation: TurboPathConfiguration.Location
|
21
|
+
get() = TurboPathConfiguration.Location(assetFilePath = "json/configuration.json")
|
22
|
+
|
23
|
+
override fun onSessionCreated() {
|
24
|
+
super.onSessionCreated()
|
25
|
+
session.webView.settings.userAgentString = customUserAgent(session.webView)
|
26
|
+
}
|
27
|
+
|
28
|
+
private fun customUserAgent(webView: WebView): String {
|
29
|
+
return "Turbo Native Android ${webView.settings.userAgentString}"
|
30
|
+
}
|
31
|
+
}
|
@@ -9,6 +9,12 @@ import dev.hotwire.turbo.delegates.TurboActivityDelegate
|
|
9
9
|
import <%= package_name %>.R
|
10
10
|
|
11
11
|
class MainActivity : AppCompatActivity(), TurboActivity {
|
12
|
+
private val viewFliper: ViewFlipper
|
13
|
+
get() = findViewById(R.id.view_flipper)
|
14
|
+
|
15
|
+
private val bottomNavigationView: BottomNavigationView
|
16
|
+
get() = findViewById(R.id.bottom_navigation_view)
|
17
|
+
|
12
18
|
override lateinit var delegate: TurboActivityDelegate
|
13
19
|
|
14
20
|
override fun onCreate(savedInstanceState: Bundle?) {
|
@@ -23,19 +29,16 @@ class MainActivity : AppCompatActivity(), TurboActivity {
|
|
23
29
|
}
|
24
30
|
|
25
31
|
private fun setupBottomNavigationView() {
|
26
|
-
val viewFliper = findViewById<ViewFlipper>(R.id.view_flipper)
|
27
|
-
val bottomNavigationView = findViewById<BottomNavigationView>(R.id.bottom_navigation_view)
|
28
|
-
|
29
32
|
bottomNavigationView.setOnItemSelectedListener {
|
30
33
|
when (it.itemId) {
|
31
34
|
R.id.tab_item_one -> {
|
32
|
-
viewFliper.displayedChild = 0
|
33
35
|
delegate.currentNavHostFragmentId = R.id.tab_one_nav_host
|
36
|
+
viewFliper.displayedChild = 0
|
34
37
|
true
|
35
38
|
}
|
36
39
|
R.id.tab_item_two -> {
|
37
|
-
viewFliper.displayedChild = 1
|
38
40
|
delegate.currentNavHostFragmentId = R.id.tab_two_nav_host
|
41
|
+
viewFliper.displayedChild = 1
|
39
42
|
true
|
40
43
|
}
|
41
44
|
else -> {
|
@@ -1,37 +1,9 @@
|
|
1
1
|
package <%= package_name %>.main
|
2
2
|
|
3
|
-
import android.webkit.WebView
|
4
|
-
import androidx.appcompat.app.AppCompatActivity
|
5
|
-
import androidx.fragment.app.Fragment
|
6
|
-
import dev.hotwire.turbo.config.TurboPathConfiguration
|
7
|
-
import <%= package_name %>.features.web.WebFragment
|
8
|
-
import <%= package_name %>.features.web.WebHomeFragment
|
9
|
-
import <%= package_name %>.features.web.WebModalFragment
|
10
3
|
import <%= package_name %>.util.CURRENT_URL_1
|
11
|
-
import dev.hotwire.turbo.session.TurboSessionNavHostFragment
|
12
|
-
import kotlin.reflect.KClass
|
13
4
|
|
14
5
|
@Suppress("unused")
|
15
|
-
class TabOneSessionNavHostFragment :
|
16
|
-
override val sessionName = "
|
17
|
-
|
6
|
+
class TabOneSessionNavHostFragment : BaseSessionNavHostFragment() {
|
7
|
+
override val sessionName = "tab_one"
|
18
8
|
override val startLocation = CURRENT_URL_1
|
19
|
-
|
20
|
-
override val registeredActivities: List<KClass<out AppCompatActivity>>
|
21
|
-
get() = listOf()
|
22
|
-
|
23
|
-
override val registeredFragments: List<KClass<out Fragment>>
|
24
|
-
get() = listOf(WebFragment::class, WebHomeFragment::class, WebModalFragment::class)
|
25
|
-
|
26
|
-
override val pathConfigurationLocation: TurboPathConfiguration.Location
|
27
|
-
get() = TurboPathConfiguration.Location(assetFilePath = "json/configuration.json")
|
28
|
-
|
29
|
-
override fun onSessionCreated() {
|
30
|
-
super.onSessionCreated()
|
31
|
-
session.webView.settings.userAgentString = customUserAgent(session.webView)
|
32
|
-
}
|
33
|
-
|
34
|
-
private fun customUserAgent(webView: WebView): String {
|
35
|
-
return "Turbo Native Android ${webView.settings.userAgentString}"
|
36
|
-
}
|
37
9
|
}
|
@@ -1,37 +1,9 @@
|
|
1
1
|
package <%= package_name %>.main
|
2
2
|
|
3
|
-
import android.webkit.WebView
|
4
|
-
import androidx.appcompat.app.AppCompatActivity
|
5
|
-
import androidx.fragment.app.Fragment
|
6
|
-
import dev.hotwire.turbo.config.TurboPathConfiguration
|
7
|
-
import <%= package_name %>.features.web.WebFragment
|
8
|
-
import <%= package_name %>.features.web.WebHomeFragment
|
9
|
-
import <%= package_name %>.features.web.WebModalFragment
|
10
3
|
import <%= package_name %>.util.CURRENT_URL_2
|
11
|
-
import dev.hotwire.turbo.session.TurboSessionNavHostFragment
|
12
|
-
import kotlin.reflect.KClass
|
13
4
|
|
14
5
|
@Suppress("unused")
|
15
|
-
class TabTwoSessionNavHostFragment :
|
16
|
-
override val sessionName = "
|
17
|
-
|
6
|
+
class TabTwoSessionNavHostFragment : BaseSessionNavHostFragment() {
|
7
|
+
override val sessionName = "tab_two"
|
18
8
|
override val startLocation = CURRENT_URL_2
|
19
|
-
|
20
|
-
override val registeredActivities: List<KClass<out AppCompatActivity>>
|
21
|
-
get() = listOf()
|
22
|
-
|
23
|
-
override val registeredFragments: List<KClass<out Fragment>>
|
24
|
-
get() = listOf(WebFragment::class, WebHomeFragment::class, WebModalFragment::class)
|
25
|
-
|
26
|
-
override val pathConfigurationLocation: TurboPathConfiguration.Location
|
27
|
-
get() = TurboPathConfiguration.Location(assetFilePath = "json/configuration.json")
|
28
|
-
|
29
|
-
override fun onSessionCreated() {
|
30
|
-
super.onSessionCreated()
|
31
|
-
session.webView.settings.userAgentString = customUserAgent(session.webView)
|
32
|
-
}
|
33
|
-
|
34
|
-
private fun customUserAgent(webView: WebView): String {
|
35
|
-
return "Turbo Native Android ${webView.settings.userAgentString}"
|
36
|
-
}
|
37
9
|
}
|
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
|
}
|
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>
|
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.2
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -41,12 +41,6 @@ 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
|
51
45
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt
|
52
46
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebHomeFragment.kt.tt
|
@@ -54,81 +48,84 @@ files:
|
|
54
48
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainActivity.kt.tt
|
55
49
|
- lib/turbo_native_initializer/templates/android_stack/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainSessionNavHostFragment.kt.tt
|
56
50
|
- 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/mipmap-
|
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/android_tabs/app/src/main/AndroidManifest.xml.tt
|
91
|
-
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/assets/json/configuration.json
|
51
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/.gitignore
|
52
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/build.gradle.kts.tt
|
53
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/proguard-rules.pro
|
54
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/debug/AndroidManifest.xml.tt
|
55
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/AndroidManifest.xml.tt
|
56
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/assets/json/configuration.json
|
57
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_enter.xml
|
58
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_exit.xml
|
59
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_pop_enter.xml
|
60
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/nav_slide_pop_exit.xml
|
61
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/overshoot_interpolator.xml
|
62
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/drawable/ic_close.xml
|
63
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/drawable/ic_launcher_foreground.xml
|
64
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/activity_main.xml.tt
|
65
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/fragment_web_home.xml
|
66
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
|
67
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
|
68
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xhdpi/ic_launcher.png
|
69
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
|
70
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
|
71
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
|
72
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
|
73
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
|
74
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/values/colors.xml
|
75
|
+
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/values/themes.xml.tt
|
76
|
+
- lib/turbo_native_initializer/templates/android_stack/base/build.gradle.kts
|
77
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradle.properties
|
78
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradle/wrapper/gradle-wrapper.jar
|
79
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradle/wrapper/gradle-wrapper.properties
|
80
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradlew
|
81
|
+
- lib/turbo_native_initializer/templates/android_stack/base/gradlew.bat
|
82
|
+
- lib/turbo_native_initializer/templates/android_stack/base/local.properties
|
83
|
+
- lib/turbo_native_initializer/templates/android_stack/base/settings.gradle.kts.tt
|
92
84
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/base/NavDestination.kt.tt
|
93
85
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebFragment.kt.tt
|
94
86
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebHomeFragment.kt.tt
|
95
87
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/features/web/WebModalFragment.kt.tt
|
88
|
+
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/BaseSessionNavHostFragment.kt.tt
|
96
89
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/MainActivity.kt.tt
|
97
90
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabOneSessionNavHostFragment.kt.tt
|
98
91
|
- lib/turbo_native_initializer/templates/android_tabs/app/src/main/java/dev/hotwire/turbo/turbonativeproject/main/TabTwoSessionNavHostFragment.kt.tt
|
99
92
|
- 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/mipmap-
|
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/
|
93
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/.gitignore
|
94
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/build.gradle.kts.tt
|
95
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/proguard-rules.pro
|
96
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/debug/AndroidManifest.xml.tt
|
97
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/AndroidManifest.xml.tt
|
98
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/assets/json/configuration.json
|
99
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_enter.xml
|
100
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_exit.xml
|
101
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_pop_enter.xml
|
102
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/nav_slide_pop_exit.xml
|
103
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/anim/overshoot_interpolator.xml
|
104
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_close.xml
|
105
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_home.xml
|
106
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_launcher_foreground.xml
|
107
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_settings.xml
|
108
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/activity_main.xml.tt
|
109
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/fragment_web_home.xml
|
110
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/menu/bottom_navigation_menu.xml
|
111
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
|
112
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
|
113
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xhdpi/ic_launcher.png
|
114
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
|
115
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
|
116
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
|
117
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
|
118
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
|
119
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/values/colors.xml
|
120
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/values/themes.xml.tt
|
121
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/build.gradle.kts
|
122
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradle.properties
|
123
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradle/wrapper/gradle-wrapper.jar
|
124
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradle/wrapper/gradle-wrapper.properties
|
125
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradlew
|
126
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/gradlew.bat
|
127
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/local.properties
|
128
|
+
- lib/turbo_native_initializer/templates/android_tabs/base/settings.gradle.kts.tt
|
132
129
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.pbxproj.tt
|
133
130
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
134
131
|
- lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
@@ -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>
|
@@ -1,14 +0,0 @@
|
|
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>
|
@@ -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>
|
@@ -1,14 +0,0 @@
|
|
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>
|
File without changes
|
/data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/build.gradle.kts.tt
RENAMED
File without changes
|
/data/lib/turbo_native_initializer/templates/android_stack/{app → base/app}/proguard-rules.pro
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/build.gradle.kts.tt
RENAMED
File without changes
|
/data/lib/turbo_native_initializer/templates/android_tabs/{app → base/app}/proguard-rules.pro
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/lib/turbo_native_initializer/templates/android_tabs/{build.gradle.kts → base/build.gradle.kts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/lib/turbo_native_initializer/templates/android_tabs/{local.properties → base/local.properties}
RENAMED
File without changes
|
File without changes
|