diff --git a/templates/ios.js b/templates/ios.js index 5b28099f..2c0bef5b 100644 --- a/templates/ios.js +++ b/templates/ios.js @@ -1,6 +1,6 @@ module.exports = platform => [{ name: ({ moduleName }) => `${moduleName}.podspec`, - content: ({ moduleName, tvosEnabled, githubAccount, authorName, authorEmail, useAppleNetworking }) => `require "json" + content: ({ moduleName, tvosEnabled, githubAccount, authorName, authorEmail, license, useAppleNetworking }) => `require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) @@ -12,8 +12,8 @@ Pod::Spec.new do |s| ${moduleName} DESC s.homepage = "https://github.com/${githubAccount}/${moduleName}" - s.license = "MIT" - # s.license = { :type => "MIT", :file => "FILE_LICENSE" } + s.license = "${license}" + # s.license = { :type => "${license}", :file => "FILE_LICENSE" } s.authors = { "${authorName}" => "${authorEmail}" } s.platforms = { :ios => "9.0"${tvosEnabled ? `, :tvos => "10.0"` : ``} } s.source = { :git => "https://github.com/${githubAccount}/${moduleName}.git", :tag => "#{s.version}" } 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 72ffcf8c..3137f7a6 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 @@ -436,8 +436,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" } 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 83884a6c..0f6184d1 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 @@ -162,8 +162,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" } 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 134afc50..2ff39152 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 @@ -437,8 +437,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" } 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 4fea945c..06990c5a 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 @@ -162,8 +162,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" } 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 ec2850be..ad36f0b1 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 @@ -432,8 +432,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" } 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 6187f3a3..6de2c091 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 @@ -432,8 +432,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" } diff --git a/tests/with-mocks/cli/command/func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap b/tests/with-mocks/cli/command/func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap index 78e67bd5..c8d219f7 100644 --- a/tests/with-mocks/cli/command/func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap +++ b/tests/with-mocks/cli/command/func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap @@ -426,8 +426,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" } 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 b9562839..beb90a54 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 @@ -487,8 +487,8 @@ Pod::Spec.new do |s| react-native-alice-bobbi DESC s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\" - s.license = \\"MIT\\" - # s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" } + s.license = \\"ISC\\" + # s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" } s.authors = { \\"Alice\\" => \\"contact@alice.me\\" } s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" } s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }