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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e673a3e9e9ff4dcab50c3e68a188dc5b71e4660065f87b6dd45006c3e99a43b1
4
- data.tar.gz: c8a1d14e548b6a3fcea40b78329dc5a6721081b56fd45337c669b2a5611ec6e7
3
+ metadata.gz: 63c66dce1bdfbd20b3121e4034d519eed50c5b6795ad483ec651a71d69121f14
4
+ data.tar.gz: 4acf0d37888f87ebbbff7e0c7c625e0f796bbc2a548700239b0bdb855cc0e4cc
5
5
  SHA512:
6
- metadata.gz: d06d7f520ae5c86136456042c46ef38b4c73961a47dee135b16c9d2232022545c8bb6b3a9fd197d98191a8d9745dcfda46d30a1eb076dc1c512f26d997fda0de
7
- data.tar.gz: 3c63e69becdc8853f775cbd947714f0cb3822cbcbe35a7205afe7dfb00063665fb77791ad778215287aea5005b8e7308dee98f8ee83ff7ee1297cd45d2b0da4e
6
+ metadata.gz: 808a4c22b0d0cb17628c68be7a652cf83d5109957d5d19cb9660529e6463cdfaeafa6c534ed117cb329838ea83ad70a75d57e6ce39a750f5f314c4572098b6b1
7
+ data.tar.gz: 03477cafb6f46d4f8a6746d4537321f2c7a8b38d4a2b5fb59d9c6581d3696bbc6b3677cd539f7e7d5173ac53e2304f650991071df35f91ca84e969c6749730a8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.0.9] - 2023-09-11
4
+
5
+ - Fix retry button in modals (iOS)
6
+
3
7
  ## [0.0.7] - 2023-09-09
4
8
 
5
9
  - Small refactor in the NumbersViewController (iOS)
@@ -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": ["^/$", "/signin$"], "properties": { "uri": "turbo://fragment/web/home", "presentation": "replace_all" } },
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
  }
@@ -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="?textAppearanceDisplaySmall"
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=".45"
27
- tools:layout_editor_absoluteX="24dp" />
18
+ app:layout_constraintVertical_bias=".40" />
28
19
 
29
20
  <com.google.android.material.textview.MaterialTextView
30
- style="?textAppearanceTitleMedium"
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>
@@ -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="?textAppearanceDisplaySmall"
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=".45"
27
- tools:layout_editor_absoluteX="24dp" />
18
+ app:layout_constraintVertical_bias=".40" />
28
19
 
29
20
  <com.google.android.material.textview.MaterialTextView
30
- style="?textAppearanceTitleMedium"
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": ["^/$", "/signin$"], "properties": { "presentation": "replace-all" } },
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) { [weak self] in
76
- self?.session.reload()
77
- }
75
+ errorPresenter.presentError(error) { session.reload() }
78
76
  } else {
79
- assertionFailure("Visit failed!")
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) { [weak self] in
94
- self?.session().reload()
95
- }
93
+ errorPresenter.presentError(error) { session.reload() }
96
94
  } else {
97
- assertionFailure("Visit failed!")
95
+ fatalError("Visit failed!")
98
96
  }
99
97
  }
100
98
 
@@ -1,3 +1,3 @@
1
1
  module TurboNativeInitializer
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.9"
3
3
  end
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.7
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>