Skip to content

Commit 28fede1

Browse files
authored
Merge pull request #1000 from crossroads/master
[Release] v0.21.3
2 parents 7583208 + e63797f commit 28fede1

34 files changed

+627
-409
lines changed

.circleci/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ jobs:
108108
name: Upload coverage results to Code Climate
109109
command: |
110110
yarn run codeclimate-test-reporter < coverage*/lcov.info
111-
112111
www_build:
113112
<<: *defaults
114113
environment:
@@ -195,7 +194,6 @@ jobs:
195194
exit 1
196195
esac
197196
curl https://api.rollbar.com/api/1/sourcemap/download -F access_token="${ROLLBAR_KEY}" -F version="${APP_VERSION}" -F minified_url=$ASSET_HOST_URL/$SOURCE_MAP
198-
199197
ember_cordova_build:
200198
<<: *defaults
201199
environment:

Gemfile.lock

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ GEM
1515
artifactory (3.0.15)
1616
atomos (0.1.3)
1717
aws-eventstream (1.1.0)
18-
aws-partitions (1.417.0)
19-
aws-sdk-core (3.111.2)
18+
aws-partitions (1.429.0)
19+
aws-sdk-core (3.112.0)
2020
aws-eventstream (~> 1, >= 1.0.2)
2121
aws-partitions (~> 1, >= 1.239.0)
2222
aws-sigv4 (~> 1.1)
2323
jmespath (~> 1.0)
24-
aws-sdk-kms (1.41.0)
25-
aws-sdk-core (~> 3, >= 3.109.0)
24+
aws-sdk-kms (1.42.0)
25+
aws-sdk-core (~> 3, >= 3.112.0)
2626
aws-sigv4 (~> 1.1)
27-
aws-sdk-s3 (1.87.0)
28-
aws-sdk-core (~> 3, >= 3.109.0)
27+
aws-sdk-s3 (1.89.0)
28+
aws-sdk-core (~> 3, >= 3.112.0)
2929
aws-sdk-kms (~> 1)
3030
aws-sigv4 (~> 1.1)
3131
aws-sigv4 (1.2.2)
@@ -83,9 +83,9 @@ GEM
8383
domain_name (0.5.20190701)
8484
unf (>= 0.0.5, < 1.0.0)
8585
dotenv (2.7.6)
86-
emoji_regex (3.2.1)
86+
emoji_regex (3.2.2)
8787
escape (0.0.4)
88-
excon (0.78.1)
88+
excon (0.79.0)
8989
faraday (1.3.0)
9090
faraday-net_http (~> 1.0)
9191
multipart-post (>= 1.2, < 3)
@@ -96,8 +96,8 @@ GEM
9696
faraday-net_http (1.0.1)
9797
faraday_middleware (1.0.0)
9898
faraday (~> 1.0)
99-
fastimage (2.2.1)
100-
fastlane (2.172.0)
99+
fastimage (2.2.3)
100+
fastlane (2.176.0)
101101
CFPropertyList (>= 2.3, < 4.0.0)
102102
addressable (>= 2.3, < 3.0.0)
103103
artifactory (~> 3.0)
@@ -121,6 +121,7 @@ GEM
121121
jwt (>= 2.1.0, < 3)
122122
mini_magick (>= 4.9.4, < 5.0.0)
123123
multipart-post (~> 2.0.0)
124+
naturally (~> 2.2)
124125
plist (>= 3.1.0, < 4.0.0)
125126
rubyzip (>= 2.0.0, < 3.0.0)
126127
security (= 0.1.3)
@@ -145,7 +146,7 @@ GEM
145146
representable (~> 3.0)
146147
retriable (>= 2.0, < 4.0)
147148
signet (~> 0.12)
148-
google-apis-core (0.2.0)
149+
google-apis-core (0.2.1)
149150
addressable (~> 2.5, >= 2.5.1)
150151
googleauth (~> 0.14)
151152
httpclient (>= 2.8.1, < 3.0)
@@ -154,9 +155,10 @@ GEM
154155
retriable (>= 2.0, < 4.0)
155156
rexml
156157
signet (~> 0.14)
158+
webrick
157159
google-apis-iamcredentials_v1 (0.1.0)
158160
google-apis-core (~> 0.1)
159-
google-apis-storage_v1 (0.1.0)
161+
google-apis-storage_v1 (0.2.0)
160162
google-apis-core (~> 0.1)
161163
google-cloud-core (1.5.0)
162164
google-cloud-env (~> 1.0)
@@ -172,7 +174,7 @@ GEM
172174
google-cloud-core (~> 1.2)
173175
googleauth (~> 0.9)
174176
mini_mime (~> 1.0)
175-
googleauth (0.14.0)
177+
googleauth (0.15.1)
176178
faraday (>= 0.17.3, < 2.0)
177179
jwt (>= 1.4, < 3.0)
178180
memoist (~> 0.16)
@@ -220,7 +222,7 @@ GEM
220222
ruby2_keywords (0.0.4)
221223
rubyzip (2.3.0)
222224
security (0.1.3)
223-
signet (0.14.0)
225+
signet (0.14.1)
224226
addressable (~> 2.3)
225227
faraday (>= 0.17.3, < 2.0)
226228
jwt (>= 1.5, < 3.0)
@@ -247,6 +249,7 @@ GEM
247249
unf_ext
248250
unf_ext (0.0.7.7)
249251
unicode-display_width (1.7.0)
252+
webrick (1.7.0)
250253
word_wrap (1.0.0)
251254
xcodeproj (1.19.0)
252255
CFPropertyList (>= 2.3.3, < 4.0)

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace :cordova do
104104
if platform == 'android'
105105
add_plugin('phonegap-plugin-push', '2.1.2')
106106
elsif platform == 'ios'
107-
add_plugin('phonegap-plugin-push', '1.9.2', { SENDER_ID: 'XXXXXXX' })
107+
add_plugin('phonegap-plugin-push', '2.3.0', { SENDER_ID: 'XXXXXXX' })
108108
end
109109

110110
log("Preparing app for #{platform}")

app/components/camera-detect.js

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
import Ember from "ember";
2+
import AjaxPromise from "stock/utils/ajax-promise";
3+
import AsyncMixin, { ERROR_STRATEGIES } from "stock/mixins/async";
4+
5+
export default Ember.Component.extend(AsyncMixin, {
6+
packageService: Ember.inject.service(),
7+
store: Ember.inject.service(),
8+
dataUri: null,
9+
10+
videoStream: "",
11+
useFrontCamera: true,
12+
13+
constraints: {
14+
video: {
15+
width: {
16+
min: 1280,
17+
ideal: 1920,
18+
max: 2560
19+
},
20+
height: {
21+
min: 720,
22+
ideal: 1080,
23+
max: 1440
24+
}
25+
}
26+
},
27+
28+
async initializeCamera() {
29+
this.stopVideoStream();
30+
const cameraType = this.get("useFrontCamera") ? "user" : "environment";
31+
this.set("constraints.video.facingMode", cameraType);
32+
33+
const vStream = await navigator.mediaDevices.getUserMedia(
34+
this.get("constraints")
35+
);
36+
this.set("videoStream", vStream);
37+
this.set("video.srcObject", this.get("videoStream"));
38+
},
39+
40+
stopVideoStream() {
41+
const videoStream = this.get("videoStream");
42+
if (videoStream) {
43+
videoStream.getTracks().forEach(track => {
44+
track.stop();
45+
});
46+
}
47+
},
48+
49+
displayWebcam: Ember.computed.alias("packageService.openImageOverlay"),
50+
51+
didRender() {
52+
if (this.get("packageService.openImageOverlay")) {
53+
let video = this.element.children[0];
54+
video.play();
55+
this.set("video", video);
56+
this.initializeCamera();
57+
}
58+
},
59+
60+
actions: {
61+
snap() {
62+
const canvas = document.getElementById("canvas");
63+
canvas.width = video.videoWidth;
64+
canvas.height = video.videoHeight;
65+
canvas.getContext("2d").drawImage(video, 0, 0);
66+
canvas.toDataURL("image/png");
67+
this.send("didSnap", canvas.toDataURL("image/png"));
68+
},
69+
70+
changeCamera() {
71+
this.toggleProperty("useFrontCamera");
72+
this.initializeCamera();
73+
},
74+
75+
async didSnap(dataUri) {
76+
this.set("packageService.openImageOverlay", false);
77+
this.runTask(async () => {
78+
const signature = await this.get("packageService").generateSignature();
79+
signature.file = dataUri;
80+
const image = await this.get("packageService").uploadToCloudinary(
81+
signature
82+
);
83+
this.get("getImageCallback")(image);
84+
this.stopVideoStream();
85+
});
86+
},
87+
88+
closeOverlay() {
89+
this.stopVideoStream();
90+
this.set("packageService.openImageOverlay", false);
91+
}
92+
}
93+
});

app/components/order-inline-number-input.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

app/components/order-inline-textarea-input.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)