TagSpaces is an offline, open source, document manager with tagging support
cordova android fixes
Stanimir2d18546d344f
diff --git a/cordova/config.xml b/cordova/config.xmlindex 7dbcf7f82..ccece2f60 100644--- a/cordova/config.xml+++ b/cordova/config.xml@@ -15,6 +15,7 @@<allow-intent href="sms:*" /><allow-intent href="mailto:*" /><allow-intent href="geo:*" />+ <allow-intent href="*://*.amazonaws.com/*" /><platform name="android"><allow-intent href="market:*" /></platform>@@ -22,7 +23,8 @@<allow-intent href="itms:*" /><allow-intent href="itms-apps:*" /></platform>- <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />+ <plugin name="cordova-plugin-whitelist" spec="^1.3.3" /><plugin name="cordova-plugin-file" spec="^6.0.1" />- <preference name="AndroidPersistentFileLocation" value="Compatibility" />+ <preference name="AndroidPersistentFileLocation" value="Compatibility" />+ <engine name="android" spec="^7.1.4" /></widget>diff --git a/cordova/package.json b/cordova/package.jsonindex 1b1a2f3c0..0f7961d92 100644--- a/cordova/package.json+++ b/cordova/package.json@@ -10,15 +10,17 @@"author": "Apache Cordova Team","license": "Apache-2.0","dependencies": {- "cordova-android": "^7.1.2",+ "cordova-android": "^7.1.4","cordova-plugin-file": "^6.0.1",- "cordova-plugin-whitelist": "^1.3.2"+ "cordova-plugin-whitelist": "^1.3.3"},"cordova": {"plugins": {"cordova-plugin-whitelist": {},"cordova-plugin-file": {}},- "platforms": []+ "platforms": [+ "android"+ ]}}\ No newline at end of filediff --git a/cordova/platforms/android/app/src/main/res/xml/config.xml b/cordova/platforms/android/app/src/main/res/xml/config.xmlindex 008b83ebd..728664aa4 100644--- a/cordova/platforms/android/app/src/main/res/xml/config.xml+++ b/cordova/platforms/android/app/src/main/res/xml/config.xml@@ -20,6 +20,7 @@<allow-intent href="sms:*" /><allow-intent href="mailto:*" /><allow-intent href="geo:*" />+ <allow-intent href="*://*.amazonaws.com/*" /><allow-intent href="market:*" /><preference name="loglevel" value="DEBUG" /><preference name="AndroidPersistentFileLocation" value="Compatibility" />diff --git a/cordova/platforms/android/build.gradle b/cordova/platforms/android/build.gradleindex 569004f45..47f79119a 100644--- a/cordova/platforms/android/build.gradle+++ b/cordova/platforms/android/build.gradle@@ -29,7 +29,7 @@ buildscript {// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files- classpath 'com.android.tools.build:gradle:3.0.1'+ classpath 'com.android.tools.build:gradle:3.1.3'}}diff --git a/cordova/yarn.lock b/cordova/yarn.lockindex acb34704a..8c109be1a 100644--- a/cordova/yarn.lock+++ b/cordova/yarn.lock@@ -2,24 +2,24 @@# yarn lockfile v1-abbrev@1:+abbrev@*, abbrev@1:version "1.1.1"resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==-android-versions@^1.2.1:version "1.4.0"resolved "https://registry.yarnpkg.com/android-versions/-/android-versions-1.4.0.tgz#807ea2941d7e5780e6dd61c5d9b7b6f3c0706e09"integrity sha512-GnomfYsBq+nZh3c3UH/4r9Jt6FuTxdhUJbeHIdYOH5xBhQ8I0ZzC2/RM5IFFIjrzuNWSHb8JWP1lPK0/a26jrg==dependencies:semver "^5.4.1"-ansi@^0.3.1:+ansi@*, ansi@^0.3.1:version "0.3.1"resolved "https://registry.yarnpkg.com/ansi/-/ansi-0.3.1.tgz#0c42d4fb17160d5a9af1e484bace1c66922c1b21"integrity sha1-DELU+xcWDVqa8eSEus4cZpIsGyE=-balanced-match@^1.0.0:+balanced-match@*, balanced-match@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=@@ -29,19 +29,24 @@ [email protected]:resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.0.tgz#a39992d723584811982be5e290bb6a53d86700f1"integrity sha1-o5mS1yNYSBGYK+XikLtqU9hnAPE=+ version "1.6.32"+ resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.32.tgz#5867458b25ecd5bcb36b627c30bb501a13c07e89"+ integrity sha512-ljKJdR3wk9thHfLj4DtrNiOSTxvGFaMjWrG4pW75juXC4j7+XuKJVFdg4kgFMYp85PVkO05dFMj2dk2xVsH4xw==+big-integer@^1.6.7:- version "1.6.36"- resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.36.tgz#78631076265d4ae3555c04f85e7d9d2f3a071a36"- integrity sha512-t70bfa7HYEA1D9idDbmuv7YbsbVkQ+Hp+8KFSul4aE5e/i1bjCNIRYJZlA8Q8p0r9T8cF/RVvwUgRA//FydEyg==+ version "1.6.40"+ resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.40.tgz#02e4cd4d6e266c4d9ece2469c05cb6439149fc78"+ integrity sha512-CjhtJp0BViLzP1ZkEnoywjgtFQXS2pomKjAJtIISTCnuHILkLcAXLdFLG/nxsHc4s9kJfc+82Xpg8WNyhfACzQ==-bplist-parser@^0.1.0:+bplist-parser@*, bplist-parser@^0.1.0:version "0.1.1"resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.1.1.tgz#d60d5dcc20cba6dc7e1f299b35d3e1f95dafbae6"integrity sha1-1g1dzCDLptx+HymbNdPh+V2vuuY=dependencies:big-integer "^1.6.7"-brace-expansion@^1.1.7:+brace-expansion@*, brace-expansion@^1.1.7:version "1.1.11"resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==@@ -49,25 +54,33 @@ brace-expansion@^1.1.7:balanced-match "^1.0.0"concat-map "0.0.1"+concat-map@*, [email protected]:version "0.0.1"resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=-cordova-android@^6.4.0:- version "6.4.0"- resolved "https://registry.yarnpkg.com/cordova-android/-/cordova-android-6.4.0.tgz#54ae8da5728a8d7e5efcc6172d3dcca17bc7fe7d"- integrity sha1-VK6NpXKKjX5e/MYXLT3MoXvH/n0=+cordova-android@^7.1.4:+ version "7.1.4"+ resolved "https://registry.yarnpkg.com/cordova-android/-/cordova-android-7.1.4.tgz#25261ad66cc64f42a30b70be005901fa30e2430e"+ integrity sha512-Rtvu002I83uzfVyCsE6p2krFKVHt9TSAqZUATes+zH+o9cdxYGrLHY+PKCQo4SLCdSMdrkIHCDnQPTYTp/d7+g==dependencies:- android-versions "^1.2.1"- cordova-common "^2.1.0"+ android-versions "1.4.0"+ base64-js "1.2.0"+ big-integer "1.6.32"+ cordova-common "2.2.5"elementtree "0.1.6"- nopt "^3.0.1"- properties-parser "^0.2.3"- q "^1.4.1"- shelljs "^0.5.3"+ glob "5.0.15"+ nopt "3.0.1"+ path-is-absolute "1.0.1"+ plist "2.1.0"+ properties-parser "0.2.3"+ q "1.4.1"+ sax "0.3.5"+ semver "5.5.0"+ shelljs "0.5.3"+ xmlbuilder "8.2.2"-cordova-common@^2.1.0:version "2.2.5"resolved "https://registry.yarnpkg.com/cordova-common/-/cordova-common-2.2.5.tgz#f93cef2ad494cfcbf56c46e3d612aaa9cb5fcc32"integrity sha1-+TzvKtSUz8v1bEbj1hKqqctfzDI=@@ -84,12 +97,17 @@ cordova-common@^2.1.0:underscore "^1.8.3"unorm "^1.3.3"-cordova-plugin-whitelist@^1.3.2:+cordova-plugin-file@^6.0.1:+ version "6.0.1"+ resolved "https://registry.yarnpkg.com/cordova-plugin-file/-/cordova-plugin-file-6.0.1.tgz#49606b8c15a5688d4728f92e4a7325a061de07f5"+ integrity sha1-SWBrjBWlaI1HKPkuSnMloGHeB/U=++cordova-plugin-whitelist@^1.3.3:version "1.3.3"resolved "https://registry.yarnpkg.com/cordova-plugin-whitelist/-/cordova-plugin-whitelist-1.3.3.tgz#b5e85ecdbbfe5aeded40a1bf4ee2372e67d96fb4"integrity sha1-tehezbv+Wu3tQKG/TuI3LmfZb7Q=-cordova-registry-mapper@^1.1.8:+cordova-registry-mapper@*, cordova-registry-mapper@^1.1.8:version "1.1.15"resolved "https://registry.yarnpkg.com/cordova-registry-mapper/-/cordova-registry-mapper-1.1.15.tgz#e244b9185b8175473bff6079324905115f83dc7c"integrity sha1-4kS5GFuBdUc7/2B5MkkFEV+D3Hw=@@ -101,7 +119,7 @@ [email protected]:dependencies:sax "0.3.5"-glob@^5.0.13:[email protected], glob@^5.0.13:version "5.0.15"resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1"integrity sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=@@ -112,7 +130,7 @@ glob@^5.0.13:once "^1.3.0"path-is-absolute "^1.0.0"-inflight@^1.0.4:+inflight@*, inflight@^1.0.4:version "1.0.6"resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=@@ -120,38 +138,38 @@ inflight@^1.0.4:once "^1.3.0"wrappy "1"-inherits@2:+inherits@*, inherits@2:version "2.0.3"resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=-"minimatch@2 || 3", minimatch@^3.0.0:+minimatch@*, "minimatch@2 || 3", minimatch@^3.0.0:version "3.0.4"resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==dependencies:brace-expansion "^1.1.7"-nopt@^3.0.1:- version "3.0.6"- resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"- integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k=+ version "3.0.1"+ resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.1.tgz#bce5c42446a3291f47622a370abbf158fbbacbfd"+ integrity sha1-vOXEJEajKR9HYio3CrvxWPu6y/0=dependencies:abbrev "1"-once@^1.3.0:+once@*, once@^1.3.0:version "1.4.0"resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=dependencies:wrappy "1"-path-is-absolute@^1.0.0:[email protected], path-is-absolute@^1.0.0:version "1.0.1"resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=-plist@^2.1.0:[email protected], plist@^2.1.0:version "2.1.0"resolved "https://registry.yarnpkg.com/plist/-/plist-2.1.0.tgz#57ccdb7a0821df21831217a3cad54e3e146a1025"integrity sha1-V8zbeggh3yGDEhejytVOPhRqECU=@@ -160,11 +178,16 @@ plist@^2.1.0:xmlbuilder "8.2.2"xmldom "0.1.x"-properties-parser@^0.2.3:version "0.2.3"resolved "https://registry.yarnpkg.com/properties-parser/-/properties-parser-0.2.3.tgz#f7591255f707abbff227c7b56b637dbb0373a10f"integrity sha1-91kSVfcHq7/yJ8e1a2N9uwNzoQ8=+ version "1.4.1"+ resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e"+ integrity sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=+q@^1.4.1:version "1.5.1"resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"@@ -175,27 +198,32 @@ [email protected]:resolved "https://registry.yarnpkg.com/sax/-/sax-0.3.5.tgz#88fcfc1f73c0c8bbd5b7c776b6d3f3501eed073d"integrity sha1-iPz8H3PAyLvVt8d2ttPzUB7tBz0=+ version "5.5.0"+ resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"+ integrity sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==+semver@^5.4.1:version "5.6.0"resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004"integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==-shelljs@^0.5.3:[email protected], shelljs@^0.5.3:version "0.5.3"resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.5.3.tgz#c54982b996c76ef0c1e6b59fbdc5825f5b713113"integrity sha1-xUmCuZbHbvDB5rWfvcWCX1txMRM=-underscore@^1.8.3:+underscore@*, underscore@^1.8.3:version "1.9.1"resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961"integrity sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==-unorm@^1.3.3:+unorm@*, unorm@^1.3.3:version "1.4.1"resolved "https://registry.yarnpkg.com/unorm/-/unorm-1.4.1.tgz#364200d5f13646ca8bcd44490271335614792300"integrity sha1-NkIA1fE2RsqLzURJAnEzVhR5IwA=-wrappy@1:+wrappy@*, wrappy@1:version "1.0.2"resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=@@ -205,7 +233,7 @@ [email protected]:resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773"integrity sha1-aSSGc0ELS6QuGmE2VR0pIjNap3M=+xmldom@*, [email protected]:version "0.1.27"resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.27.tgz#d501f97b3bdb403af8ef9ecc20573187aadac0e9"integrity sha1-1QH5ezvbQDr4757MIFcxh6rawOk=diff --git a/package.json b/package.jsonindex ad1f9b15e..bca4769f9 100644--- a/package.json+++ b/package.json@@ -46,7 +46,7 @@"setup-pro": "node scripts/setuppro.js","prepare-web": "rimraf web/dist && rimraf web/node_modules && cp -r app/node_modules web && cp LICENSE.txt web && cp app/third-party.txt web && yarn build-web","run-web": "yarn prepare-web && node scripts/webdavserver.js",- "run-android": "cd cordova && cordova run android && cd ..",+ "run-android": "cd cordova && cross-env CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL=https\\://services.gradle.org/distributions/gradle-4.4.1-all.zip cordova run android && cd ..","cordova-crosswalk": "cd cordova && cordova plugin add cordova-plugin-crosswalk-webview && cd ..","cordova-android": "cd cordova && cordova platform add android && cd ..","cordova-create": "cordova create ./cordova org.tagspaces.mobile TagSpaces",