mobile: Use local font file

This commit is contained in:
PaddiM8 2022-12-10 02:21:54 +01:00
parent a322f6732c
commit 524999493c
5 changed files with 11 additions and 12 deletions

View File

@ -4,7 +4,7 @@
"description": "kalk mobile",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "gulp"
"build": "gulp; sh remove-proprietary.sh"
},
"keywords": [
"capacitor",

View File

@ -7,9 +7,9 @@ sed -i '/playServices/d' "$dir/build.gradle"
sed -i '/firebase/d' "$dir/build.gradle"
# remove the files that rely on the proprietary services
rm "$dir/src/main/java/com/getcapacitor/plugin/Geolocation.java"
rm "$dir/src/main/java/com/getcapacitor/plugin/PushNotifications.java"
rm "$dir/src/main/java/com/getcapacitor/CapacitorFirebaseMessagingService.java"
rm -f "$dir/src/main/java/com/getcapacitor/plugin/Geolocation.java"
rm -f "$dir/src/main/java/com/getcapacitor/plugin/PushNotifications.java"
rm -f "$dir/src/main/java/com/getcapacitor/CapacitorFirebaseMessagingService.java"
# remove the references to the plugins in Bridge.java
sed -i '/Geolocation/d' "$dir/src/main/java/com/getcapacitor/Bridge.java"
@ -19,4 +19,4 @@ sed -i '/PushNotifications/d' "$dir/src/main/java/com/getcapacitor/Bridge.java"
sed -i '/WAKE_LOCK/d' "$dir/src/main/AndroidManifest.xml"
sed -i '/RECEIVE_BOOT_COMPLETED/d' "$dir/src/main/AndroidManifest.xml"
i=$(grep -n "firebase_messaging_auto_init_enabled" "$dir/src/main/AndroidManifest.xml" | cut -d : -f 1)
sed -i "$i,$(($i+12))d" "$dir/src/main/AndroidManifest.xml"
sed -i "$i,$(($i+12))d" "$dir/src/main/AndroidManifest.xml" 2> /dev/null

BIN
mobile/www/Hack-Regular.ttf Normal file

Binary file not shown.

View File

@ -8,13 +8,6 @@
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<link rel='stylesheet' href="//cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack.css">
<!--<script type="module"
src="https://unpkg.com/@ionic/pwa-elements@latest/dist/ionicpwaelements/ionicpwaelements.esm.js"></script>
<script nomodule
src="https://unpkg.com/@ionic/pwa-elements@latest/dist/ionicpwaelements/ionicpwaelements.js"></script>-->
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="dist/style.css">

View File

@ -1,3 +1,9 @@
@font-face
font-family: "Hack"
src: url("../Hack-Regular.ttf") format("truetype")
font-weight: normal
font-style: normal
body
width: 100%
height: 100%