Skip to content

Commit 4ac2355

Browse files
committed
fix: lint
1 parent 70d26ea commit 4ac2355

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

content/guide/extending-classes-and-implementing-interfaces-android.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,9 @@ const webpack = require('@nativescript/webpack')
494494

495495
module.exports = (env) => {
496496
webpack.init(env)
497-
env.appComponents = (env.appComponents || []).concat(['./src/activity.android'])
498-
497+
env.appComponents = (env.appComponents || []).concat([
498+
'./src/activity.android',
499+
])
499500

500501
return webpack.resolveConfig()
501502
}

content/guide/platform-version-handling.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ android {
3636
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:
3737

3838
> 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.
4040
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.
4242

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.
4444

4545
We can specify additional gradle versions as follows:
4646

@@ -90,7 +90,7 @@ The [@nativescript/ios](https://github.com/NativeScript/ios) dependency is good
9090
9191
Beyond that, there are 2 key iOS files in your project to keep an eye on with platform versioning over time:
9292
93-
- `App_Resources/iOS/build.xcconfig`: Sets minimum iOS deployment version
93+
- `App_Resources/iOS/build.xcconfig`: Sets minimum iOS deployment version
9494
9595
We can specify the minimum target as follows:
9696
@@ -102,9 +102,9 @@ Every year, platforms often bump minimum requirements for public store deploymen
102102
103103
> 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.
104104
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.
106106
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.
108108

109109
We can make our `Podfile` match our build.xcconfig target versions as follows:
110110

@@ -116,7 +116,7 @@ post_install do |installer|
116116
target.build_configurations.each do |config|
117117
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '17.0'
118118
end
119-
end
119+
end
120120
end
121121
```
122122

@@ -152,7 +152,7 @@ A. Set an `IPHONEOS_DEPLOYMENT_TARGET` in your `App_Resource/iOS/build.xcconfig`
152152
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
153153
```
154154
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.
156156
157157
```
158158
var body: some View {
@@ -161,7 +161,7 @@ var body: some View {
161161
// ... something only available on iOS 17 or newer
162162
}
163163
} else {
164-
// fallback
164+
// fallback
165165
EmptyView()
166166
}
167167
}

0 commit comments

Comments
 (0)