diff --git a/templates/android.js b/templates/android.js index 40b32385..d0f3d0d6 100644 --- a/templates/android.js +++ b/templates/android.js @@ -1,6 +1,6 @@ module.exports = platform => [{ name: () => `${platform}/build.gradle`, - content: ({ packageIdentifier }) => `// ${platform}/build.gradle + content: () => `// ${platform}/build.gradle // based on: // @@ -84,7 +84,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = "${packageIdentifier}" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/templates/general.js b/templates/general.js index 871cddff..f039f399 100644 --- a/templates/general.js +++ b/templates/general.js @@ -21,7 +21,7 @@ ${objectClassName}; `, }, { name: () => 'package.json', - content: ({ moduleName, platforms, githubAccount, authorName, authorEmail, license }) => { + content: ({ moduleName, packageIdentifier, platforms, githubAccount, authorName, authorEmail, license }) => { const files = `[ "README.md",` + @@ -70,6 +70,7 @@ ${objectClassName}; "license": "${license}", "licenseFilename": "LICENSE", "readmeFilename": "README.md", + "androidPackageIdentifier": "${packageIdentifier}", "peerDependencies": ${peerDependencies}, "devDependencies": ${devDependencies} } diff --git a/tests/integration/cli/create/view/__snapshots__/cli-create-with-view.test.js.snap b/tests/integration/cli/create/view/__snapshots__/cli-create-with-view.test.js.snap index 74629ee9..fcf72e73 100644 --- a/tests/integration/cli/create/view/__snapshots__/cli-create-with-view.test.js.snap +++ b/tests/integration/cli/create/view/__snapshots__/cli-create-with-view.test.js.snap @@ -173,7 +173,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl @@ -675,6 +675,7 @@ RCT_EXPORT_MODULE() \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/integration/cli/create/with-defaults/__snapshots__/cli-create-with-defaults.test.js.snap b/tests/integration/cli/create/with-defaults/__snapshots__/cli-create-with-defaults.test.js.snap index 7e93bcaa..fcaa4aec 100644 --- a/tests/integration/cli/create/with-defaults/__snapshots__/cli-create-with-defaults.test.js.snap +++ b/tests/integration/cli/create/with-defaults/__snapshots__/cli-create-with-defaults.test.js.snap @@ -173,7 +173,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl @@ -670,6 +670,7 @@ RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnu \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-injection/create/view/with-defaults/__snapshots__/create-view-with-defaults.test.js.snap b/tests/with-injection/create/view/with-defaults/__snapshots__/create-view-with-defaults.test.js.snap index 6d297930..ff6eb14d 100644 --- a/tests/with-injection/create/view/with-defaults/__snapshots__/create-view-with-defaults.test.js.snap +++ b/tests/with-injection/create/view/with-defaults/__snapshots__/create-view-with-defaults.test.js.snap @@ -89,6 +89,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -247,7 +248,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/view/with-example/with-defaults/__snapshots__/create-view-with-example-with-defaults.test.js.snap b/tests/with-injection/create/view/with-example/with-defaults/__snapshots__/create-view-with-example-with-defaults.test.js.snap index 8567346b..8cd56210 100644 --- a/tests/with-injection/create/view/with-example/with-defaults/__snapshots__/create-view-with-example-with-defaults.test.js.snap +++ b/tests/with-injection/create/view/with-example/with-defaults/__snapshots__/create-view-with-example-with-defaults.test.js.snap @@ -93,6 +93,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -251,7 +252,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/view/with-example/with-options/__snapshots__/create-view-with-example-with-options.test.js.snap b/tests/with-injection/create/view/with-example/with-options/__snapshots__/create-view-with-example-with-options.test.js.snap index 53626e8d..9b1960f1 100644 --- a/tests/with-injection/create/view/with-example/with-options/__snapshots__/create-view-with-example-with-options.test.js.snap +++ b/tests/with-injection/create/view/with-example/with-options/__snapshots__/create-view-with-example-with-options.test.js.snap @@ -93,6 +93,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -251,7 +252,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/view/with-options/for-android/__snapshots__/lib-view-android-config-options.test.js.snap b/tests/with-injection/create/view/with-options/for-android/__snapshots__/lib-view-android-config-options.test.js.snap index 2083bf2a..ecf8998e 100644 --- a/tests/with-injection/create/view/with-options/for-android/__snapshots__/lib-view-android-config-options.test.js.snap +++ b/tests/with-injection/create/view/with-options/for-android/__snapshots__/lib-view-android-config-options.test.js.snap @@ -77,6 +77,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -215,7 +216,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/view/with-options/for-ios/__snapshots__/create-view-with-options-for-ios.test.js.snap b/tests/with-injection/create/view/with-options/for-ios/__snapshots__/create-view-with-options-for-ios.test.js.snap index 44329beb..616773e6 100644 --- a/tests/with-injection/create/view/with-options/for-ios/__snapshots__/create-view-with-options-for-ios.test.js.snap +++ b/tests/with-injection/create/view/with-options/for-ios/__snapshots__/create-view-with-options-for-ios.test.js.snap @@ -78,6 +78,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-injection/create/with-defaults/__snapshots__/create-with-defaults.test.js.snap b/tests/with-injection/create/with-defaults/__snapshots__/create-with-defaults.test.js.snap index 4324127d..3a57ec93 100644 --- a/tests/with-injection/create/with-defaults/__snapshots__/create-with-defaults.test.js.snap +++ b/tests/with-injection/create/with-defaults/__snapshots__/create-with-defaults.test.js.snap @@ -89,6 +89,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -247,7 +248,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-defaults/bogus-platforms/bogus-name/__snapshots__/bogus-platforms-name.test.js.snap b/tests/with-injection/create/with-defaults/bogus-platforms/bogus-name/__snapshots__/bogus-platforms-name.test.js.snap index 6879cf40..7a4a5ea4 100644 --- a/tests/with-injection/create/with-defaults/bogus-platforms/bogus-name/__snapshots__/bogus-platforms-name.test.js.snap +++ b/tests/with-injection/create/with-defaults/bogus-platforms/bogus-name/__snapshots__/bogus-platforms-name.test.js.snap @@ -66,6 +66,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-injection/create/with-defaults/bogus-platforms/empty-array/__snapshots__/bogus-platforms-empty-array.test.js.snap b/tests/with-injection/create/with-defaults/bogus-platforms/empty-array/__snapshots__/bogus-platforms-empty-array.test.js.snap index 2be4414b..e3f5b10f 100644 --- a/tests/with-injection/create/with-defaults/bogus-platforms/empty-array/__snapshots__/bogus-platforms-empty-array.test.js.snap +++ b/tests/with-injection/create/with-defaults/bogus-platforms/empty-array/__snapshots__/bogus-platforms-empty-array.test.js.snap @@ -66,6 +66,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-injection/create/with-defaults/bogus-platforms/empty-string/__snapshots__/bogus-platforms-empty-string.test.js.snap b/tests/with-injection/create/with-defaults/bogus-platforms/empty-string/__snapshots__/bogus-platforms-empty-string.test.js.snap index 70b1d08c..82e8403d 100644 --- a/tests/with-injection/create/with-defaults/bogus-platforms/empty-string/__snapshots__/bogus-platforms-empty-string.test.js.snap +++ b/tests/with-injection/create/with-defaults/bogus-platforms/empty-string/__snapshots__/bogus-platforms-empty-string.test.js.snap @@ -66,6 +66,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-injection/create/with-example/for-android-only/__snapshots__/create-with-example-for-android-only.test.js.snap b/tests/with-injection/create/with-example/for-android-only/__snapshots__/create-with-example-for-android-only.test.js.snap index 21959200..73d864d0 100644 --- a/tests/with-injection/create/with-example/for-android-only/__snapshots__/create-with-example-for-android-only.test.js.snap +++ b/tests/with-injection/create/with-example/for-android-only/__snapshots__/create-with-example-for-android-only.test.js.snap @@ -81,6 +81,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -219,7 +220,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-example/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap b/tests/with-injection/create/with-example/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap index 2b096a82..4bd497f9 100644 --- a/tests/with-injection/create/with-example/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap +++ b/tests/with-injection/create/with-example/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap @@ -93,6 +93,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -251,7 +252,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-example/with-missing-package-scripts/__snapshots__/recover-from-missing-package-scripts.test.js.snap b/tests/with-injection/create/with-example/with-missing-package-scripts/__snapshots__/recover-from-missing-package-scripts.test.js.snap index e8c18c27..96e22e93 100644 --- a/tests/with-injection/create/with-example/with-missing-package-scripts/__snapshots__/recover-from-missing-package-scripts.test.js.snap +++ b/tests/with-injection/create/with-example/with-missing-package-scripts/__snapshots__/recover-from-missing-package-scripts.test.js.snap @@ -93,6 +93,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -251,7 +252,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-example/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-null-prefix.test.js.snap b/tests/with-injection/create/with-example/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-null-prefix.test.js.snap index cccbd568..2dd5fe17 100644 --- a/tests/with-injection/create/with-example/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-null-prefix.test.js.snap +++ b/tests/with-injection/create/with-example/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-null-prefix.test.js.snap @@ -93,6 +93,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -251,7 +252,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-example/with-options/__snapshots__/create-with-example-with-options.test.js.snap b/tests/with-injection/create/with-example/with-options/__snapshots__/create-with-example-with-options.test.js.snap index 470e743c..b145a02d 100644 --- a/tests/with-injection/create/with-example/with-options/__snapshots__/create-with-example-with-options.test.js.snap +++ b/tests/with-injection/create/with-example/with-options/__snapshots__/create-with-example-with-options.test.js.snap @@ -93,6 +93,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -251,7 +252,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-name-in-camel-case/__snapshots__/create-with-name-in-camel-case.test.js.snap b/tests/with-injection/create/with-name-in-camel-case/__snapshots__/create-with-name-in-camel-case.test.js.snap index 33790b81..51275a02 100644 --- a/tests/with-injection/create/with-name-in-camel-case/__snapshots__/create-with-name-in-camel-case.test.js.snap +++ b/tests/with-injection/create/with-name-in-camel-case/__snapshots__/create-with-name-in-camel-case.test.js.snap @@ -89,6 +89,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -247,7 +248,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-options/for-android/__snapshots__/create-with-options-for-android.test.js.snap b/tests/with-injection/create/with-options/for-android/__snapshots__/create-with-options-for-android.test.js.snap index 742f93dd..14ddb9ac 100644 --- a/tests/with-injection/create/with-options/for-android/__snapshots__/create-with-options-for-android.test.js.snap +++ b/tests/with-injection/create/with-options/for-android/__snapshots__/create-with-options-for-android.test.js.snap @@ -77,6 +77,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.alicebits\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -215,7 +216,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.alicebits\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-options/for-ios/__snapshots__/create-with-options-for-ios.test.js.snap b/tests/with-injection/create/with-options/for-ios/__snapshots__/create-with-options-for-ios.test.js.snap index 8263c921..c92541aa 100644 --- a/tests/with-injection/create/with-options/for-ios/__snapshots__/create-with-options-for-ios.test.js.snap +++ b/tests/with-injection/create/with-options/for-ios/__snapshots__/create-with-options-for-ios.test.js.snap @@ -78,6 +78,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-injection/create/with-options/platforms-array/__snapshots__/platforms-array.test.js.snap b/tests/with-injection/create/with-options/platforms-array/__snapshots__/platforms-array.test.js.snap index df7addb7..58f92b44 100644 --- a/tests/with-injection/create/with-options/platforms-array/__snapshots__/platforms-array.test.js.snap +++ b/tests/with-injection/create/with-options/platforms-array/__snapshots__/platforms-array.test.js.snap @@ -89,6 +89,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -247,7 +248,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-options/platforms-comma-separated/__snapshots__/platforms-comma-separated.test.js.snap b/tests/with-injection/create/with-options/platforms-comma-separated/__snapshots__/platforms-comma-separated.test.js.snap index 28c21a9b..cd5ca8bd 100644 --- a/tests/with-injection/create/with-options/platforms-comma-separated/__snapshots__/platforms-comma-separated.test.js.snap +++ b/tests/with-injection/create/with-options/platforms-comma-separated/__snapshots__/platforms-comma-separated.test.js.snap @@ -89,6 +89,7 @@ content: \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -247,7 +248,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-options/with-custom-module-prefix/__snapshots__/create-with-custom-module-prefix.test.js.snap b/tests/with-injection/create/with-options/with-custom-module-prefix/__snapshots__/create-with-custom-module-prefix.test.js.snap index 9a908323..034ac341 100644 --- a/tests/with-injection/create/with-options/with-custom-module-prefix/__snapshots__/create-with-custom-module-prefix.test.js.snap +++ b/tests/with-injection/create/with-options/with-custom-module-prefix/__snapshots__/create-with-custom-module-prefix.test.js.snap @@ -89,6 +89,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -247,7 +248,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-injection/create/with-options/with-module-name/__snapshots__/create-with-module-name.test.js.snap b/tests/with-injection/create/with-options/with-module-name/__snapshots__/create-with-module-name.test.js.snap index 131a2139..3ea34cb4 100644 --- a/tests/with-injection/create/with-options/with-module-name/__snapshots__/create-with-module-name.test.js.snap +++ b/tests/with-injection/create/with-options/with-module-name/__snapshots__/create-with-module-name.test.js.snap @@ -89,6 +89,7 @@ content: \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -247,7 +248,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap index 736d6613..b0324829 100644 --- a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap +++ b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap @@ -101,6 +101,7 @@ AliceBobbi; \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap index 348df1db..82c73899 100644 --- a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap +++ b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap @@ -101,6 +101,7 @@ AliceBobbi; \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" diff --git a/tests/with-mocks/cli/command/action-func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap b/tests/with-mocks/cli/command/action-func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap index 6a50c2cd..919400e6 100644 --- a/tests/with-mocks/cli/command/action-func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap +++ b/tests/with-mocks/cli/command/action-func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap @@ -101,6 +101,7 @@ AliceBobbi; \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -253,7 +254,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-mocks/cli/program/with-defaults/for-android/__snapshots__/cli-program-with-defaults-for-android.test.js.snap b/tests/with-mocks/cli/program/with-defaults/for-android/__snapshots__/cli-program-with-defaults-for-android.test.js.snap index 5f8121b6..b8e7ebd0 100644 --- a/tests/with-mocks/cli/program/with-defaults/for-android/__snapshots__/cli-program-with-defaults-for-android.test.js.snap +++ b/tests/with-mocks/cli/program/with-defaults/for-android/__snapshots__/cli-program-with-defaults-for-android.test.js.snap @@ -298,6 +298,7 @@ TestPackage; \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -430,7 +431,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap b/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap index 1fa10581..9aef65f6 100644 --- a/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap +++ b/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap @@ -172,6 +172,7 @@ AliceBobbi; \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -324,7 +325,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap b/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap index 9519e7e5..9254d142 100644 --- a/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap +++ b/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap @@ -172,6 +172,7 @@ AliceBobbi; \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -324,7 +325,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-mocks/lib/create/with-example/with-logging/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-options.test.js.snap b/tests/with-mocks/lib/create/with-example/with-logging/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-options.test.js.snap index a1bc2654..dcd3c85a 100644 --- a/tests/with-mocks/lib/create/with-example/with-logging/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-options.test.js.snap +++ b/tests/with-mocks/lib/create/with-example/with-logging/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-options.test.js.snap @@ -172,6 +172,7 @@ AliceBobbi; \\"license\\": \\"MIT\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.reactlibrary\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -324,7 +325,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.reactlibrary\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl diff --git a/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap b/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap index e75b8bbc..d19c7350 100644 --- a/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap +++ b/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap @@ -166,6 +166,7 @@ ABCAliceBobbi; \\"license\\": \\"ISC\\", \\"licenseFilename\\": \\"LICENSE\\", \\"readmeFilename\\": \\"README.md\\", + \\"androidPackageIdentifier\\": \\"com.alicebits\\", \\"peerDependencies\\": { \\"react\\": \\"^16.8.1\\", \\"react-native\\": \\">=0.60.0-rc.0 <1.0.x\\" @@ -318,7 +319,7 @@ def configureReactNativePom(def pom) { name packageJson.title artifactId packageJson.name version = packageJson.version - group = \\"com.alicebits\\" + group = packageJson.androidPackageIdentifier description packageJson.description url packageJson.repository.baseUrl