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
This chapter covers how to perform a variety of common development tasks across platforms with Skip.
8
10
9
11
## Configuration with `Skip.env`
@@ -12,6 +14,37 @@ Skip app customization should be primarily done by directly editing the included
12
14
13
15
---
14
16
17
+
## Customizing Module Package Name {#package-name}
18
+
19
+
20
+
By default, Skip generates a Java/Kotlin package name for your module based on its Swift name, by simply de-camel-casing and dot-separating the module name (e.g. `MyAppModule` becomes `my.app.module`). You may want to customize this package name if you need to match a specific naming convention or when integrating with third-party Android libraries that expect a particular package structure.
21
+
22
+
You can customize this package name by editing the module's `Skip/skip.yml` file and adding a `package` property under the `skip` group. You must also update your project's `Skip.env` file to specify the new package name in the `ANDROID_PACKAGE_NAME` variable. This ensures that the generated `AndroidManifest.xml` and other project metadata correctly reference your new package.
// the Kotlin Main.kt entry point to the Android app
41
+
packagemy.custom.package.name
42
+
```
43
+
</TabItem>
44
+
</Tabs>
45
+
46
+
---
47
+
15
48
## Localization
16
49
17
50
Localizing your app into multiple languages gives it the maximum possible reach. Localization is a critical part of making your app accessible to users all around the world. Skip helps unlock the promise of true universality for your app by bringing SwiftUI to Android, but the other half of the equation is ensuring that your users can understand the content of your app.
@@ -63,40 +96,6 @@ The result is that by updating this single file, you can localize your app into
The Skip plugin handles the `.xcstrings` localization format, which is used by Xcode 15 as a single source of truth for the app's localization. The default project created by `skip init --appid=… hello-skip HelloSkip` will create a `Sources/HelloSkip/Resources/Localizable.xcstrings` file which can be used as a starting point for adding new languages and string translations to your project.
Copy file name to clipboardExpand all lines: src/content/docs/docs/faq.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,9 @@ Swift dependencies are added by editing the `Package.swift` to add dependent pac
166
166
The Xcode "Add Package Dependencies…" menu should *not* be used to add Swift dependencies, as it will not update the `Package.swift` file that Skip needs to build the dependencies for Android. Dependencies must be added directly to the `Package.swift` file.
167
167
:::
168
168
169
+
### How do I change the Java/Kotlin package name for my app or module? {#package-name}
170
+
171
+
The Java/Kotlin package name can be customized by adding a `package: 'my.module.name'` property to the `skip` group in your module's `Skip/skip.yml` file. See the [Customizing Module Package Name](/docs/development-topics/#package-name) documentation for more details and important instructions for top-level application modules.
0 commit comments