turbo-native-initializer 0.0.7 → 0.0.9
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 -0
- data/lib/turbo_native_initializer/templates/android_stack/base/app/src/main/assets/json/configuration.json +2 -2
- data/lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/error_web.xml +4 -13
- data/lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/error_web.xml +4 -13
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Configuration/path-configuration.json +2 -2
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/ErrorPresenter.swift +0 -4
- data/lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Delegates/SceneDelegate.swift.tt +2 -4
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/ErrorPresenter.swift +0 -4
- data/lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Delegates/SceneDelegate.swift.tt +2 -4
- data/lib/turbo_native_initializer/version.rb +1 -1
- metadata +1 -3
- data/lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/drawable/ic_warning.xml +0 -7
- data/lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_warning.xml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63c66dce1bdfbd20b3121e4034d519eed50c5b6795ad483ec651a71d69121f14
|
4
|
+
data.tar.gz: 4acf0d37888f87ebbbff7e0c7c625e0f796bbc2a548700239b0bdb855cc0e4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 808a4c22b0d0cb17628c68be7a652cf83d5109957d5d19cb9660529e6463cdfaeafa6c534ed117cb329838ea83ad70a75d57e6ce39a750f5f314c4572098b6b1
|
7
|
+
data.tar.gz: 03477cafb6f46d4f8a6746d4537321f2c7a8b38d4a2b5fb59d9c6581d3696bbc6b3677cd539f7e7d5173ac53e2304f650991071df35f91ca84e969c6749730a8
|
data/CHANGELOG.md
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
{ "patterns": ["/refresh_historical_location"], "properties": { "presentation": "refresh" } },
|
6
6
|
{ "patterns": ["/recede_historical_location"], "properties": { "presentation": "pop" } },
|
7
7
|
{ "patterns": ["/resume_historical_location"], "properties": { "presentation": "none" } },
|
8
|
-
{ "patterns": ["^/$"
|
9
|
-
{ "patterns": ["/new$", "/edit$"], "properties": { "context": "modal", "uri": "turbo://fragment/web/modal" } },
|
8
|
+
{ "patterns": ["^/$"], "properties": { "uri": "turbo://fragment/web/home", "presentation": "replace_all" } },
|
9
|
+
{ "patterns": ["/new$", "/edit$", "/signin$"], "properties": { "context": "modal", "uri": "turbo://fragment/web/modal" } },
|
10
10
|
{ "patterns": ["/numbers$"], "properties": { "uri": "turbo://fragment/numbers", "title": "Numbers" } }
|
11
11
|
]
|
12
12
|
}
|
data/lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/error_web.xml
CHANGED
@@ -6,28 +6,19 @@
|
|
6
6
|
android:layout_height="match_parent"
|
7
7
|
android:background="?android:colorBackground">
|
8
8
|
|
9
|
-
<ImageView
|
10
|
-
android:id="@+id/imageView"
|
11
|
-
android:layout_width="match_parent"
|
12
|
-
android:layout_height="50dp"
|
13
|
-
android:layout_marginBottom="10dp"
|
14
|
-
app:layout_constraintBottom_toTopOf="@+id/error_message"
|
15
|
-
app:srcCompat="@drawable/ic_warning" />
|
16
|
-
|
17
9
|
<com.google.android.material.textview.MaterialTextView
|
18
10
|
android:id="@+id/error_message"
|
19
|
-
style="?
|
11
|
+
style="?textAppearanceHeadline6"
|
20
12
|
android:layout_width="match_parent"
|
21
13
|
android:layout_height="wrap_content"
|
22
14
|
android:gravity="center_horizontal"
|
23
15
|
android:text="Error loading page"
|
24
16
|
app:layout_constraintBottom_toBottomOf="parent"
|
25
17
|
app:layout_constraintTop_toTopOf="parent"
|
26
|
-
app:layout_constraintVertical_bias=".
|
27
|
-
tools:layout_editor_absoluteX="24dp" />
|
18
|
+
app:layout_constraintVertical_bias=".40" />
|
28
19
|
|
29
20
|
<com.google.android.material.textview.MaterialTextView
|
30
|
-
style="?
|
21
|
+
style="?textAppearanceCaption"
|
31
22
|
android:layout_width="match_parent"
|
32
23
|
android:layout_height="wrap_content"
|
33
24
|
android:layout_marginTop="10dp"
|
@@ -36,4 +27,4 @@
|
|
36
27
|
app:layout_constraintTop_toBottomOf="@id/error_message"
|
37
28
|
tools:layout_editor_absoluteX="24dp" />
|
38
29
|
|
39
|
-
</androidx.constraintlayout.widget.ConstraintLayout>
|
30
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
data/lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/error_web.xml
CHANGED
@@ -6,28 +6,19 @@
|
|
6
6
|
android:layout_height="match_parent"
|
7
7
|
android:background="?android:colorBackground">
|
8
8
|
|
9
|
-
<ImageView
|
10
|
-
android:id="@+id/imageView"
|
11
|
-
android:layout_width="match_parent"
|
12
|
-
android:layout_height="50dp"
|
13
|
-
android:layout_marginBottom="10dp"
|
14
|
-
app:layout_constraintBottom_toTopOf="@+id/error_message"
|
15
|
-
app:srcCompat="@drawable/ic_warning" />
|
16
|
-
|
17
9
|
<com.google.android.material.textview.MaterialTextView
|
18
10
|
android:id="@+id/error_message"
|
19
|
-
style="?
|
11
|
+
style="?textAppearanceHeadline6"
|
20
12
|
android:layout_width="match_parent"
|
21
13
|
android:layout_height="wrap_content"
|
22
14
|
android:gravity="center_horizontal"
|
23
15
|
android:text="Error loading page"
|
24
16
|
app:layout_constraintBottom_toBottomOf="parent"
|
25
17
|
app:layout_constraintTop_toTopOf="parent"
|
26
|
-
app:layout_constraintVertical_bias=".
|
27
|
-
tools:layout_editor_absoluteX="24dp" />
|
18
|
+
app:layout_constraintVertical_bias=".40" />
|
28
19
|
|
29
20
|
<com.google.android.material.textview.MaterialTextView
|
30
|
-
style="?
|
21
|
+
style="?textAppearanceCaption"
|
31
22
|
android:layout_width="match_parent"
|
32
23
|
android:layout_height="wrap_content"
|
33
24
|
android:layout_marginTop="10dp"
|
@@ -36,4 +27,4 @@
|
|
36
27
|
app:layout_constraintTop_toBottomOf="@id/error_message"
|
37
28
|
tools:layout_editor_absoluteX="24dp" />
|
38
29
|
|
39
|
-
</androidx.constraintlayout.widget.ConstraintLayout>
|
30
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
@@ -4,8 +4,8 @@
|
|
4
4
|
{ "patterns": ["/refresh_historical_location"], "properties": { "presentation": "refresh", "visitable": false } },
|
5
5
|
{ "patterns": ["/recede_historical_location"], "properties": { "presentation": "pop", "visitable": false } },
|
6
6
|
{ "patterns": ["/resume_historical_location"], "properties": { "presentation": "none", "visitable": false } },
|
7
|
-
{ "patterns": ["^/$"
|
8
|
-
{ "patterns": ["/new$", "/edit$"], "properties": { "presentation": "modal" } },
|
7
|
+
{ "patterns": ["^/$"], "properties": { "presentation": "replace-all" } },
|
8
|
+
{ "patterns": ["/new$", "/edit$", "/signin$"], "properties": { "presentation": "modal" } },
|
9
9
|
{ "patterns": ["/numbers$"], "properties": { "view-controller": "numbers" } }
|
10
10
|
]
|
11
11
|
}
|
@@ -43,10 +43,6 @@ struct ErrorView: View {
|
|
43
43
|
|
44
44
|
var body: some View {
|
45
45
|
VStack(spacing: 16) {
|
46
|
-
Image(systemName: "exclamationmark.triangle")
|
47
|
-
.font(.system(size: 38, weight: .semibold))
|
48
|
-
.foregroundColor(.accentColor)
|
49
|
-
|
50
46
|
Text("Error loading page")
|
51
47
|
.font(.largeTitle)
|
52
48
|
|
@@ -72,11 +72,9 @@ extension SceneDelegate: SessionDelegate {
|
|
72
72
|
if let turboError = error as? TurboError, case let .http(statusCode) = turboError, statusCode == 401 {
|
73
73
|
promptForAuthentication()
|
74
74
|
} else if let errorPresenter = visitable as? ErrorPresenter {
|
75
|
-
errorPresenter.presentError(error) {
|
76
|
-
self?.session.reload()
|
77
|
-
}
|
75
|
+
errorPresenter.presentError(error) { session.reload() }
|
78
76
|
} else {
|
79
|
-
|
77
|
+
fatalError("Visit failed!")
|
80
78
|
}
|
81
79
|
}
|
82
80
|
|
@@ -43,10 +43,6 @@ struct ErrorView: View {
|
|
43
43
|
|
44
44
|
var body: some View {
|
45
45
|
VStack(spacing: 16) {
|
46
|
-
Image(systemName: "exclamationmark.triangle")
|
47
|
-
.font(.system(size: 38, weight: .semibold))
|
48
|
-
.foregroundColor(.accentColor)
|
49
|
-
|
50
46
|
Text("Error loading page")
|
51
47
|
.font(.largeTitle)
|
52
48
|
|
@@ -90,11 +90,9 @@ extension SceneDelegate: SessionDelegate {
|
|
90
90
|
|
91
91
|
func session(_ session: Session, didFailRequestForVisitable visitable: Visitable, error: Error) {
|
92
92
|
if let errorPresenter = visitable as? ErrorPresenter {
|
93
|
-
errorPresenter.presentError(error) {
|
94
|
-
self?.session().reload()
|
95
|
-
}
|
93
|
+
errorPresenter.presentError(error) { session.reload() }
|
96
94
|
} else {
|
97
|
-
|
95
|
+
fatalError("Visit failed!")
|
98
96
|
}
|
99
97
|
}
|
100
98
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/anim/overshoot_interpolator.xml
|
64
64
|
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/drawable/ic_close.xml
|
65
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/drawable/ic_warning.xml
|
67
66
|
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/activity_main.xml.tt
|
68
67
|
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/error_web.xml
|
69
68
|
- lib/turbo_native_initializer/templates/android_stack/base/app/src/main/res/layout/fragment_native.xml
|
@@ -112,7 +111,6 @@ files:
|
|
112
111
|
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_home.xml
|
113
112
|
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_launcher_foreground.xml
|
114
113
|
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_settings.xml
|
115
|
-
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/drawable/ic_warning.xml
|
116
114
|
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/activity_main.xml.tt
|
117
115
|
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/error_web.xml
|
118
116
|
- lib/turbo_native_initializer/templates/android_tabs/base/app/src/main/res/layout/fragment_native.xml
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<vector android:height="24dp" android:tint="@color/color_brand"
|
2
|
-
android:viewportHeight="24" android:viewportWidth="24"
|
3
|
-
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
4
|
-
<path android:fillColor="@android:color/white" android:pathData="M12,5.99L19.53,19H4.47L12,5.99M12,2L1,21h22L12,2L12,2z"/>
|
5
|
-
<path android:fillColor="@android:color/white" android:pathData="M13,16l-2,0l0,2l2,0z"/>
|
6
|
-
<path android:fillColor="@android:color/white" android:pathData="M13,10l-2,0l0,5l2,0z"/>
|
7
|
-
</vector>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<vector android:height="24dp" android:tint="@color/color_brand"
|
2
|
-
android:viewportHeight="24" android:viewportWidth="24"
|
3
|
-
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
4
|
-
<path android:fillColor="@android:color/white" android:pathData="M12,5.99L19.53,19H4.47L12,5.99M12,2L1,21h22L12,2L12,2z"/>
|
5
|
-
<path android:fillColor="@android:color/white" android:pathData="M13,16l-2,0l0,2l2,0z"/>
|
6
|
-
<path android:fillColor="@android:color/white" android:pathData="M13,10l-2,0l0,5l2,0z"/>
|
7
|
-
</vector>
|