You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guide/platform-version-handling.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,9 @@ There are several key things to understand about platform version handling withi
6
6
7
7
In general, maintaining `package.json` dependency versions is often a familiar topic with JavaScript developers. We recommend [this article](https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Client-side_tools/Package_management) as well as [our overview here](https://docs.nativescript.org/guide/development-workflow/using-packages#package-managers) if not familiar with JavaScript package managers.
8
8
9
-
This document however focuses on a topic beyond the JavaScript ecosystem.
9
+
This document however focuses on a topic beyond the JavaScript ecosystem -- **How to manage platform versions**?
10
10
11
-
# How to manage platform versions
12
-
13
-
## Android
11
+
# Android
14
12
15
13
The [@nativescript/android](https://github.com/NativeScript/android) dependency is good to keep your project up to date with as it often contains system level updates and requirements.
16
14
@@ -53,9 +51,9 @@ ext {
53
51
}
54
52
```
55
53
56
-
###Android Version Errors with Solutions
54
+
## Android Version Errors with Solutions
57
55
58
-
####Error Sample A
56
+
### Error Sample A
59
57
60
58
```bash
61
59
1. Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that
@@ -68,23 +66,23 @@ ext {
68
66
of at least 33, for example 34.
69
67
```
70
68
71
-
####Error Solution A
69
+
### Error Solution A
72
70
73
71
This one is a bit more self explanatory since the error includes a recommended action. Just targeting higher sdk version would resolve this one.
74
72
75
-
####Error Sample B
73
+
### Error Sample B
76
74
77
75
```bash
78
76
platforms/android/app/build.gradle' line: 574
79
77
A problem occurred configuring project ':app'.
80
78
Could not find androidx.dynamicanimation:dynamicanimation:1.1.2
81
79
```
82
80
83
-
#### Error Solution B
81
+
### Error Solution B
84
82
85
83
This is often a misspelled plugin name or invalid version. In this particular error, it's that 1.1.2 of that library does not exist; it's actually `1.1.0-alpha03` for example.
86
84
87
-
## iOS
85
+
# iOS
88
86
89
87
The [@nativescript/ios](https://github.com/NativeScript/ios) dependency is good to keep your project up to date with as it often contains system level updates and requirements.
90
88
@@ -122,9 +120,9 @@ end
122
120
123
121
It's generally a good practice to have these match.
124
122
125
-
### iOS Version Errors with Solutions
123
+
## iOS Version Errors with Solutions
126
124
127
-
#### Error Sample A
125
+
### Error Sample A
128
126
129
127
```
130
128
node_modules/@nativescript/swift-ui/platforms/ios/src/Common/View+Modifiers.swift:874:49: error: 'accessibilitySortPriority' is only available in iOS 14.0 or newer
@@ -167,6 +165,6 @@ var body: some View {
167
165
}
168
166
```
169
167
170
-
## Other Considerations
168
+
# Other Considerations
171
169
172
170
It's common for[NativeScript plugins](https://docs.nativescript.org/plugins/) that your project may depend on to include a `platforms/{ios|android}` folder which merge various platform dependenciesin with your project. These will often include Cocoapods, gradle plugins, or just platform specific code. It's possible these plugins may specify SDK's which need an update from time to time to match the store requirements mentioned above. You can contact plugin authors or become involved in open source yourself by helping keep your plugins up to date.
0 commit comments