diff --git a/README.md b/README.md index 00547fb6..12c65169 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Options: --prefix The prefix for the library module (Default: ``) --module-name The module library package name to be used in package.json. Default: react-native-(name in param-case) --module-prefix The module prefix for the library module, ignored if --module-name is specified (Default: `react-native`) - --package-identifier (Android only!) The package name for the Android module (Default: `com.reactlibrary`) + --package-identifier [Android] The Java package identifier used by the Android module (Default: `com.reactlibrary`) --platforms Platforms the library module will be created for - comma separated (Default: `ios,android`) --github-account The github account where the library module is hosted (Default: `github_account`) --author-name The author's name (Default: `Your Name`) @@ -129,7 +129,7 @@ createLibraryModule({ moduleName: String, /* The module library package name to be used in package.json. Default: react-native-(name in param-case) */ modulePrefix: String, /* The module prefix for the library, ignored if moduleName is specified (Default: react-native) */ platforms: Array | String, /* Platforms the library will be created for. (Default: ['android', 'ios']) */ - packageIdentifier: String, /* (Android only!) The package name for the Android module (Default: com.reactlibrary) */ + packageIdentifier: String, /* [Android] The Java package identifier used by the Android module (Default: com.reactlibrary) */ githubAccount: String, /* The github account where the library is hosted (Default: `github_account`) */ authorName: String, /* The author's name (Default: `Your Name`) */ authorEmail: String, /* The author's email (Default: `yourname@email.com`) */ diff --git a/lib/cli-command.js b/lib/cli-command.js index 17541845..11ec020b 100644 --- a/lib/cli-command.js +++ b/lib/cli-command.js @@ -69,7 +69,7 @@ ${postCreateInstructions(createOptions)}`); default: 'react-native', }, { command: '--package-identifier [packageIdentifier]', - description: '(Android only!) The package name for the Android module', + description: '[Android] The Java package identifier used by the Android module', default: 'com.reactlibrary', }, { command: '--platforms ', diff --git a/tests/integration/cli/help/__snapshots__/cli-help.test.js.snap b/tests/integration/cli/help/__snapshots__/cli-help.test.js.snap index 06a5a5ae..3e9737e8 100644 --- a/tests/integration/cli/help/__snapshots__/cli-help.test.js.snap +++ b/tests/integration/cli/help/__snapshots__/cli-help.test.js.snap @@ -10,7 +10,7 @@ Options: --prefix [prefix] The prefix for the library module (default: \\"\\") --module-name [moduleName] The module library package name to be used in package.json. Default: react-native-(name in param-case) --module-prefix [modulePrefix] The module prefix for the library module, ignored if --module-name is specified (default: \\"react-native\\") - --package-identifier [packageIdentifier] (Android only!) The package name for the Android module (default: \\"com.reactlibrary\\") + --package-identifier [packageIdentifier] [Android] The Java package identifier used by the Android module (default: \\"com.reactlibrary\\") --platforms Platforms the library module will be created for - comma separated (default: \\"ios,android\\") --github-account [githubAccount] The github account where the library module is hosted (default: \\"github_account\\") --author-name [authorName] The author's name (default: \\"Your Name\\") diff --git a/tests/integration/cli/noargs/__snapshots__/cli-noargs.test.js.snap b/tests/integration/cli/noargs/__snapshots__/cli-noargs.test.js.snap index ea9d7660..0a387b94 100644 --- a/tests/integration/cli/noargs/__snapshots__/cli-noargs.test.js.snap +++ b/tests/integration/cli/noargs/__snapshots__/cli-noargs.test.js.snap @@ -10,7 +10,7 @@ Options: --prefix [prefix] The prefix for the library module (default: \\"\\") --module-name [moduleName] The module library package name to be used in package.json. Default: react-native-(name in param-case) --module-prefix [modulePrefix] The module prefix for the library module, ignored if --module-name is specified (default: \\"react-native\\") - --package-identifier [packageIdentifier] (Android only!) The package name for the Android module (default: \\"com.reactlibrary\\") + --package-identifier [packageIdentifier] [Android] The Java package identifier used by the Android module (default: \\"com.reactlibrary\\") --platforms Platforms the library module will be created for - comma separated (default: \\"ios,android\\") --github-account [githubAccount] The github account where the library module is hosted (default: \\"github_account\\") --author-name [authorName] The author's name (default: \\"Your Name\\") diff --git a/tests/with-injection/cli/command/object/__snapshots__/lib-cli-command-object-text.test.js.snap b/tests/with-injection/cli/command/object/__snapshots__/lib-cli-command-object-text.test.js.snap index d193079f..2e9280b6 100644 --- a/tests/with-injection/cli/command/object/__snapshots__/lib-cli-command-object-text.test.js.snap +++ b/tests/with-injection/cli/command/object/__snapshots__/lib-cli-command-object-text.test.js.snap @@ -23,7 +23,7 @@ Object { Object { "command": "--package-identifier [packageIdentifier]", "default": "com.reactlibrary", - "description": "(Android only!) The package name for the Android module", + "description": "[Android] The Java package identifier used by the Android module", }, Object { "command": "--platforms ", 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 e3c3d17e..2ba972eb 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 @@ -53,7 +53,7 @@ Array [ "option": Object { "args": Array [ "--package-identifier [packageIdentifier]", - "(Android only!) The package name for the Android module", + "[Android] The Java package identifier used by the Android module", [Function], "com.reactlibrary", ], diff --git a/tests/with-mocks/cli/program/with-missing-args/__snapshots__/cli-program-with-missing-args.test.js.snap b/tests/with-mocks/cli/program/with-missing-args/__snapshots__/cli-program-with-missing-args.test.js.snap index 35fba4c1..daa8c7ae 100644 --- a/tests/with-mocks/cli/program/with-missing-args/__snapshots__/cli-program-with-missing-args.test.js.snap +++ b/tests/with-mocks/cli/program/with-missing-args/__snapshots__/cli-program-with-missing-args.test.js.snap @@ -51,7 +51,7 @@ Array [ "option": Object { "args": Array [ "--package-identifier [packageIdentifier]", - "(Android only!) The package name for the Android module", + "[Android] The Java package identifier used by the Android module", [Function], "com.reactlibrary", ],