Skip to content

Commit 438d72b

Browse files
Cambiar Polyfills a locales y cambiar minSdk a 17
1 parent 2f22170 commit 438d72b

File tree

8 files changed

+814
-2
lines changed

8 files changed

+814
-2
lines changed

WebViewCREA/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android {
1212
compileSdkVersion 21
1313

1414
defaultConfig {
15-
minSdkVersion 19
15+
minSdkVersion 17
1616
targetSdkVersion 21
1717
versionCode 1
1818
versionName "1.0"

WebViewCREA/src/main/assets/WebViewCrea/babel.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WebViewCREA/src/main/assets/WebViewCrea/core-js.min.js

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
(function () {
2+
if (typeof window.CustomEvent === "function") return false;
3+
4+
function CustomEvent(event, params) {
5+
params = params || { bubbles: false, cancelable: false, detail: undefined };
6+
var evt = document.createEvent('CustomEvent');
7+
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
8+
return evt;
9+
}
10+
11+
CustomEvent.prototype = window.Event.prototype;
12+
13+
window.CustomEvent = CustomEvent;
14+
})();
15+
if (!String.prototype.endsWith) {
16+
String.prototype.endsWith = function(searchString, position) {
17+
var len = this.length;
18+
var pos = position === undefined ? len : Number(position);
19+
if (isNaN(pos)) {
20+
pos = 0;
21+
}
22+
var endPosition = Math.min(Math.max(Math.floor(pos), 0), len);
23+
var searchStr = String(searchString);
24+
var searchLength = searchStr.length;
25+
var start = endPosition - searchLength;
26+
if (start < 0) {
27+
return false;
28+
}
29+
return subjectString.slice(start, endPosition) === searchStr;
30+
};
31+
}

WebViewCREA/src/main/assets/WebViewCrea/fetch.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)