Skip to content

Commit a72a4c3

Browse files
committed
fix: platform version headers
1 parent 4ac2355 commit a72a4c3

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

content/guide/platform-version-handling.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ There are several key things to understand about platform version handling withi
66

77
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.
88

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**?
1010

11-
# How to manage platform versions
12-
13-
## Android
11+
# Android
1412

1513
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.
1614

@@ -53,9 +51,9 @@ ext {
5351
}
5452
```
5553

56-
### Android Version Errors with Solutions
54+
## Android Version Errors with Solutions
5755

58-
#### Error Sample A
56+
### Error Sample A
5957

6058
```bash
6159
1. Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that
@@ -68,23 +66,23 @@ ext {
6866
of at least 33, for example 34.
6967
```
7068

71-
#### Error Solution A
69+
### Error Solution A
7270

7371
This one is a bit more self explanatory since the error includes a recommended action. Just targeting higher sdk version would resolve this one.
7472

75-
#### Error Sample B
73+
### Error Sample B
7674

7775
```bash
7876
platforms/android/app/build.gradle' line: 574
7977
A problem occurred configuring project ':app'.
8078
Could not find androidx.dynamicanimation:dynamicanimation:1.1.2
8179
```
8280
83-
#### Error Solution B
81+
### Error Solution B
8482
8583
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.
8684
87-
## iOS
85+
# iOS
8886
8987
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.
9088
@@ -122,9 +120,9 @@ end
122120

123121
It's generally a good practice to have these match.
124122
125-
### iOS Version Errors with Solutions
123+
## iOS Version Errors with Solutions
126124
127-
#### Error Sample A
125+
### Error Sample A
128126
129127
```
130128
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 {
167165
}
168166
```
169167
170-
## Other Considerations
168+
# Other Considerations
171169
172170
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 dependencies in 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

Comments
 (0)