Skip to content

Commit

Permalink
Merge pull request #35 from cboard-org/feature/SplashScreen
Browse files Browse the repository at this point in the history
Feature - Add SplashScreen
  • Loading branch information
martinbedouret authored Dec 16, 2022
2 parents 62d8853 + 0dd156c commit 2e39e18
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 38 deletions.
3 changes: 3 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<preference name="Fullscreen" value="true" />
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="AndroidInsecureFileModeEnabled" value="true" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="32" />
<config-file after="uses-sdk" parent="/manifest" target="AndroidManifest.xml">
<queries>
<intent>
Expand All @@ -43,6 +45,7 @@
<icon background="@color/background" density="xhdpi" foreground="public/images/pwa/android/android-launchericon-96-96.png" />
<icon background="@color/background" density="xxhdpi" foreground="public/images/pwa/android/android-launchericon-144-144.png" />
<icon background="@color/background" density="xxxhdpi" foreground="public/images/pwa/android/android-launchericon-192-192.png" />
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="public/res/screen/android/splashscreen.xml" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" />
</edit-config>
Expand Down
65 changes: 32 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"cboard-speech-tts": "github:cboard-org/cboard-speech-tts",
"com.lampa.startapp": "^6.1.6",
"cordova-android": "^10.1.1",
"cordova-android": "^11.0.0",
"cordova-clipboard": "^1.3.0",
"cordova-electron": "^3.0.0",
"cordova-plugin-android-permissions": "^1.1.3",
Expand All @@ -27,7 +27,7 @@
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-file-opener2": "^2.2.1",
"cordova-plugin-fullscreen": "^1.3.0",
"cordova-plugin-google-analytics": "^1.9.0",
"cordova-plugin-google-analytics": "github:danwilson/google-analytics-plugin",
"cordova-plugin-googleplus": "^8.5.2",
"cordova-plugin-market": "git+https://github.com/xmartlabs/cordova-plugin-market.git",
"cordova-plugin-media": "^5.0.3",
Expand Down Expand Up @@ -59,7 +59,6 @@
"cordova-plugin-market": {},
"cordova-plugin-network-information": {},
"com.lampa.startapp": {},
"cordova-plugin-androidx": {},
"cordova-plugin-androidx-adapter": {},
"cordova-plugin-facebook-connect": {
"APP_ID": "123456789",
Expand All @@ -76,8 +75,8 @@
},
"platforms": [
"browser",
"android",
"electron"
"electron",
"android"
]
},
"build": {
Expand Down
18 changes: 18 additions & 0 deletions public/res/screen/android/splashscreen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="56.482395dp"
android:height="58.856915dp"
android:viewportWidth="56.482395"
android:viewportHeight="58.856915">

<group
android:scaleX="0.5"
android:scaleY="0.5"
android:translateX="-20"
android:translateY="-5">
<path
android:fillColor="#ffffff"
android:strokeWidth="0.312751"
android:pathData="M 101.80096,46.179347 c 1.5539,2.2e-4 2.0299,0.0673 3.25998,0.47088 1.64386,0.53921 6.27598,2.72692 8.61665,4.06873 1.76466,1.0116 3.21531,2.05273 3.53975,2.53986 l 0.15239,0.22988 -0.20219,0.18285 c -0.11121,0.0995 -0.26729,0.18 -0.34621,0.18 -0.0832,0 -0.32203,-0.15108 -0.57059,-0.36007 -0.78259,-0.65811 -1.12306,-0.89672 -2.16593,-1.5178 -2.56344,-1.52672 -5.36091,-2.91109 -8.143,-4.02722 -1.89234,-0.75916 -2.49043,-0.89344 -3.92196,-0.88631 -1.0961,0.006 -2.00437,0.12933 -3.398452,0.46254 -0.964543,0.2305 -1.109678,0.23348 -1.240845,0.0333 -0.148236,-0.22612 -0.0959,-0.47731 0.127382,-0.60657 0.246205,-0.14256 1.122418,-0.39539 2.099453,-0.60379 0.716872,-0.15297 0.903262,-0.16639 2.193612,-0.16621 z m -4.669769,2.63127 c 2.181137,0.004 2.553538,0.0189 3.448319,0.14408 2.98212,0.4193 5.30243,1.13923 7.94636,2.46228 0.95376,0.47726 1.23778,0.60474 4.14908,1.88066 2.95425,1.29474 3.53189,1.61659 3.75577,2.08839 0.14842,0.31263 0.087,0.61072 -0.26867,1.31007 -0.35592,0.70011 -1.11589,1.50856 -1.79478,1.90558 -0.7299,0.42681 -1.31788,0.59257 -2.21303,0.62596 -0.89758,0.0335 -1.2349,-0.0215 -2.33212,-0.37666 -1.44394,-0.46724 -1.61543,-0.58857 -1.40702,-0.99158 0.0942,-0.18209 0.12103,-0.19459 0.36284,-0.16904 0.14385,0.0152 0.57095,0.14748 0.94724,0.29358 0.37628,0.14616 0.86989,0.30365 1.09682,0.35175 0.5422,0.11496 1.56456,0.11326 2.06622,-0.006 0.95069,-0.2241 1.95367,-0.97878 2.46784,-1.85296 0.27379,-0.46548 0.28519,-0.70233 0.0442,-0.88077 -0.0862,-0.0637 -1.43956,-0.69203 -3.00793,-1.39319 -1.56837,-0.70116 -3.54277,-1.59133 -4.38728,-1.98035 -2.01366,-0.92755 -3.02136,-1.33084 -4.16568,-1.66185 -2.52413,-0.73008 -5.025535,-1.00867 -7.647228,-0.85307 -1.625563,0.0964 -2.267244,0.17622 -2.48999,0.30744 -0.09951,0.0586 -0.355662,0.33082 -0.567808,0.60657 -0.488706,0.63529 -2.049913,2.23057 -3.586814,3.66436 -2.11629,1.97437 -3.250851,2.95409 -5.38713,4.6504 -0.723888,0.57476 -1.381413,1.1425 -1.459676,1.26022 -0.227398,0.34223 -0.388966,0.8871 -0.448686,1.50675 -0.03062,0.31656 -0.07597,0.6245 -0.09965,0.68412 -0.03784,0.0955 -0.396649,0.36286 -0.487478,0.36286 -0.01877,0 -0.104708,-0.088 -0.193891,-0.19389 -0.141825,-0.16865 -0.164284,-0.24949 -0.163359,-0.6426 0.0043,-0.96311 0.406701,-2.0647 0.98329,-2.6811 0.16541,-0.17698 0.851141,-0.75352 1.523339,-1.28238 3.208809,-2.52455 7.385397,-6.35748 8.40059,-7.70818 0.541436,-0.72034 0.830286,-0.97992 1.268544,-1.1439 0.702123,-0.26269 1.079247,-0.29255 3.647747,-0.28805 z m 2.977449,3.63664 c 0.96131,0.002 1.66946,0.053 3.32092,0.23267 1.15473,0.12555 2.56486,0.27337 3.13259,0.32683 0.56772,0.0535 1.10379,0.1123 1.19098,0.13291 0.50263,0.11893 0.70027,0.72023 0.54011,1.63693 -0.25304,1.44816 -1.33549,2.58508 -2.8916,3.03562 -0.74785,0.21652 -1.99013,0.19592 -4.30695,-0.0692 -0.9922,-0.11364 -1.840639,-0.192 -1.886203,-0.17453 -0.04549,0.0171 -0.248093,0.26658 -0.448686,0.55395 -0.713896,1.0226 -1.581167,1.73552 -2.622949,2.15485 l -0.509634,0.20497 -0.04708,0.52347 c -0.167331,1.86626 -0.384056,2.35971 -1.415338,3.2129 -0.273354,0.22614 -0.516667,0.46045 -0.540092,0.52071 -0.02354,0.0604 -0.06831,0.62537 -0.09965,1.25468 -0.08131,1.62728 -0.356673,2.81042 -0.911251,3.91365 -0.969599,1.92887 -2.631355,3.00177 -4.664211,3.01347 -1.279896,0.007 -2.009142,-0.23553 -1.908376,-0.63705 0.08001,-0.31881 0.07799,-0.32017 1.492894,-0.30467 1.136655,0.013 1.377556,-3.8e-4 1.697847,-0.0997 1.723657,-0.53186 2.736554,-1.88687 3.237825,-4.33187 0.08998,-0.43853 0.142114,-1.02064 0.174509,-1.91388 0.0286,-0.79453 0.07525,-1.34002 0.122039,-1.42641 0.04145,-0.0768 0.250679,-0.25873 0.465324,-0.4044 0.555964,-0.37734 0.968529,-0.81145 1.163272,-1.22698 0.16167,-0.34498 0.168862,-0.40288 0.171693,-1.42642 0.0014,-0.58659 0.02253,-1.09859 0.04708,-1.13835 0.02455,-0.0397 0.317938,-0.16109 0.653683,-0.27143 1.478134,-0.48616 2.155893,-1.06187 3.046706,-2.58418 0.414515,-0.70838 0.388894,-0.69745 1.287925,-0.48193 2.136083,0.51205 4.125453,0.66845 5.425923,0.4293 0.81998,-0.15089 1.69472,-0.81791 2.06899,-1.58152 0.24665,-0.50325 0.41531,-1.40078 0.27973,-1.48458 -0.0404,-0.025 -0.3167,-0.0649 -0.61486,-0.0887 -0.29817,-0.0236 -1.60601,-0.15278 -2.90546,-0.28805 -3.0376,-0.31603 -3.5394,-0.34458 -4.498055,-0.25206 -0.980603,0.0947 -1.490667,0.19783 -4.08814,0.81985 -2.594512,0.62132 -2.861048,0.73408 -3.717013,1.58983 -0.31346,0.31338 -1.019772,1.10663 -1.567663,1.76155 -1.709893,2.04395 -2.450722,2.88003 -4.913518,5.54503 -2.072804,2.24301 -1.99155,2.15487 -2.661683,2.91652 -1.118948,1.27175 -1.192389,1.40485 -4.198945,7.41736 -3.120508,6.24054 -4.516146,9.22835 -9.090265,19.46847 -1.921966,4.3027 -2.22874,4.93507 -2.442879,5.03264 -0.205315,0.0936 -0.213807,0.0921 -0.434864,-0.0279 -0.354954,-0.19225 -0.378221,-0.132 2.215756,-5.91339 4.326949,-9.6439 6.442662,-14.18233 9.12354,-19.58481 1.653755,-3.33267 2.129694,-4.20575 2.980228,-5.4564 0.731687,-1.07589 1.279275,-1.73224 3.301516,-3.96349 1.785904,-1.97045 2.727195,-3.03507 5.065872,-5.71675 1.95361,-2.24018 2.398367,-2.65696 3.320897,-3.12147 0.55221,-0.27809 0.999798,-0.41487 2.060702,-0.63427 0.517042,-0.10702 1.504231,-0.34729 2.193631,-0.53458 1.908246,-0.5184 2.187852,-0.56374 3.603403,-0.55948 z m 0.4875,7.20411 c 0.16828,-0.0536 0.4303,0.0575 0.51516,0.21603 0.0806,0.15033 0.0813,0.14975 -0.29083,1.18823 -0.933749,2.60534 -2.153811,5.06202 -3.35137,6.74707 -0.554129,0.77968 -1.258086,1.60602 -1.476269,1.73109 -0.185486,0.1063 -0.191768,0.10384 -0.365613,-0.0776 l -0.174509,-0.18282 0.102543,-0.26868 c 0.05705,-0.14784 0.396042,-0.66564 0.753364,-1.14943 0.357294,-0.48375 0.784346,-1.07549 0.947256,-1.31563 0.397285,-0.58561 1.307466,-2.45852 2.163159,-4.4482 0.979699,-2.27803 1.036739,-2.39557 1.177119,-2.44013 z m 17.30531,10.24524 c 0.54022,3.9e-4 1.05741,0.0326 1.37103,0.0971 2.31497,0.47462 3.74103,2.45175 3.14919,4.36789 -0.17604,0.57002 -0.47483,0.8825 -1.23254,1.29625 -2.56695,1.40166 -3.69902,2.3992 -5.33729,4.703 -1.21881,1.71392 -2.08154,2.49191 -3.36524,3.03287 -0.90691,0.38217 -2.80934,1.00595 -4.7944,1.5732 -1.95073,0.55742 -2.31064,0.68607 -3.22398,1.14113 -1.22367,0.60968 -1.69597,0.98629 -3.48154,2.77527 -1.914647,1.9183 -2.688867,2.62074 -3.412336,3.10212 -1.200289,0.79865 -2.336149,1.15408 -4.329087,1.35164 -1.129867,0.11193 -1.997674,0.45726 -2.938691,1.17159 -0.565207,0.42906 -1.768861,1.66701 -2.199176,2.26012 -1.013013,1.39615 -1.994078,3.231983 -3.005184,5.622563 -0.306153,0.72386 -0.657597,1.55339 -0.781052,1.84463 -0.229925,0.54247 -0.373989,0.69117 -0.761698,0.78661 -0.143703,0.0354 -0.167143,0.013 -0.23264,-0.19942 -0.06658,-0.21659 -0.05098,-0.30357 0.174523,-0.96664 1.219252,-3.58258 3.177181,-6.982583 5.198772,-9.023803 1.425664,-1.4395 2.693832,-2.06209 4.578393,-2.24626 1.335312,-0.13042 2.052585,-0.31531 3.038417,-0.78661 1.043225,-0.49872 2.151284,-1.43492 3.833309,-3.2406 1.3559,-1.45554 1.96715,-2.02721 2.66724,-2.49552 1.21594,-0.81332 1.74762,-1.02263 4.90244,-1.91944 2.86519,-0.81444 3.45878,-1.00878 4.32912,-1.4264 1.31824,-0.63255 2.15102,-1.40238 3.21565,-2.96638 0.75784,-1.11339 1.42634,-1.89204 2.26564,-2.63681 0.82867,-0.73533 1.41316,-1.14527 2.50939,-1.7671 0.49981,-0.28349 1.01606,-0.6198 1.14944,-0.74505 0.81546,-0.76571 0.69661,-1.94581 -0.29083,-2.86945 -0.80879,-0.75653 -1.6453,-0.9996 -3.24059,-0.9417 -1.16412,0.0423 -2.09865,0.22232 -3.29045,0.6315 -2.08391,0.71546 -2.97017,1.29296 -3.404,2.21856 -0.15713,0.3352 -0.16885,0.41459 -0.16885,1.2353 0,0.77796 0.0232,0.97844 0.2105,1.76984 0.19592,0.82799 0.20436,0.90555 0.11366,1.04421 -0.11929,0.18208 -0.35182,0.24765 -0.57334,0.16337 -0.21285,-0.0809 -0.62008,-0.92609 -0.99433,-2.06346 -0.14805,-0.44995 -0.289,-0.8374 -0.31021,-0.85862 -0.0631,-0.0631 -3.18937,1.66413 -3.66991,2.02744 -0.34951,0.26426 -0.46233,0.50042 -0.41269,0.86415 0.0605,0.44294 0.0508,0.53906 -0.083,0.67306 -0.15675,0.15674 -0.42729,0.0906 -0.54284,-0.13288 -0.12608,-0.24377 -0.23012,-0.87745 -0.18569,-1.13282 0.0617,-0.35312 0.31775,-0.73468 0.67027,-0.99987 0.5937,-0.44662 4.21472,-2.37139 4.71687,-2.5066 0.22549,-0.0607 0.26557,-0.10312 0.42101,-0.4598 0.2281,-0.52348 0.6512,-1.05319 1.12728,-1.40701 0.94908,-0.70542 3.35627,-1.58286 5.12126,-1.86681 0.39542,-0.0636 0.95819,-0.0948 1.49843,-0.0942 z m -20.232926,0.59552 c 0.0455,0.0116 0.103551,0.0634 0.216047,0.16618 l 0.229882,0.2105 0.04982,0.81984 c 0.07525,1.22956 0.245972,1.54162 1.285137,2.34599 0.69092,0.53477 1.52032,1.34421 1.91666,1.87233 1.05378,1.40425 1.79062,3.63888 1.83081,5.54779 0.013,0.60058 0.001,0.67867 -0.10802,0.75889 -0.12103,0.0891 -0.30614,0.11063 -0.45701,0.0498 -0.15071,-0.0607 -0.20303,-0.2656 -0.29913,-1.19097 -0.2906,-2.79815 -1.17184,-4.48547 -3.295958,-6.30115 -0.884102,-0.75571 -1.146462,-1.05682 -1.437508,-1.64803 -0.266421,-0.54119 -0.370292,-0.98623 -0.371145,-1.58704 -0.0013,-0.54102 0.06557,-0.76077 0.299104,-0.97217 0.06196,-0.0562 0.09561,-0.0843 0.141247,-0.0721 z m -7.406282,6.55318 c 0.09431,0.006 0.184186,0.0456 0.257583,0.11915 0.119439,0.11945 0.124638,0.20844 0.124638,1.93327 0,2.5452 -0.130848,4.04542 -0.531802,6.05742 -0.380445,1.90859 -0.884431,3.42156 -1.692273,5.07692 -1.191666,2.44177 -2.688402,4.01961 -4.691969,4.94954 -1.013085,0.4702 -2.174899,0.78137 -2.933145,0.78382 -0.363287,10e-4 -0.433449,-0.0171 -0.517938,-0.13865 -0.127383,-0.18189 -0.123339,-0.24836 0.02759,-0.44036 0.09994,-0.1271 0.21697,-0.17699 0.578842,-0.23545 2.400823,-0.38746 4.133607,-1.37163 5.550591,-3.15472 1.288071,-1.6209 2.390006,-4.33771 2.888836,-7.12377 0.31762,-1.77406 0.441233,-3.21373 0.495811,-5.72227 0.03929,-1.81381 0.05199,-1.93839 0.166176,-2.02191 0.08564,-0.0625 0.182654,-0.0894 0.276964,-0.083 z" />
</group>
</vector>
1 change: 1 addition & 0 deletions public/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="background">#744EFE</color>
<color name="cdv_splashscreen_background">#ac2f8a</color>
</resources>

0 comments on commit 2e39e18

Please sign in to comment.