gonative-cli 1.4.5 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +28 -9
- data/gonative-cli.gemspec +6 -5
- data/lib/gonative/commands/ios/create.rb +1 -1
- data/lib/gonative/commands/ios/publish.rb +4 -3
- data/lib/gonative/plugins/ios/build_framework.rb +49 -17
- data/lib/gonative/plugins/ios/create.rb +1 -11
- data/lib/gonative/plugins/ios/release.rb +0 -9
- data/lib/gonative/version.rb +1 -1
- data/templates/build/ios/create-framework.sh.tpl +7 -2
- data/templates/plugins/ios/common/PLUGIN_NAME/Classes/Dummy.swift +6 -0
- data/templates/plugins/ios/common/PLUGIN_NAME/Resources/polyfill.js.tpl +0 -0
- data/templates/plugins/ios/common/PLUGIN_NAME.podspec.tpl +8 -10
- metadata +47 -34
- data/templates/plugins/ios/common/.github/workflows/release-pod.yml +0 -57
- data/templates/plugins/ios/common/.gitignore +0 -39
- data/templates/plugins/ios/common/plist/Info.plist +0 -7
- /data/templates/plugins/ios/common/{js/polyfill.js.tpl → PLUGIN_NAME/Frameworks/.keep} +0 -0
- /data/templates/plugins/ios/common/{LICENSE → PLUGIN_NAME/LICENSE} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b7b57abc5ab03a7e35769437c07045b44e9370ae2c61f6c3c65db602781bed0
|
4
|
+
data.tar.gz: 93ec57441641b8b32154976bc4c4dbadd9bc25aa919c57a2be57d4b20eedccc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e59161bdf07968b7f13d778e8657203e11ae19fd570e67df78e68c8da6517d299bd0adf0cbe7b6b558cccd4d770b7e427d3a415f79950b1ae6b07c43626b8f6
|
7
|
+
data.tar.gz: 2bc4e4377a31c5bf8cf7d58327b08dc3f65e5d9485db315da3adb7166be3a79623de7a9b814e702a46f4fc99933e730a64c0ebebbe1f3fd50e80555c6051c2f4
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gonative-cli (1.
|
4
|
+
gonative-cli (1.5.0)
|
5
5
|
activesupport (~> 6.0)
|
6
|
+
aws-sdk-s3 (~> 1)
|
6
7
|
cocoapods (~> 1.10)
|
7
8
|
colorize (~> 0.8.0)
|
9
|
+
concurrent-ruby (= 1.3.4)
|
8
10
|
dry-cli (~> 0.7)
|
9
11
|
xcodeproj (~> 1.20)
|
10
12
|
zeitwerk (~> 2.4)
|
@@ -20,13 +22,29 @@ GEM
|
|
20
22
|
minitest (>= 5.1)
|
21
23
|
tzinfo (~> 2.0)
|
22
24
|
zeitwerk (~> 2.3)
|
23
|
-
addressable (2.8.
|
24
|
-
public_suffix (>= 2.0.2, <
|
25
|
+
addressable (2.8.7)
|
26
|
+
public_suffix (>= 2.0.2, < 7.0)
|
25
27
|
algoliasearch (1.27.5)
|
26
28
|
httpclient (~> 2.8, >= 2.8.3)
|
27
29
|
json (>= 1.5.1)
|
28
30
|
ast (2.4.2)
|
29
31
|
atomos (0.1.3)
|
32
|
+
aws-eventstream (1.3.0)
|
33
|
+
aws-partitions (1.1014.0)
|
34
|
+
aws-sdk-core (3.214.0)
|
35
|
+
aws-eventstream (~> 1, >= 1.3.0)
|
36
|
+
aws-partitions (~> 1, >= 1.992.0)
|
37
|
+
aws-sigv4 (~> 1.9)
|
38
|
+
jmespath (~> 1, >= 1.6.1)
|
39
|
+
aws-sdk-kms (1.96.0)
|
40
|
+
aws-sdk-core (~> 3, >= 3.210.0)
|
41
|
+
aws-sigv4 (~> 1.5)
|
42
|
+
aws-sdk-s3 (1.174.0)
|
43
|
+
aws-sdk-core (~> 3, >= 3.210.0)
|
44
|
+
aws-sdk-kms (~> 1)
|
45
|
+
aws-sigv4 (~> 1.5)
|
46
|
+
aws-sigv4 (1.10.1)
|
47
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
30
48
|
byebug (11.1.3)
|
31
49
|
claide (1.1.0)
|
32
50
|
cocoapods (1.15.2)
|
@@ -69,7 +87,7 @@ GEM
|
|
69
87
|
coderay (1.1.3)
|
70
88
|
colored2 (3.1.2)
|
71
89
|
colorize (0.8.1)
|
72
|
-
concurrent-ruby (1.
|
90
|
+
concurrent-ruby (1.3.4)
|
73
91
|
diff-lcs (1.4.4)
|
74
92
|
dry-cli (0.7.0)
|
75
93
|
escape (0.0.4)
|
@@ -80,11 +98,12 @@ GEM
|
|
80
98
|
fuzzy_match (2.0.4)
|
81
99
|
gh_inspector (1.1.3)
|
82
100
|
httpclient (2.8.3)
|
83
|
-
i18n (1.14.
|
101
|
+
i18n (1.14.6)
|
84
102
|
concurrent-ruby (~> 1.0)
|
85
|
-
|
103
|
+
jmespath (1.6.2)
|
104
|
+
json (2.7.2)
|
86
105
|
method_source (1.0.0)
|
87
|
-
minitest (5.
|
106
|
+
minitest (5.25.1)
|
88
107
|
molinillo (0.8.0)
|
89
108
|
nanaimo (0.3.0)
|
90
109
|
nap (1.1.0)
|
@@ -134,7 +153,7 @@ GEM
|
|
134
153
|
ruby-progressbar (1.11.0)
|
135
154
|
typhoeus (1.4.0)
|
136
155
|
ethon (>= 0.9.0)
|
137
|
-
tzinfo (2.0.
|
156
|
+
tzinfo (2.0.6)
|
138
157
|
concurrent-ruby (~> 1.0)
|
139
158
|
unicode-display_width (2.0.0)
|
140
159
|
xcodeproj (1.23.0)
|
@@ -144,7 +163,7 @@ GEM
|
|
144
163
|
colored2 (~> 3.1)
|
145
164
|
nanaimo (~> 0.3.0)
|
146
165
|
rexml (~> 3.2.4)
|
147
|
-
zeitwerk (2.6.
|
166
|
+
zeitwerk (2.6.18)
|
148
167
|
|
149
168
|
PLATFORMS
|
150
169
|
arm64-darwin-21
|
data/gonative-cli.gemspec
CHANGED
@@ -27,17 +27,18 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables << 'gonative'
|
28
28
|
spec.require_paths = ['lib']
|
29
29
|
|
30
|
+
spec.add_dependency 'activesupport', '~> 6.0'
|
31
|
+
spec.add_dependency 'aws-sdk-s3', '~> 1'
|
32
|
+
spec.add_dependency 'cocoapods', '~> 1.10'
|
33
|
+
spec.add_dependency 'colorize', '~> 0.8.0'
|
30
34
|
spec.add_dependency 'dry-cli', '~> 0.7'
|
31
|
-
spec.add_dependency 'zeitwerk', '~> 2.4'
|
32
|
-
spec.add_dependency 'cocoapods', '~> 1.16'
|
33
35
|
spec.add_dependency 'xcodeproj', '~> 1.20'
|
34
|
-
spec.add_dependency '
|
35
|
-
spec.add_dependency 'activesupport', '~> 6.0'
|
36
|
+
spec.add_dependency 'zeitwerk', '~> 2.4'
|
36
37
|
spec.add_dependency 'concurrent-ruby', '1.3.4'
|
37
38
|
|
38
|
-
spec.add_development_dependency 'rspec', '~> 3.10'
|
39
39
|
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
40
40
|
spec.add_development_dependency 'rake', '~> 13.0'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.10'
|
41
42
|
spec.add_development_dependency 'rubocop', '~> 1.7'
|
42
43
|
spec.add_development_dependency 'rubocop-performance', '~> 1.11'
|
43
44
|
end
|
@@ -7,7 +7,7 @@ module GoNative
|
|
7
7
|
desc 'Create a new plugin'
|
8
8
|
|
9
9
|
argument :name, required: true, desc: 'Name of the plugin'
|
10
|
-
option :language, default:
|
10
|
+
option :language, default: 'swift', options: Plugins::IOS::Create::LANGUAGES, desc: "Plugin's language"
|
11
11
|
|
12
12
|
def call(name:, language:, **)
|
13
13
|
Plugins::IOS::Create.call(name, language)
|
@@ -6,14 +6,15 @@ module GoNative
|
|
6
6
|
class Publish < Base
|
7
7
|
autoload :FileUtils, 'fileutils'
|
8
8
|
desc 'Verify, build and release a new version'
|
9
|
+
|
10
|
+
argument :podspec, required: true, desc: 'Podspec name'
|
9
11
|
option :skip_build, type: :boolean, default: false
|
10
12
|
option :debug, type: :boolean, default: false
|
11
|
-
option :use_existing_build, type: :boolean, default: false
|
12
13
|
option :archs, default: 'x86_64,arm64'
|
13
14
|
|
14
|
-
def call(skip_build:, debug:, archs:,
|
15
|
+
def call(podspec:, skip_build:, debug:, archs:, **)
|
15
16
|
Plugins::IOS::Verify.call
|
16
|
-
Plugins::IOS::BuildFramework.call(archs, debug
|
17
|
+
Plugins::IOS::BuildFramework.call(podspec, archs, debug) unless skip_build
|
17
18
|
Plugins::IOS::Release.call
|
18
19
|
end
|
19
20
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'cocoapods'
|
4
4
|
require 'xcodeproj'
|
5
5
|
require 'active_support/core_ext/string/inflections'
|
6
|
+
require 'aws-sdk-s3'
|
6
7
|
|
7
8
|
module GoNative
|
8
9
|
module Plugins
|
@@ -14,37 +15,42 @@ module GoNative
|
|
14
15
|
|
15
16
|
BUILD_TEMPLATE_DIRECTORY_PATH = File.expand_path(File.join(__dir__, '../../../..', 'templates', 'build', 'ios'))
|
16
17
|
|
17
|
-
attr_reader :plugin_name, :archs, :persist_build_dir
|
18
|
+
attr_reader :plugin_name, :archs, :persist_build_dir
|
18
19
|
|
19
|
-
def initialize(archs, persist_build_dir
|
20
|
-
|
21
|
-
raise Error, 'No podspec exists.' unless podspec_file
|
20
|
+
def initialize(podspec, archs, persist_build_dir)
|
21
|
+
raise Error, 'No podspec exists.' unless File.exist?(podspec)
|
22
22
|
|
23
|
-
@plugin_name = File.basename(
|
23
|
+
@plugin_name = File.basename(podspec, '.podspec')
|
24
24
|
@archs = archs.gsub(',', ' ')
|
25
25
|
@persist_build_dir = persist_build_dir
|
26
|
-
@use_existing_build = use_existing_build
|
27
26
|
end
|
28
27
|
|
29
28
|
def call
|
30
|
-
cd_build_dir
|
31
|
-
|
32
|
-
create_framework_proj
|
33
|
-
move_template_files!
|
34
|
-
run_pod_install
|
35
|
-
chmod_frameworks_script!
|
36
|
-
end
|
29
|
+
created_build_dir = cd_build_dir
|
30
|
+
setup_build_dir if created_build_dir
|
37
31
|
build_framework!
|
38
32
|
move_framework_file
|
33
|
+
zip!
|
34
|
+
upload_to_s3
|
39
35
|
ensure
|
40
36
|
FileUtils.cd('..')
|
41
37
|
FileUtils.rm_rf('build') unless persist_build_dir
|
42
38
|
end
|
43
39
|
|
44
|
-
def cd_build_dir
|
40
|
+
def cd_build_dir
|
45
41
|
build_dir = File.join(FileUtils.pwd, 'build')
|
46
|
-
|
42
|
+
return false if File.exist?(build_dir)
|
43
|
+
|
44
|
+
FileUtils.mkdir(build_dir)
|
47
45
|
FileUtils.cd(build_dir)
|
46
|
+
true
|
47
|
+
end
|
48
|
+
|
49
|
+
def setup_build_dir
|
50
|
+
create_framework_proj
|
51
|
+
move_template_files!
|
52
|
+
run_pod_install
|
53
|
+
chmod_frameworks_script!
|
48
54
|
end
|
49
55
|
|
50
56
|
def create_framework_proj
|
@@ -62,6 +68,7 @@ module GoNative
|
|
62
68
|
config.build_settings['MARKETING_VERSION'] = spec.version
|
63
69
|
config.build_settings['MODULEMAP_FILE'] = "#{plugin_name}.modulemap"
|
64
70
|
config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = "org.cocoapods.#{plugin_name}"
|
71
|
+
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym'
|
65
72
|
end
|
66
73
|
proj.save("#{plugin_name}.xcodeproj")
|
67
74
|
end
|
@@ -125,8 +132,33 @@ module GoNative
|
|
125
132
|
end
|
126
133
|
|
127
134
|
def move_framework_file
|
128
|
-
FileUtils.
|
129
|
-
|
135
|
+
FileUtils.mv("Frameworks/#{plugin_name}.xcframework", "../#{plugin_name}/Frameworks")
|
136
|
+
end
|
137
|
+
|
138
|
+
def zip!
|
139
|
+
FileUtils.cd('..')
|
140
|
+
included_paths = %w[Frameworks Resources LICENSE Info.plist Classes/Dummy.swift Extensions]
|
141
|
+
included_paths = included_paths.map { |path| "#{plugin_name}/#{path}" }
|
142
|
+
system "zip -r build/#{zip_file_name} " + included_paths.join(' ')
|
143
|
+
FileUtils.cd('build')
|
144
|
+
end
|
145
|
+
|
146
|
+
def zip_file_name
|
147
|
+
"#{plugin_name}-v#{spec.version}.zip"
|
148
|
+
end
|
149
|
+
|
150
|
+
def upload_to_s3
|
151
|
+
s3 = Aws::S3::Client.new(
|
152
|
+
region: ENV['S3_REGION'],
|
153
|
+
access_key_id: ENV['ACCESS_KEY_ID'],
|
154
|
+
secret_access_key: ENV['SECRET_ACCESS_KEY']
|
155
|
+
)
|
156
|
+
|
157
|
+
s3.put_object(
|
158
|
+
bucket: ENV['S3_BUCKET'],
|
159
|
+
key: "#{plugin_name}/#{zip_file_name}",
|
160
|
+
body: File.open(zip_file_name, 'rb')
|
161
|
+
)
|
130
162
|
end
|
131
163
|
|
132
164
|
def deployment_target
|
@@ -24,9 +24,8 @@ module GoNative
|
|
24
24
|
|
25
25
|
def call
|
26
26
|
assert_not_exists!
|
27
|
-
set_working_dir!
|
28
27
|
cp_template_files!
|
29
|
-
Utils::TemplateInflator.new(plugin_name: plugin_name
|
28
|
+
Utils::TemplateInflator.new(plugin_name: plugin_name).call
|
30
29
|
end
|
31
30
|
|
32
31
|
def assert_not_exists!
|
@@ -35,19 +34,10 @@ module GoNative
|
|
35
34
|
raise Error, "Directory #{plugin_name} already exists"
|
36
35
|
end
|
37
36
|
|
38
|
-
def set_working_dir!
|
39
|
-
FileUtils.mkdir(plugin_name)
|
40
|
-
FileUtils.cd(plugin_name)
|
41
|
-
end
|
42
|
-
|
43
37
|
def cp_template_files!
|
44
38
|
FileUtils.cp_r("#{COMMON_TEMPLATES_PATH}/.", '.')
|
45
39
|
system('ditto', File.join(TEMPLATE_DIRECTORY_PATH, 'language-specific', language), '.')
|
46
40
|
end
|
47
|
-
|
48
|
-
def repo_name
|
49
|
-
plugin_name.underscore.dasherize.prepend 'ios-'
|
50
|
-
end
|
51
41
|
end
|
52
42
|
end
|
53
43
|
end
|
@@ -16,7 +16,6 @@ module GoNative
|
|
16
16
|
assert_spec_exists!
|
17
17
|
sources_manager.update(GONATIVE_SOURCE_NAME)
|
18
18
|
assert_not_pushed!
|
19
|
-
create_and_push_tag!
|
20
19
|
push_to_pod_repo!
|
21
20
|
end
|
22
21
|
|
@@ -40,14 +39,6 @@ module GoNative
|
|
40
39
|
end
|
41
40
|
end
|
42
41
|
|
43
|
-
def create_and_push_tag!
|
44
|
-
return if system("git tag | grep #{spec.version} > /dev/null")
|
45
|
-
|
46
|
-
system "git add -A && git commit -m \"Releases #{spec.version}.\""
|
47
|
-
system "git tag #{spec.version}"
|
48
|
-
system 'git push && git push --tags'
|
49
|
-
end
|
50
|
-
|
51
42
|
def push_to_pod_repo!
|
52
43
|
system "pod repo push #{GONATIVE_SOURCE_NAME} #{spec_name} --private --allow-warnings"
|
53
44
|
end
|
data/lib/gonative/version.rb
CHANGED
@@ -3,7 +3,7 @@ set -e
|
|
3
3
|
|
4
4
|
WORKING_DIR=$(pwd)
|
5
5
|
|
6
|
-
FRAMEWORK_FOLDER_NAME="
|
6
|
+
FRAMEWORK_FOLDER_NAME="Frameworks"
|
7
7
|
|
8
8
|
FRAMEWORK_NAME="#{plugin_name}"
|
9
9
|
|
@@ -25,7 +25,12 @@ xcodebuild -workspace "#{plugin_name}.xcworkspace" archive ONLY_ACTIVE_ARCH=NO A
|
|
25
25
|
|
26
26
|
xcodebuild archive -workspace "#{plugin_name}.xcworkspace" -scheme ${BUILD_SCHEME} -destination="generic/platform=iOS" -archivePath "${IOS_DEVICE_ARCHIVE_PATH}" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
27
27
|
|
28
|
-
xcodebuild -create-xcframework
|
28
|
+
xcodebuild -create-xcframework \
|
29
|
+
-framework ${SIMULATOR_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework \
|
30
|
+
-debug-symbols ${SIMULATOR_ARCHIVE_PATH}/dSYMs/${FRAMEWORK_NAME}.framework.dSYM \
|
31
|
+
-framework ${IOS_DEVICE_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework \
|
32
|
+
-debug-symbols ${IOS_DEVICE_ARCHIVE_PATH}/dSYMs/${FRAMEWORK_NAME}.framework.dSYM \
|
33
|
+
-output "${FRAMEWORK_PATH}"
|
29
34
|
|
30
35
|
rm -rf "${SIMULATOR_ARCHIVE_PATH}"
|
31
36
|
rm -rf "${IOS_DEVICE_ARCHIVE_PATH}"
|
File without changes
|
@@ -1,30 +1,28 @@
|
|
1
1
|
Pod::Spec.new do |s|
|
2
2
|
s.name = '#{plugin_name}'
|
3
3
|
s.version = '0.1.0'
|
4
|
-
s.summary = '#{plugin_name}
|
4
|
+
s.summary = '#{plugin_name} for Median.'
|
5
5
|
|
6
6
|
s.description = <<-DESC
|
7
7
|
TODO: Add long description of the pod here.
|
8
8
|
DESC
|
9
9
|
|
10
|
-
s.homepage = 'https://
|
11
|
-
s.license = { :type => 'Proprietary', :file => 'LICENSE' }
|
12
|
-
s.author = { '
|
13
|
-
s.source = { :
|
10
|
+
s.homepage = 'https://median.co'
|
11
|
+
s.license = { :type => 'Proprietary', :file => '#{plugin_name}/LICENSE' }
|
12
|
+
s.author = { 'hunaid' => 'hunaid@median.co' }
|
13
|
+
s.source = { :http => "https://pods.median.co/#{plugin_name}/#{plugin_name}-v#{s.version.to_s}.zip" }
|
14
14
|
|
15
15
|
s.ios.deployment_target = '13.0'
|
16
16
|
s.swift_versions = '5.0'
|
17
17
|
|
18
18
|
s.subspec 'Source' do |cs|
|
19
19
|
cs.source_files = '#{plugin_name}/Classes/**/*.{h,m,swift}'
|
20
|
-
cs.resource_bundle = { '#{plugin_name}JS' => '
|
21
|
-
cs.preserve_paths = ['plist/*.{plist}', 'Extensions/**/*']
|
20
|
+
cs.resource_bundle = { '#{plugin_name}JS' => '#{plugin_name}/Resources/*.{js,json}' }
|
22
21
|
end
|
23
22
|
|
24
23
|
s.subspec 'Binary' do |cs|
|
25
|
-
cs.ios.vendored_frameworks = '
|
26
|
-
cs.resource_bundle = { '#{plugin_name}JS' => '
|
27
|
-
cs.preserve_paths = ['plist/*.{plist}', 'Extensions/**/*']
|
24
|
+
cs.ios.vendored_frameworks = '#{plugin_name}/Frameworks/#{plugin_name}.xcframework'
|
25
|
+
cs.resource_bundle = { '#{plugin_name}JS' => '#{plugin_name}/Resources/*.{js,json}' }
|
28
26
|
end
|
29
27
|
|
30
28
|
s.default_subspec = 'Binary'
|
metadata
CHANGED
@@ -1,99 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gonative-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hunaid Hassan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '6.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: aws-sdk-s3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cocoapods
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.10'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.10'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: colorize
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.8.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.8.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: dry-cli
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: '0.7'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: '0.7'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: xcodeproj
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.20'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.20'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: zeitwerk
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.4'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.4'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: concurrent-ruby
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,47 +123,47 @@ dependencies:
|
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: 1.3.4
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
126
|
+
name: pry-byebug
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '3.
|
131
|
+
version: '3.9'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
138
|
+
version: '3.9'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: rake
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
145
|
+
version: '13.0'
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
152
|
+
version: '13.0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
154
|
+
name: rspec
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
157
|
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
159
|
+
version: '3.10'
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
166
|
+
version: '3.10'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: rubocop
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -251,13 +265,12 @@ files:
|
|
251
265
|
- templates/plugins/android/proguard-rules.pro
|
252
266
|
- templates/plugins/android/src/main/AndroidManifest.xml.tpl
|
253
267
|
- templates/plugins/android/src/main/java/io/gonative/android/plugins/JAVA_PACKAGE/PLUGIN_NAME.java.tpl
|
254
|
-
- templates/plugins/ios/common/.github/workflows/release-pod.yml
|
255
|
-
- templates/plugins/ios/common/.gitignore
|
256
|
-
- templates/plugins/ios/common/LICENSE
|
257
268
|
- templates/plugins/ios/common/PLUGIN_NAME.podspec.tpl
|
269
|
+
- templates/plugins/ios/common/PLUGIN_NAME/Classes/Dummy.swift
|
270
|
+
- templates/plugins/ios/common/PLUGIN_NAME/Frameworks/.keep
|
258
271
|
- templates/plugins/ios/common/PLUGIN_NAME/Info.plist
|
259
|
-
- templates/plugins/ios/common/
|
260
|
-
- templates/plugins/ios/common/
|
272
|
+
- templates/plugins/ios/common/PLUGIN_NAME/LICENSE
|
273
|
+
- templates/plugins/ios/common/PLUGIN_NAME/Resources/polyfill.js.tpl
|
261
274
|
- templates/plugins/ios/language-specific/objc/PLUGIN_NAME/Classes/GNPLUGIN_NAME.h.tpl
|
262
275
|
- templates/plugins/ios/language-specific/objc/PLUGIN_NAME/Classes/GNPLUGIN_NAME.m.tpl
|
263
276
|
- templates/plugins/ios/language-specific/swift/PLUGIN_NAME/Classes/GNSwiftModule.m.tpl
|
@@ -285,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
298
|
- !ruby/object:Gem::Version
|
286
299
|
version: '0'
|
287
300
|
requirements: []
|
288
|
-
rubygems_version: 3.
|
301
|
+
rubygems_version: 3.3.7
|
289
302
|
signing_key:
|
290
303
|
specification_version: 4
|
291
304
|
summary: CLI to create gonative plugins.
|
@@ -1,57 +0,0 @@
|
|
1
|
-
name: Publish a new pod version
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- main
|
7
|
-
- master
|
8
|
-
workflow_dispatch:
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
release-pod:
|
12
|
-
runs-on: macos-latest
|
13
|
-
steps:
|
14
|
-
- uses: actions/checkout@v2
|
15
|
-
with:
|
16
|
-
fetch-depth: 0
|
17
|
-
|
18
|
-
- run: git config --global user.email "noreply@gonative.io"
|
19
|
-
- run: git config --global user.name "gonative-bot"
|
20
|
-
|
21
|
-
- name: Configure ruby
|
22
|
-
uses: ruby/setup-ruby@v1
|
23
|
-
with:
|
24
|
-
ruby-version: 3.1.2
|
25
|
-
|
26
|
-
- name: Install gonative-cli
|
27
|
-
run: gem install gonative-cli
|
28
|
-
|
29
|
-
- name: Install cocoapods
|
30
|
-
run: gem install cocoapods
|
31
|
-
|
32
|
-
- name: Get version
|
33
|
-
run: echo "version=$(gonative ios version)" >> "$GITHUB_ENV"
|
34
|
-
|
35
|
-
- name: Check if tag already exists
|
36
|
-
run: git show-ref --tags --verify --quiet -- "refs/tags/${{ env.version }}" && echo "tagged=1" >> "$GITHUB_ENV" || echo "tagged=0" >> "$GITHUB_ENV"
|
37
|
-
|
38
|
-
- name: Install SSH key
|
39
|
-
uses: shimataro/ssh-key-action@v2
|
40
|
-
with:
|
41
|
-
key: ${{ secrets.POD_SPEC_SECRET_KEY }}
|
42
|
-
known_hosts: unnecessary
|
43
|
-
|
44
|
-
- name: Add gonative-specs repo
|
45
|
-
run: pod repo add gonative-specs git@github.com:gonativeio/gonative-specs.git
|
46
|
-
|
47
|
-
- name: Publish pod
|
48
|
-
if: env.tagged == 0
|
49
|
-
run: gonative ios publish --debug
|
50
|
-
|
51
|
-
- name: Upload build directory
|
52
|
-
if: failure()
|
53
|
-
uses: actions/upload-artifact@v3
|
54
|
-
with:
|
55
|
-
name: build-dir
|
56
|
-
path: build
|
57
|
-
retention-days: 5
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# OS X
|
2
|
-
.DS_Store
|
3
|
-
|
4
|
-
# Xcode
|
5
|
-
build/
|
6
|
-
*.pbxuser
|
7
|
-
!default.pbxuser
|
8
|
-
*.mode1v3
|
9
|
-
!default.mode1v3
|
10
|
-
*.mode2v3
|
11
|
-
!default.mode2v3
|
12
|
-
*.perspectivev3
|
13
|
-
!default.perspectivev3
|
14
|
-
xcuserdata/
|
15
|
-
*.xccheckout
|
16
|
-
profile
|
17
|
-
*.moved-aside
|
18
|
-
DerivedData
|
19
|
-
*.hmap
|
20
|
-
*.ipa
|
21
|
-
|
22
|
-
# Bundler
|
23
|
-
.bundle
|
24
|
-
|
25
|
-
# Add this line if you want to avoid checking in source code from Carthage dependencies.
|
26
|
-
# Carthage/Checkouts
|
27
|
-
|
28
|
-
Carthage/Build
|
29
|
-
|
30
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
31
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
32
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
|
33
|
-
#
|
34
|
-
# Note: if you ignore the Pods directory, make sure to uncomment
|
35
|
-
# `pod install` in .travis.yml
|
36
|
-
#
|
37
|
-
# Pods/
|
38
|
-
Pods/
|
39
|
-
xcshareddata
|
File without changes
|
File without changes
|