cocoapods-embed-flutter 0.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 +7 -0
- data/.github/config/config.js +21 -0
- data/.github/config/package-lock.json +223 -0
- data/.github/config/package.json +16 -0
- data/.github/config/pre_changelog_hook.js +27 -0
- data/.github/dependabot.yml +23 -0
- data/.github/workflows/main.yml +145 -0
- data/.gitignore +178 -0
- data/CHANGELOG.md +32 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +170 -0
- data/LICENSE +21 -0
- data/README.md +35 -0
- data/Rakefile +39 -0
- data/cocoapods-embed-flutter.gemspec +30 -0
- data/example/flutter_module/.gitignore +48 -0
- data/example/flutter_module/.metadata +10 -0
- data/example/flutter_module/README.md +11 -0
- data/example/flutter_module/analysis_options.yaml +4 -0
- data/example/flutter_module/flutter_module.iml +18 -0
- data/example/flutter_module/flutter_module_android.iml +27 -0
- data/example/flutter_module/lib/main.dart +112 -0
- data/example/flutter_module/pubspec.lock +174 -0
- data/example/flutter_module/pubspec.yaml +87 -0
- data/example/flutter_module/test/widget_test.dart +30 -0
- data/example/ios_app/Gemfile +4 -0
- data/example/ios_app/Gemfile.lock +110 -0
- data/example/ios_app/Podfile +11 -0
- data/example/ios_app/Podfile.lock +28 -0
- data/example/ios_app/ios_app/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- data/example/ios_app/ios_app/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
- data/example/ios_app/ios_app/Assets.xcassets/Contents.json +6 -0
- data/example/ios_app/ios_app/ContentView.swift +40 -0
- data/example/ios_app/ios_app/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
- data/example/ios_app/ios_app/ios_appApp.swift +18 -0
- data/example/ios_app/ios_app.xcodeproj/project.pbxproj +426 -0
- data/lib/cocoapods-embed-flutter/flutter/dependency.rb +93 -0
- data/lib/cocoapods-embed-flutter/flutter/downloader.rb +61 -0
- data/lib/cocoapods-embed-flutter/flutter/external_sources.rb +201 -0
- data/lib/cocoapods-embed-flutter/flutter/pubspec.rb +166 -0
- data/lib/cocoapods-embed-flutter/gem_version.rb +3 -0
- data/lib/cocoapods-embed-flutter/hooks/post_install.rb +8 -0
- data/lib/cocoapods-embed-flutter/hooks.rb +1 -0
- data/lib/cocoapods-embed-flutter/source.rb +1 -0
- data/lib/cocoapods-embed-flutter/src/pub.rb +114 -0
- data/lib/cocoapods-embed-flutter.rb +3 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/spec/info_spec.rb +7 -0
- data/spec/spec_helper.rb +50 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 385431ac48133784d4ee45961f3352ad076229c9d8642f83e4991413db2a5203
|
4
|
+
data.tar.gz: e3082842d2508fa799519692701f48de3dc3129f74b4df82aa4220f64e1d2761
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9ff10e59c66e053d58b0d24c9f751efdf306aac5da5982ebe2b287870127c29a6a96fb2089d993518cc0a79bee14a4404d67cc0415c673ac73909784fd654b70
|
7
|
+
data.tar.gz: 0c6040229a99b21a714ea8701cfa330f40101e8449ded6bdceb16acfd26dc846210d7b305f8f154f3591aec015ece56e77d1d8573c219e9e82bae3df4cb6e3a9
|
@@ -0,0 +1,21 @@
|
|
1
|
+
'use strict'
|
2
|
+
const config = require('conventional-changelog-conventionalcommits');
|
3
|
+
|
4
|
+
module.exports = config({
|
5
|
+
"types": [
|
6
|
+
{ type: 'feat', section: '🚀 Features' },
|
7
|
+
{ type: 'fix', section: '🐛 Fixes' },
|
8
|
+
{ type: 'perf', section: '🐎 Performance Improvements' },
|
9
|
+
{ type: 'revert', section: '⏪ Reverts' },
|
10
|
+
{ type: 'build', section: '🛠 Build System' },
|
11
|
+
{ type: 'deps', section: '🛠 Dependency' },
|
12
|
+
{ type: 'ci', section: '💡 Continuous Integration' },
|
13
|
+
{ type: 'refactor', section: '🔥 Refactorings' },
|
14
|
+
{ type: 'doc', section: '📚 Documentation' },
|
15
|
+
{ type: 'docs', section: '📚 Documentation' },
|
16
|
+
{ type: 'style', section: '💄 Styles' },
|
17
|
+
{ type: 'test', section: '✅ Tests' },
|
18
|
+
{ type: 'wip', hidden: true },
|
19
|
+
{ type: 'chore', hidden: true },
|
20
|
+
]
|
21
|
+
})
|
@@ -0,0 +1,223 @@
|
|
1
|
+
{
|
2
|
+
"name": "config",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"lockfileVersion": 2,
|
5
|
+
"requires": true,
|
6
|
+
"packages": {
|
7
|
+
"": {
|
8
|
+
"name": "config",
|
9
|
+
"version": "1.0.0",
|
10
|
+
"license": "MIT",
|
11
|
+
"dependencies": {
|
12
|
+
"@actions/core": "1.6.0",
|
13
|
+
"conventional-changelog-conventionalcommits": "^4.6.3",
|
14
|
+
"semver": "^7.3.5"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"node_modules/@actions/core": {
|
18
|
+
"version": "1.6.0",
|
19
|
+
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz",
|
20
|
+
"integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==",
|
21
|
+
"dependencies": {
|
22
|
+
"@actions/http-client": "^1.0.11"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"node_modules/@actions/http-client": {
|
26
|
+
"version": "1.0.11",
|
27
|
+
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
|
28
|
+
"integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
|
29
|
+
"dependencies": {
|
30
|
+
"tunnel": "0.0.6"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"node_modules/array-ify": {
|
34
|
+
"version": "1.0.0",
|
35
|
+
"resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz",
|
36
|
+
"integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4="
|
37
|
+
},
|
38
|
+
"node_modules/compare-func": {
|
39
|
+
"version": "2.0.0",
|
40
|
+
"resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz",
|
41
|
+
"integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==",
|
42
|
+
"dependencies": {
|
43
|
+
"array-ify": "^1.0.0",
|
44
|
+
"dot-prop": "^5.1.0"
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"node_modules/conventional-changelog-conventionalcommits": {
|
48
|
+
"version": "4.6.3",
|
49
|
+
"resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz",
|
50
|
+
"integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==",
|
51
|
+
"dependencies": {
|
52
|
+
"compare-func": "^2.0.0",
|
53
|
+
"lodash": "^4.17.15",
|
54
|
+
"q": "^1.5.1"
|
55
|
+
},
|
56
|
+
"engines": {
|
57
|
+
"node": ">=10"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"node_modules/dot-prop": {
|
61
|
+
"version": "5.3.0",
|
62
|
+
"resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz",
|
63
|
+
"integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==",
|
64
|
+
"dependencies": {
|
65
|
+
"is-obj": "^2.0.0"
|
66
|
+
},
|
67
|
+
"engines": {
|
68
|
+
"node": ">=8"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"node_modules/is-obj": {
|
72
|
+
"version": "2.0.0",
|
73
|
+
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
|
74
|
+
"integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
|
75
|
+
"engines": {
|
76
|
+
"node": ">=8"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"node_modules/lodash": {
|
80
|
+
"version": "4.17.21",
|
81
|
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
82
|
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
83
|
+
},
|
84
|
+
"node_modules/lru-cache": {
|
85
|
+
"version": "6.0.0",
|
86
|
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
87
|
+
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
88
|
+
"dependencies": {
|
89
|
+
"yallist": "^4.0.0"
|
90
|
+
},
|
91
|
+
"engines": {
|
92
|
+
"node": ">=10"
|
93
|
+
}
|
94
|
+
},
|
95
|
+
"node_modules/q": {
|
96
|
+
"version": "1.5.1",
|
97
|
+
"resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
|
98
|
+
"integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=",
|
99
|
+
"engines": {
|
100
|
+
"node": ">=0.6.0",
|
101
|
+
"teleport": ">=0.2.0"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"node_modules/semver": {
|
105
|
+
"version": "7.3.5",
|
106
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
|
107
|
+
"integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
|
108
|
+
"dependencies": {
|
109
|
+
"lru-cache": "^6.0.0"
|
110
|
+
},
|
111
|
+
"bin": {
|
112
|
+
"semver": "bin/semver.js"
|
113
|
+
},
|
114
|
+
"engines": {
|
115
|
+
"node": ">=10"
|
116
|
+
}
|
117
|
+
},
|
118
|
+
"node_modules/tunnel": {
|
119
|
+
"version": "0.0.6",
|
120
|
+
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
121
|
+
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
|
122
|
+
"engines": {
|
123
|
+
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"node_modules/yallist": {
|
127
|
+
"version": "4.0.0",
|
128
|
+
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
129
|
+
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
130
|
+
}
|
131
|
+
},
|
132
|
+
"dependencies": {
|
133
|
+
"@actions/core": {
|
134
|
+
"version": "1.6.0",
|
135
|
+
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz",
|
136
|
+
"integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==",
|
137
|
+
"requires": {
|
138
|
+
"@actions/http-client": "^1.0.11"
|
139
|
+
}
|
140
|
+
},
|
141
|
+
"@actions/http-client": {
|
142
|
+
"version": "1.0.11",
|
143
|
+
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
|
144
|
+
"integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
|
145
|
+
"requires": {
|
146
|
+
"tunnel": "0.0.6"
|
147
|
+
}
|
148
|
+
},
|
149
|
+
"array-ify": {
|
150
|
+
"version": "1.0.0",
|
151
|
+
"resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz",
|
152
|
+
"integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4="
|
153
|
+
},
|
154
|
+
"compare-func": {
|
155
|
+
"version": "2.0.0",
|
156
|
+
"resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz",
|
157
|
+
"integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==",
|
158
|
+
"requires": {
|
159
|
+
"array-ify": "^1.0.0",
|
160
|
+
"dot-prop": "^5.1.0"
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"conventional-changelog-conventionalcommits": {
|
164
|
+
"version": "4.6.3",
|
165
|
+
"resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz",
|
166
|
+
"integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==",
|
167
|
+
"requires": {
|
168
|
+
"compare-func": "^2.0.0",
|
169
|
+
"lodash": "^4.17.15",
|
170
|
+
"q": "^1.5.1"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"dot-prop": {
|
174
|
+
"version": "5.3.0",
|
175
|
+
"resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz",
|
176
|
+
"integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==",
|
177
|
+
"requires": {
|
178
|
+
"is-obj": "^2.0.0"
|
179
|
+
}
|
180
|
+
},
|
181
|
+
"is-obj": {
|
182
|
+
"version": "2.0.0",
|
183
|
+
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
|
184
|
+
"integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w=="
|
185
|
+
},
|
186
|
+
"lodash": {
|
187
|
+
"version": "4.17.21",
|
188
|
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
189
|
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
190
|
+
},
|
191
|
+
"lru-cache": {
|
192
|
+
"version": "6.0.0",
|
193
|
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
194
|
+
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
195
|
+
"requires": {
|
196
|
+
"yallist": "^4.0.0"
|
197
|
+
}
|
198
|
+
},
|
199
|
+
"q": {
|
200
|
+
"version": "1.5.1",
|
201
|
+
"resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
|
202
|
+
"integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc="
|
203
|
+
},
|
204
|
+
"semver": {
|
205
|
+
"version": "7.3.5",
|
206
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
|
207
|
+
"integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
|
208
|
+
"requires": {
|
209
|
+
"lru-cache": "^6.0.0"
|
210
|
+
}
|
211
|
+
},
|
212
|
+
"tunnel": {
|
213
|
+
"version": "0.0.6",
|
214
|
+
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
215
|
+
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
|
216
|
+
},
|
217
|
+
"yallist": {
|
218
|
+
"version": "4.0.0",
|
219
|
+
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
220
|
+
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"name": "config",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "conventional-changelog-action hooks",
|
5
|
+
"main": "config.js",
|
6
|
+
"license": "MIT",
|
7
|
+
"author": {
|
8
|
+
"name": "Soumya Ranjan Mahunt",
|
9
|
+
"email": "devsoumyamahunt@gmail.com"
|
10
|
+
},
|
11
|
+
"dependencies": {
|
12
|
+
"@actions/core": "1.6.0",
|
13
|
+
"conventional-changelog-conventionalcommits": "^4.6.3",
|
14
|
+
"semver": "^7.3.5"
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
const path = require('path');
|
2
|
+
const fs = require('fs');
|
3
|
+
const semver = require('semver');
|
4
|
+
const core = require('@actions/core');
|
5
|
+
const childProcess = require("child_process");
|
6
|
+
|
7
|
+
exports.preVersionGeneration = (version) => {
|
8
|
+
const { GITHUB_WORKSPACE } = process.env;
|
9
|
+
core.info(`Computed version bump: ${version}`);
|
10
|
+
|
11
|
+
const gem_info_file = path.join(GITHUB_WORKSPACE, 'lib/cocoapods-embed-flutter/gem_version.rb');
|
12
|
+
const gem_info = `${fs.readFileSync(gem_info_file)}`;
|
13
|
+
core.info(`Current gem info: ${gem_info}`);
|
14
|
+
|
15
|
+
currentVersion = gem_info.match(/VERSION\s*=\s'(.*)'/)[1];
|
16
|
+
core.info(`Current version: ${currentVersion}`);
|
17
|
+
|
18
|
+
if (semver.lt(version, currentVersion)) { version = currentVersion; }
|
19
|
+
core.info(`Final version: ${version}`);
|
20
|
+
|
21
|
+
const new_gem_info = gem_info.replace(/VERSION\s*=\s*.*/g, `VERSION = '${version}'.freeze`);
|
22
|
+
core.info(`Updated gem info: ${new_gem_info}`);
|
23
|
+
fs.writeFileSync(gem_info_file, new_gem_info);
|
24
|
+
return version;
|
25
|
+
}
|
26
|
+
|
27
|
+
exports.preTagGeneration = (tag) => { }
|
@@ -0,0 +1,23 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: /
|
5
|
+
insecure-external-code-execution: allow
|
6
|
+
schedule:
|
7
|
+
interval: weekly
|
8
|
+
commit-message:
|
9
|
+
prefix: 'deps: '
|
10
|
+
|
11
|
+
- package-ecosystem: github-actions
|
12
|
+
directory: /
|
13
|
+
schedule:
|
14
|
+
interval: monthly
|
15
|
+
commit-message:
|
16
|
+
prefix: 'ci(Deps): '
|
17
|
+
|
18
|
+
- package-ecosystem: npm
|
19
|
+
directory: .github/config
|
20
|
+
schedule:
|
21
|
+
interval: monthly
|
22
|
+
commit-message:
|
23
|
+
prefix: 'ci(Deps): '
|
@@ -0,0 +1,145 @@
|
|
1
|
+
name: CI/CD
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
paths-ignore:
|
7
|
+
- '*.md'
|
8
|
+
pull_request:
|
9
|
+
branches: [ main ]
|
10
|
+
paths-ignore:
|
11
|
+
- '*.md'
|
12
|
+
workflow_dispatch:
|
13
|
+
|
14
|
+
env:
|
15
|
+
RUBY_VER: 2.6
|
16
|
+
|
17
|
+
concurrency:
|
18
|
+
group: ${{ github.ref }}
|
19
|
+
cancel-in-progress: true
|
20
|
+
|
21
|
+
jobs:
|
22
|
+
ci:
|
23
|
+
name: Run Tests
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
outputs:
|
26
|
+
release: ${{ steps.check_version_bump.outputs.release_type != '' }}
|
27
|
+
|
28
|
+
steps:
|
29
|
+
- name: Checkout repository
|
30
|
+
uses: actions/checkout@v2
|
31
|
+
|
32
|
+
- name: Setup Ruby
|
33
|
+
uses: ruby/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
ruby-version: ${{ env.RUBY_VER }}
|
36
|
+
|
37
|
+
- name: Install dependencies
|
38
|
+
run: |
|
39
|
+
bundle config deployment true
|
40
|
+
bundle install
|
41
|
+
|
42
|
+
- name: Run tests
|
43
|
+
run: bundle exec rake specs
|
44
|
+
|
45
|
+
- name: Install Flutter
|
46
|
+
uses: subosito/flutter-action@v2.3.0
|
47
|
+
|
48
|
+
- name: Setup Flutter for ios
|
49
|
+
run: |
|
50
|
+
flutter precache --ios
|
51
|
+
|
52
|
+
- name: Test example app
|
53
|
+
run: bundle exec rake demo
|
54
|
+
|
55
|
+
- name: Check version bump
|
56
|
+
id: check_version_bump
|
57
|
+
uses: mathieudutour/github-tag-action@v6.0
|
58
|
+
with:
|
59
|
+
github_token: ${{ github.token }}
|
60
|
+
default_bump: false
|
61
|
+
dry_run: true
|
62
|
+
|
63
|
+
cd:
|
64
|
+
name: Build and Publish
|
65
|
+
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && needs.ci.outputs.release
|
66
|
+
needs: ci
|
67
|
+
runs-on: ubuntu-latest
|
68
|
+
|
69
|
+
steps:
|
70
|
+
- name: Checkout repository
|
71
|
+
uses: actions/checkout@v2
|
72
|
+
with:
|
73
|
+
fetch-depth: 0
|
74
|
+
|
75
|
+
- name: Setup node
|
76
|
+
uses: actions/setup-node@v2
|
77
|
+
with:
|
78
|
+
node-version: '17'
|
79
|
+
|
80
|
+
- name: Setup action config
|
81
|
+
run: npm install
|
82
|
+
working-directory: .github/config
|
83
|
+
|
84
|
+
- name: Setup Ruby
|
85
|
+
uses: ruby/setup-ruby@v1
|
86
|
+
with:
|
87
|
+
ruby-version: ${{ env.RUBY_VER }}
|
88
|
+
|
89
|
+
- name: Install dependencies
|
90
|
+
run: |
|
91
|
+
bundle config deployment true
|
92
|
+
bundle install
|
93
|
+
|
94
|
+
- name: Conventional Changelog Action
|
95
|
+
id: conventional_changelog
|
96
|
+
uses: TriPSs/conventional-changelog-action@v3
|
97
|
+
with:
|
98
|
+
github-token: ${{ github.token }}
|
99
|
+
git-message: 'chore(CHANGELOG): update for {version}'
|
100
|
+
git-user-name: ${{ github.actor }}
|
101
|
+
git-user-email: devsoumyamahunt@gmail.com
|
102
|
+
skip-version-file: true
|
103
|
+
release-count: 0
|
104
|
+
pre-changelog-generation: '.github/config/pre_changelog_hook.js'
|
105
|
+
config-file-path: '.github/config/config.js'
|
106
|
+
|
107
|
+
- name: Build gem
|
108
|
+
if: steps.conventional_changelog.outputs.skipped == 'false'
|
109
|
+
run: gem build *.gemspec
|
110
|
+
|
111
|
+
- name: Publish to GitHub Package Registry
|
112
|
+
if: steps.conventional_changelog.outputs.skipped == 'false'
|
113
|
+
run: |
|
114
|
+
mkdir -p $HOME/.gem
|
115
|
+
touch $HOME/.gem/credentials
|
116
|
+
chmod 0600 $HOME/.gem/credentials
|
117
|
+
printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n" > $HOME/.gem/credentials
|
118
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
119
|
+
env:
|
120
|
+
GITHUB_TOKEN: ${{ github.token }}
|
121
|
+
OWNER: ${{ github.actor }}
|
122
|
+
|
123
|
+
- name: Publish to RubyGems
|
124
|
+
if: steps.conventional_changelog.outputs.skipped == 'false'
|
125
|
+
run: |
|
126
|
+
mkdir -p $HOME/.gem
|
127
|
+
touch $HOME/.gem/credentials
|
128
|
+
chmod 0600 $HOME/.gem/credentials
|
129
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
130
|
+
gem push *.gem
|
131
|
+
env:
|
132
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
133
|
+
|
134
|
+
- name: Create GitHub Release
|
135
|
+
if: steps.conventional_changelog.outputs.skipped == 'false'
|
136
|
+
uses: ncipollo/release-action@v1
|
137
|
+
with:
|
138
|
+
token: ${{ github.token }}
|
139
|
+
tag: ${{ steps.conventional_changelog.outputs.tag }}
|
140
|
+
body: ${{ steps.conventional_changelog.outputs.changelog }}
|
141
|
+
artifacts: '*.gem'
|
142
|
+
|
143
|
+
- name: Publish to cocoapods plugins
|
144
|
+
if: steps.conventional_changelog.outputs.skipped == 'false'
|
145
|
+
run: bundle exec rake publish
|
data/.gitignore
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
# Xcode
|
2
|
+
#
|
3
|
+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
|
4
|
+
|
5
|
+
## User settings
|
6
|
+
xcuserdata/
|
7
|
+
|
8
|
+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
|
9
|
+
*.xcscmblueprint
|
10
|
+
*.xccheckout
|
11
|
+
|
12
|
+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
|
13
|
+
build/
|
14
|
+
vendor/
|
15
|
+
DerivedData/
|
16
|
+
*.moved-aside
|
17
|
+
*.pbxuser
|
18
|
+
!default.pbxuser
|
19
|
+
*.mode1v3
|
20
|
+
!default.mode1v3
|
21
|
+
*.mode2v3
|
22
|
+
!default.mode2v3
|
23
|
+
*.perspectivev3
|
24
|
+
!default.perspectivev3
|
25
|
+
# OS generated files #
|
26
|
+
######################
|
27
|
+
.DS_Store
|
28
|
+
.DS_Store?
|
29
|
+
._*
|
30
|
+
.Spotlight-V100
|
31
|
+
.Trashes
|
32
|
+
ehthumbs.db
|
33
|
+
Thumbs.db
|
34
|
+
|
35
|
+
# CocoaPods
|
36
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
37
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
38
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
39
|
+
Pods/
|
40
|
+
contents.xcworkspacedata
|
41
|
+
IDEWorkspaceChecks.plist
|
42
|
+
|
43
|
+
# Miscellaneous
|
44
|
+
*.class
|
45
|
+
*.log
|
46
|
+
*.pyc
|
47
|
+
*.swp
|
48
|
+
.DS_Store
|
49
|
+
.atom/
|
50
|
+
.buildlog/
|
51
|
+
.history
|
52
|
+
.svn/
|
53
|
+
|
54
|
+
# IntelliJ related
|
55
|
+
*.ipr
|
56
|
+
*.iws
|
57
|
+
.idea/
|
58
|
+
|
59
|
+
# The .vscode folder contains launch configuration and tasks you configure in
|
60
|
+
# VS Code which you may wish to be included in version control, so this line
|
61
|
+
# is commented out by default.
|
62
|
+
#.vscode/
|
63
|
+
|
64
|
+
# Flutter/Dart/Pub related
|
65
|
+
**/doc/api/
|
66
|
+
.dart_tool/
|
67
|
+
.flutter-plugins
|
68
|
+
.flutter-plugins-dependencies
|
69
|
+
.packages
|
70
|
+
.pub-cache/
|
71
|
+
.pub/
|
72
|
+
build/
|
73
|
+
|
74
|
+
# Android related
|
75
|
+
**/android/**/gradle-wrapper.jar
|
76
|
+
**/android/.gradle
|
77
|
+
**/android/captures/
|
78
|
+
**/android/gradlew
|
79
|
+
**/android/gradlew.bat
|
80
|
+
**/android/local.properties
|
81
|
+
**/android/**/GeneratedPluginRegistrant.java
|
82
|
+
|
83
|
+
# iOS/XCode related
|
84
|
+
**/ios/**/*.mode1v3
|
85
|
+
**/ios/**/*.mode2v3
|
86
|
+
**/ios/**/*.moved-aside
|
87
|
+
**/ios/**/*.pbxuser
|
88
|
+
**/ios/**/*.perspectivev3
|
89
|
+
**/ios/**/*sync/
|
90
|
+
**/ios/**/.sconsign.dblite
|
91
|
+
**/ios/**/.tags*
|
92
|
+
**/ios/**/.vagrant/
|
93
|
+
**/ios/**/DerivedData/
|
94
|
+
**/ios/**/Icon?
|
95
|
+
**/ios/**/Pods/
|
96
|
+
**/ios/**/.symlinks/
|
97
|
+
**/ios/**/profile
|
98
|
+
**/ios/**/xcuserdata
|
99
|
+
**/ios/.generated/
|
100
|
+
**/ios/Flutter/App.framework
|
101
|
+
**/ios/Flutter/Flutter.framework
|
102
|
+
**/ios/Flutter/Flutter.podspec
|
103
|
+
**/ios/Flutter/Generated.xcconfig
|
104
|
+
**/ios/Flutter/ephemeral
|
105
|
+
**/ios/Flutter/app.flx
|
106
|
+
**/ios/Flutter/app.zip
|
107
|
+
**/ios/Flutter/flutter_assets/
|
108
|
+
**/ios/Flutter/flutter_export_environment.sh
|
109
|
+
**/ios/ServiceDefinitions.json
|
110
|
+
**/ios/Runner/GeneratedPluginRegistrant.*
|
111
|
+
|
112
|
+
# Exceptions to above rules.
|
113
|
+
!**/ios/**/default.mode1v3
|
114
|
+
!**/ios/**/default.mode2v3
|
115
|
+
!**/ios/**/default.pbxuser
|
116
|
+
!**/ios/**/default.perspectivev3
|
117
|
+
|
118
|
+
# Ruby related
|
119
|
+
*.gem
|
120
|
+
*.rbc
|
121
|
+
/.config
|
122
|
+
/coverage/
|
123
|
+
/InstalledFiles
|
124
|
+
/pkg/
|
125
|
+
/spec/reports/
|
126
|
+
/spec/examples.txt
|
127
|
+
/test/tmp/
|
128
|
+
/test/version_tmp/
|
129
|
+
/tmp/
|
130
|
+
|
131
|
+
# Used by dotenv library to load environment variables.
|
132
|
+
# .env
|
133
|
+
|
134
|
+
# Ignore Byebug command history file.
|
135
|
+
.byebug_history
|
136
|
+
|
137
|
+
## Specific to RubyMotion:
|
138
|
+
.dat*
|
139
|
+
.repl_history
|
140
|
+
build/
|
141
|
+
*.bridgesupport
|
142
|
+
build-iPhoneOS/
|
143
|
+
build-iPhoneSimulator/
|
144
|
+
|
145
|
+
## Specific to RubyMotion (use of CocoaPods):
|
146
|
+
#
|
147
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
148
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
149
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
150
|
+
#
|
151
|
+
# vendor/Pods/
|
152
|
+
|
153
|
+
## Documentation cache and generated files:
|
154
|
+
/.yardoc/
|
155
|
+
/_yardoc/
|
156
|
+
/doc/
|
157
|
+
/rdoc/
|
158
|
+
|
159
|
+
## Environment normalization:
|
160
|
+
/.bundle/
|
161
|
+
/vendor/bundle
|
162
|
+
/lib/bundler/man/
|
163
|
+
|
164
|
+
# for a library or gem, you might want to ignore these files since the code is
|
165
|
+
# intended to run in multiple environments; otherwise, check them in:
|
166
|
+
# Gemfile.lock
|
167
|
+
# .ruby-version
|
168
|
+
# .ruby-gemset
|
169
|
+
|
170
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
171
|
+
.rvmrc
|
172
|
+
|
173
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
174
|
+
# .rubocop-https?--*
|
175
|
+
|
176
|
+
# Node.js Tools for Visual Studio
|
177
|
+
.ntvs_analysis.dat
|
178
|
+
node_modules/
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
## 0.5.0 (2022-03-11)
|
2
|
+
|
3
|
+
|
4
|
+
### 🚀 Features
|
5
|
+
|
6
|
+
* add all remotes supported by `cocoapods-downloader` ([019d4c5](https://github.com/DartBuild/cocoapods-embed-flutter/commit/019d4c5298eaf52061fbcf6f264102419bc7e51e))
|
7
|
+
* allow local flutter module to be declared dependency ([3358c2b](https://github.com/DartBuild/cocoapods-embed-flutter/commit/3358c2b251f51154010990b95b7eaa741049d707))
|
8
|
+
|
9
|
+
|
10
|
+
### ✅ Tests
|
11
|
+
|
12
|
+
* add app info tests ([2d3f341](https://github.com/DartBuild/cocoapods-embed-flutter/commit/2d3f341299344a16262952bd24306cff479ff74b))
|
13
|
+
|
14
|
+
|
15
|
+
### 💡 Continuous Integration
|
16
|
+
|
17
|
+
* add dependabot config ([918b9e6](https://github.com/DartBuild/cocoapods-embed-flutter/commit/918b9e6c1680b91401184289c394f5ba93a80f43))
|
18
|
+
* add flutter setup task ([2d7ff61](https://github.com/DartBuild/cocoapods-embed-flutter/commit/2d7ff61a1d71b4db4ca10f49a2e03738f9f711aa))
|
19
|
+
* add publish to cocoapods repo task ([7e620f2](https://github.com/DartBuild/cocoapods-embed-flutter/commit/7e620f24a5b13b126221645b6ec61f5f55b75ea5))
|
20
|
+
* fix bundle install on older macos ([f5e4843](https://github.com/DartBuild/cocoapods-embed-flutter/commit/f5e484334dfd2d40a132e627524505485a295195))
|
21
|
+
* fix bundler error on linux ([0e3e4eb](https://github.com/DartBuild/cocoapods-embed-flutter/commit/0e3e4eb505f72564e9b271f0e999ac7af38686a3))
|
22
|
+
* fix depandabot config spec violation ([aeaab36](https://github.com/DartBuild/cocoapods-embed-flutter/commit/aeaab365f3552848e86b25f2d6b26f79fabe86e0))
|
23
|
+
* fix pod install ([508d695](https://github.com/DartBuild/cocoapods-embed-flutter/commit/508d6956313ec8f81f36adf9b1c95d5a4eebbbbb))
|
24
|
+
* setup CI/CD pipeline ([c6fdfca](https://github.com/DartBuild/cocoapods-embed-flutter/commit/c6fdfcac64c7e57a4dc3d4ae2cb517bf745cb6b6))
|
25
|
+
* setup flutter for ios ([9228bdb](https://github.com/DartBuild/cocoapods-embed-flutter/commit/9228bdbcf673a302d41089d1226d4caf54399265))
|
26
|
+
|
27
|
+
|
28
|
+
### 📚 Documentation
|
29
|
+
|
30
|
+
* add code level documentation ([e064192](https://github.com/DartBuild/cocoapods-embed-flutter/commit/e0641922527a814c6635d31b93470367792db084))
|
31
|
+
* **README:** add usage details ([8935bce](https://github.com/DartBuild/cocoapods-embed-flutter/commit/8935bce01387748e503b0d0f0b64a2573f557bce))
|
32
|
+
|