Skip to content

Commit d1ef8a7

Browse files
author
Chris Brody
authored
fix license in iOS podspec (#253)
1 parent 0fce2f4 commit d1ef8a7

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

templates/ios.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = platform => [{
22
name: ({ moduleName }) => `${moduleName}.podspec`,
3-
content: ({ moduleName, tvosEnabled, githubAccount, authorName, authorEmail, useAppleNetworking }) => `require "json"
3+
content: ({ moduleName, tvosEnabled, githubAccount, authorName, authorEmail, license, useAppleNetworking }) => `require "json"
44
55
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
66
@@ -12,8 +12,8 @@ Pod::Spec.new do |s|
1212
${moduleName}
1313
DESC
1414
s.homepage = "https://github.com/${githubAccount}/${moduleName}"
15-
s.license = "MIT"
16-
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
15+
s.license = "${license}"
16+
# s.license = { :type => "${license}", :file => "FILE_LICENSE" }
1717
s.authors = { "${authorName}" => "${authorEmail}" }
1818
s.platforms = { :ios => "9.0"${tvosEnabled ? `, :tvos => "10.0"` : ``} }
1919
s.source = { :git => "https://github.com/${githubAccount}/${moduleName}.git", :tag => "#{s.version}" }

tests/with-injection/create/view/with-example/with-options/__snapshots__/create-view-with-example-with-options.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ Pod::Spec.new do |s|
436436
react-native-alice-bobbi
437437
DESC
438438
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
439-
s.license = \\"MIT\\"
440-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
439+
s.license = \\"ISC\\"
440+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
441441
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
442442
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
443443
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

tests/with-injection/create/view/with-options/for-ios/__snapshots__/create-view-with-options-for-ios.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ Pod::Spec.new do |s|
162162
react-native-alice-bobbi
163163
DESC
164164
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
165-
s.license = \\"MIT\\"
166-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
165+
s.license = \\"ISC\\"
166+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
167167
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
168168
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
169169
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

tests/with-injection/create/with-example/with-options/__snapshots__/create-with-example-with-options.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ Pod::Spec.new do |s|
437437
react-native-alice-bobbi
438438
DESC
439439
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
440-
s.license = \\"MIT\\"
441-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
440+
s.license = \\"ISC\\"
441+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
442442
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
443443
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
444444
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

tests/with-injection/create/with-options/for-ios/__snapshots__/create-with-options-for-ios.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ Pod::Spec.new do |s|
162162
react-native-alice-bobbi
163163
DESC
164164
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
165-
s.license = \\"MIT\\"
166-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
165+
s.license = \\"ISC\\"
166+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
167167
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
168168
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
169169
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

tests/with-injection/create/with-options/platforms-array/__snapshots__/platforms-array.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ Pod::Spec.new do |s|
432432
react-native-alice-bobbi
433433
DESC
434434
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
435-
s.license = \\"MIT\\"
436-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
435+
s.license = \\"ISC\\"
436+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
437437
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
438438
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
439439
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

tests/with-injection/create/with-options/platforms-comma-separated/__snapshots__/platforms-comma-separated.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ Pod::Spec.new do |s|
432432
react-native-alice-bobbi
433433
DESC
434434
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
435-
s.license = \\"MIT\\"
436-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
435+
s.license = \\"ISC\\"
436+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
437437
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
438438
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
439439
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

tests/with-mocks/cli/command/func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ Pod::Spec.new do |s|
426426
react-native-alice-bobbi
427427
DESC
428428
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
429-
s.license = \\"MIT\\"
430-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
429+
s.license = \\"ISC\\"
430+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
431431
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
432432
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
433433
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ Pod::Spec.new do |s|
487487
react-native-alice-bobbi
488488
DESC
489489
s.homepage = \\"https://github.com/alicebits/react-native-alice-bobbi\\"
490-
s.license = \\"MIT\\"
491-
# s.license = { :type => \\"MIT\\", :file => \\"FILE_LICENSE\\" }
490+
s.license = \\"ISC\\"
491+
# s.license = { :type => \\"ISC\\", :file => \\"FILE_LICENSE\\" }
492492
s.authors = { \\"Alice\\" => \\"[email protected]\\" }
493493
s.platforms = { :ios => \\"9.0\\", :tvos => \\"10.0\\" }
494494
s.source = { :git => \\"https://github.com/alicebits/react-native-alice-bobbi.git\\", :tag => \\"#{s.version}\\" }

0 commit comments

Comments
 (0)