create-nativue 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -9,7 +9,8 @@ import { parseArgs } from 'node:util'
9
9
 
10
10
  const TEMPLATE_DIRECTORY = fileURLToPath(new URL('./template', import.meta.url))
11
11
  const TEXT_FILE = /(\.(json|vue|ts|plist|pbxproj|resolved|swift|kt|kts|xml)|gitignore)$/
12
- const BUNDLE_ID = /^[a-zA-Z][a-zA-Z0-9-]*(\.[a-zA-Z][a-zA-Z0-9-]*)+$/
12
+ // Also the Android package and applicationId, which can't have hyphens.
13
+ const BUNDLE_ID = /^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z][a-zA-Z0-9_]*)+$/
13
14
  const { version } = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
14
15
 
15
16
  async function askProjectName() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nativue",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Creates a Nativue app: npm create nativue@latest my-app",
5
5
  "keywords": [
6
6
  "vue",
@@ -7,7 +7,7 @@
7
7
 
8
8
  <activity
9
9
  android:name=".MainActivity"
10
- android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden|uiMode|density"
10
+ android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|uiMode|fontScale|locale|layoutDirection"
11
11
  android:exported="true"
12
12
  android:launchMode="singleTask"
13
13
  android:windowSoftInputMode="adjustResize">