Skip to content

Commit b2bc826

Browse files
authored
Update framework for v2 (#2)
* Improve overall API * Use CustomNSError protocol * Improve JS encoder documentation * Fix documentation for Codable structures * Move configuration files * Update tests * Migrate to Swift 4.2 * Update library metadata * Write changelog for v2 * Add Fastlane support * Set up CI with Azure Pipelines (#1) * Set up CI with Azure Pipelines * Update azure-pipelines.yml * Install Bundle before running CI * Lint without bundler * Remove unused file * Remove validation
1 parent d881fad commit b2bc826

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1188
-1648
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Build generated
44
build/
55
DerivedData/
6+
test/
67

78
## Various settings
89
*.pbxuser
@@ -39,3 +40,7 @@ Pods/
3940
# Carthage
4041
Carthage/Checkouts
4142
Carthage/Build
43+
44+
# fastlane
45+
fastlane/report.xml
46+

.swift-version

-1
This file was deleted.

.travis.yml

-24
This file was deleted.

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# _JavaScriptKit_ Changelog
2+
3+
## 🔖 v2.0.0
4+
5+
### New Features
6+
7+
- Cleaner API: the web view is now responsible for evaluating the expression, to align with the existing WebKit API (`WKWebView.execute(expression:completionHandler:)`)
8+
9+
### Changes
10+
11+
- Remove dependency on `Result`, we will migrate to the native type when Swift 5 is available
12+
- Move to Swift 4.2 and Xcode 10
13+
- Update documentation
14+
- Simplified tests
15+
- Add Fastlane and Azure DevOps support
16+
17+
## 🔖 v1.0.0
18+
19+
- Inital Release

Cartfile

-1
This file was deleted.

Cartfile.resolved

-1
This file was deleted.
File renamed without changes.
File renamed without changes.

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "cocoapods"
4+
gem "fastlane"

Gemfile.lock

+212
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.0)
5+
activesupport (4.2.11)
6+
i18n (~> 0.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.3, >= 0.3.4)
9+
tzinfo (~> 1.1)
10+
addressable (2.5.2)
11+
public_suffix (>= 2.0.2, < 4.0)
12+
atomos (0.1.3)
13+
babosa (1.0.2)
14+
claide (1.0.2)
15+
cocoapods (1.5.3)
16+
activesupport (>= 4.0.2, < 5)
17+
claide (>= 1.0.2, < 2.0)
18+
cocoapods-core (= 1.5.3)
19+
cocoapods-deintegrate (>= 1.0.2, < 2.0)
20+
cocoapods-downloader (>= 1.2.0, < 2.0)
21+
cocoapods-plugins (>= 1.0.0, < 2.0)
22+
cocoapods-search (>= 1.0.0, < 2.0)
23+
cocoapods-stats (>= 1.0.0, < 2.0)
24+
cocoapods-trunk (>= 1.3.0, < 2.0)
25+
cocoapods-try (>= 1.1.0, < 2.0)
26+
colored2 (~> 3.1)
27+
escape (~> 0.0.4)
28+
fourflusher (~> 2.0.1)
29+
gh_inspector (~> 1.0)
30+
molinillo (~> 0.6.5)
31+
nap (~> 1.0)
32+
ruby-macho (~> 1.1)
33+
xcodeproj (>= 1.5.7, < 2.0)
34+
cocoapods-core (1.5.3)
35+
activesupport (>= 4.0.2, < 6)
36+
fuzzy_match (~> 2.0.4)
37+
nap (~> 1.0)
38+
cocoapods-deintegrate (1.0.2)
39+
cocoapods-downloader (1.2.2)
40+
cocoapods-plugins (1.0.0)
41+
nap
42+
cocoapods-search (1.0.0)
43+
cocoapods-stats (1.0.0)
44+
cocoapods-trunk (1.3.1)
45+
nap (>= 0.8, < 2.0)
46+
netrc (~> 0.11)
47+
cocoapods-try (1.1.0)
48+
colored (1.2)
49+
colored2 (3.1.2)
50+
commander-fastlane (4.4.6)
51+
highline (~> 1.7.2)
52+
concurrent-ruby (1.1.4)
53+
declarative (0.0.10)
54+
declarative-option (0.1.0)
55+
digest-crc (0.4.1)
56+
domain_name (0.5.20180417)
57+
unf (>= 0.0.5, < 1.0.0)
58+
dotenv (2.5.0)
59+
emoji_regex (0.1.1)
60+
escape (0.0.4)
61+
excon (0.62.0)
62+
faraday (0.15.4)
63+
multipart-post (>= 1.2, < 3)
64+
faraday-cookie_jar (0.0.6)
65+
faraday (>= 0.7.4)
66+
http-cookie (~> 1.0.0)
67+
faraday_middleware (0.12.2)
68+
faraday (>= 0.7.4, < 1.0)
69+
fastimage (2.1.5)
70+
fastlane (2.112.0)
71+
CFPropertyList (>= 2.3, < 4.0.0)
72+
addressable (>= 2.3, < 3.0.0)
73+
babosa (>= 1.0.2, < 2.0.0)
74+
bundler (>= 1.12.0, < 2.0.0)
75+
colored
76+
commander-fastlane (>= 4.4.6, < 5.0.0)
77+
dotenv (>= 2.1.1, < 3.0.0)
78+
emoji_regex (~> 0.1)
79+
excon (>= 0.45.0, < 1.0.0)
80+
faraday (~> 0.9)
81+
faraday-cookie_jar (~> 0.0.6)
82+
faraday_middleware (~> 0.9)
83+
fastimage (>= 2.1.0, < 3.0.0)
84+
gh_inspector (>= 1.1.2, < 2.0.0)
85+
google-api-client (>= 0.21.2, < 0.24.0)
86+
google-cloud-storage (>= 1.15.0, < 2.0.0)
87+
highline (>= 1.7.2, < 2.0.0)
88+
json (< 3.0.0)
89+
mini_magick (~> 4.5.1)
90+
multi_json
91+
multi_xml (~> 0.5)
92+
multipart-post (~> 2.0.0)
93+
plist (>= 3.1.0, < 4.0.0)
94+
public_suffix (~> 2.0.0)
95+
rubyzip (>= 1.2.2, < 2.0.0)
96+
security (= 0.1.3)
97+
simctl (~> 1.6.3)
98+
slack-notifier (>= 2.0.0, < 3.0.0)
99+
terminal-notifier (>= 1.6.2, < 2.0.0)
100+
terminal-table (>= 1.4.5, < 2.0.0)
101+
tty-screen (>= 0.6.3, < 1.0.0)
102+
tty-spinner (>= 0.8.0, < 1.0.0)
103+
word_wrap (~> 1.0.0)
104+
xcodeproj (>= 1.6.0, < 2.0.0)
105+
xcpretty (~> 0.3.0)
106+
xcpretty-travis-formatter (>= 0.0.3)
107+
fourflusher (2.0.1)
108+
fuzzy_match (2.0.4)
109+
gh_inspector (1.1.3)
110+
google-api-client (0.23.9)
111+
addressable (~> 2.5, >= 2.5.1)
112+
googleauth (>= 0.5, < 0.7.0)
113+
httpclient (>= 2.8.1, < 3.0)
114+
mime-types (~> 3.0)
115+
representable (~> 3.0)
116+
retriable (>= 2.0, < 4.0)
117+
signet (~> 0.9)
118+
google-cloud-core (1.2.7)
119+
google-cloud-env (~> 1.0)
120+
google-cloud-env (1.0.5)
121+
faraday (~> 0.11)
122+
google-cloud-storage (1.15.0)
123+
digest-crc (~> 0.4)
124+
google-api-client (~> 0.23)
125+
google-cloud-core (~> 1.2)
126+
googleauth (~> 0.6.2)
127+
googleauth (0.6.7)
128+
faraday (~> 0.12)
129+
jwt (>= 1.4, < 3.0)
130+
memoist (~> 0.16)
131+
multi_json (~> 1.11)
132+
os (>= 0.9, < 2.0)
133+
signet (~> 0.7)
134+
highline (1.7.10)
135+
http-cookie (1.0.3)
136+
domain_name (~> 0.5)
137+
httpclient (2.8.3)
138+
i18n (0.9.5)
139+
concurrent-ruby (~> 1.0)
140+
json (2.1.0)
141+
jwt (2.1.0)
142+
memoist (0.16.0)
143+
mime-types (3.2.2)
144+
mime-types-data (~> 3.2015)
145+
mime-types-data (3.2018.0812)
146+
mini_magick (4.5.1)
147+
minitest (5.11.3)
148+
molinillo (0.6.6)
149+
multi_json (1.13.1)
150+
multi_xml (0.6.0)
151+
multipart-post (2.0.0)
152+
nanaimo (0.2.6)
153+
nap (1.1.0)
154+
naturally (2.2.0)
155+
netrc (0.11.0)
156+
os (1.0.0)
157+
plist (3.5.0)
158+
public_suffix (2.0.5)
159+
representable (3.0.4)
160+
declarative (< 0.1.0)
161+
declarative-option (< 0.2.0)
162+
uber (< 0.2.0)
163+
retriable (3.1.2)
164+
rouge (2.0.7)
165+
ruby-macho (1.3.1)
166+
rubyzip (1.2.2)
167+
security (0.1.3)
168+
signet (0.11.0)
169+
addressable (~> 2.3)
170+
faraday (~> 0.9)
171+
jwt (>= 1.5, < 3.0)
172+
multi_json (~> 1.10)
173+
simctl (1.6.5)
174+
CFPropertyList
175+
naturally
176+
slack-notifier (2.3.2)
177+
terminal-notifier (1.8.0)
178+
terminal-table (1.8.0)
179+
unicode-display_width (~> 1.1, >= 1.1.1)
180+
thread_safe (0.3.6)
181+
tty-cursor (0.6.0)
182+
tty-screen (0.6.5)
183+
tty-spinner (0.9.0)
184+
tty-cursor (~> 0.6.0)
185+
tzinfo (1.2.5)
186+
thread_safe (~> 0.1)
187+
uber (0.1.0)
188+
unf (0.1.4)
189+
unf_ext
190+
unf_ext (0.0.7.5)
191+
unicode-display_width (1.4.1)
192+
word_wrap (1.0.0)
193+
xcodeproj (1.7.0)
194+
CFPropertyList (>= 2.3.3, < 4.0)
195+
atomos (~> 0.1.3)
196+
claide (>= 1.0.2, < 2.0)
197+
colored2 (~> 3.1)
198+
nanaimo (~> 0.2.6)
199+
xcpretty (0.3.0)
200+
rouge (~> 2.0.7)
201+
xcpretty-travis-formatter (1.0.0)
202+
xcpretty (~> 0.2, >= 0.0.7)
203+
204+
PLATFORMS
205+
ruby
206+
207+
DEPENDENCIES
208+
cocoapods
209+
fastlane
210+
211+
BUNDLED WITH
212+
1.16.2

JavaScriptKit.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "JavaScriptKit"
3-
s.version = "1.0.0"
3+
s.version = "2.0.0"
44
s.summary = "JavaScriptCore replacement for WKWebView"
55

66
s.description =
@@ -21,7 +21,7 @@ DESC
2121
s.resource_bundles = { "JavaScriptKit" => ["Locales/**/*.lproj"] }
2222

2323
s.frameworks = "Foundation", "WebKit"
24-
s.dependency "Result", "~> 3.1"
24+
s.swift_version = "4.2"
2525

2626
s.documentation_url = "https://alexaubry.github.io/JavaScriptKit"
2727
end

0 commit comments

Comments
 (0)