Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update the application ID? #33

Open
xulihang opened this issue Jan 3, 2023 · 1 comment
Open

How to update the application ID? #33

xulihang opened this issue Jan 3, 2023 · 1 comment

Comments

@xulihang
Copy link

xulihang commented Jan 3, 2023

I tried modifyingapps\demo\nativescript.config.ts like the following which works for iOS. But it does not work for Android.

import { NativeScriptConfig } from '@nativescript/core';

export default {
-	id: 'org.nativescript.plugindemo',
+	id: 'com.xulihang.nativescript',
	appResourcesPath: '../../tools/assets/App_Resources',
	android: {
		v8Flags: '--expose_gc',
		markingMode: 'none',
	},
	appPath: 'src',
  cli: {
    packageManager: 'npm'
  }
} as NativeScriptConfig;
@insytes
Copy link

insytes commented May 28, 2023

@xulihang You set the bundle ID in package.json

We read this value in our nativesceript.config.ts

Of course, these are just demo apps and this configuration is from an actual project so you will need to amend the paths to suit your demos.

import { NativeScriptConfig } from '@nativescript/core';
import { readFileSync } from 'fs';

const { name } = JSON.parse(readFileSync('./package.json', 'utf-8'));

export default {
  name,
  id: name,
  appResourcesPath: 'App_Resources',
  android: {
    v8Flags: '--expose_gc',
    markingMode: 'none'
  },
  useLegacyWorkflow: true,
} as NativeScriptConfig;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants