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
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,11 +36,11 @@ android {
36
36
Every year, platforms often bump minimum requirements for public store deployments to be accepted which can often be seen [here for Google](https://developer.android.com/google/play/requirements/target-sdk). For example, it may be stated like this:
37
37
38
38
> New apps and app updates must target Android 14 (API level 34) or higher to be submitted to Google Play; except for Wear OS and Android TV apps, which must target Android 13 (API level 33) or higher.
39
-
Existing apps must target Android 13 (API level 33) or higher to remain available to new users on devices running Android OS higher than your app's target API level.
39
+
> Existing apps must target Android 13 (API level 33) or higher to remain available to new users on devices running Android OS higher than your app's target API level.
40
40
41
-
It's good to refer to these platform docs from time to time (*email notifications are also often sent to Play Store accounts on these evolving requirements*) to ensure your app's targets keep up with store requirements.
41
+
It's good to refer to these platform docs from time to time (_email notifications are also often sent to Play Store accounts on these evolving requirements_) to ensure your app's targets keep up with store requirements.
42
42
43
-
2.`before-plugins.gradle`: (*optional*) Some plugins may fallback to gradle configured versions which you can define here to also help align with app build configuration targets.
43
+
2.`before-plugins.gradle`: (_optional_) Some plugins may fallback to gradle configured versions which you can define here to also help align with app build configuration targets.
44
44
45
45
We can specify additional gradle versions as follows:
46
46
@@ -90,7 +90,7 @@ The [@nativescript/ios](https://github.com/NativeScript/ios) dependency is good
90
90
91
91
Beyond that, there are 2 key iOS files in your project to keep an eye on with platform versioning over time:
92
92
93
-
- `App_Resources/iOS/build.xcconfig`: Sets minimum iOS deployment version
93
+
- `App_Resources/iOS/build.xcconfig`: Sets minimum iOS deployment version
94
94
95
95
We can specify the minimum target as follows:
96
96
@@ -102,9 +102,9 @@ Every year, platforms often bump minimum requirements for public store deploymen
102
102
103
103
> All iOS and iPadOS apps uploaded to App Store Connect must be built with a minimum of Xcode 15 and the iOS 17 SDK. Starting April 2025, all iOS and iPadOS apps uploaded to App Store Connect must be built with the iOS 18 SDK.
104
104
105
-
It's good to refer to these platform docs from time to time (*email notifications are also often sent to App Store accounts on these evolving requirements*) to ensure your app's targets keep up with store requirements.
105
+
It's good to refer to these platform docs from time to time (_email notifications are also often sent to App Store accounts on these evolving requirements_) to ensure your app's targets keep up with store requirements.
106
106
107
-
- `App_Resources/iOS/Podfile`: (*optional*) If your project brings in plugins that involve [Cocoapods](https://cocoapods.org/) it's a good idea to have one of these. It can help align platform version minimums to match your build.xcconfig.
107
+
- `App_Resources/iOS/Podfile`: (_optional_) If your project brings in plugins that involve [Cocoapods](https://cocoapods.org/) it's a good idea to have one of these. It can help align platform version minimums to match your build.xcconfig.
108
108
109
109
We can make our `Podfile` match our build.xcconfig target versions as follows:
@@ -152,7 +152,7 @@ A. Set an `IPHONEOS_DEPLOYMENT_TARGET` in your `App_Resource/iOS/build.xcconfig`
152
152
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
153
153
```
154
154
155
-
B. Make a change to source code to properly wrap the implementations with [availability](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/statements/#Availability-Condition) decorators to ensure that platform version specific code does not cause an issue if your app is run on an older devicie. You can use [patch-package](https://www.npmjs.com/package/patch-package) to create the diff to manage custom source code changes made to plugins.
155
+
B. Make a change to source code to properly wrap the implementations with [availability](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/statements/#Availability-Condition) decorators to ensure that platform version specific code does not cause an issue if your app is run on an older devicie. You can use [patch-package](https://www.npmjs.com/package/patch-package) to create the diff to manage custom source code changes made to plugins.
156
156
157
157
```
158
158
var body: some View {
@@ -161,7 +161,7 @@ var body: some View {
161
161
// ... something only available on iOS 17 or newer
0 commit comments