mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-12 09:30:40 +01:00
mobile: Use local font file
This commit is contained in:
parent
a322f6732c
commit
524999493c
@ -4,7 +4,7 @@
|
|||||||
"description": "kalk mobile",
|
"description": "kalk mobile",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "gulp"
|
"build": "gulp; sh remove-proprietary.sh"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"capacitor",
|
"capacitor",
|
||||||
|
@ -7,9 +7,9 @@ sed -i '/playServices/d' "$dir/build.gradle"
|
|||||||
sed -i '/firebase/d' "$dir/build.gradle"
|
sed -i '/firebase/d' "$dir/build.gradle"
|
||||||
|
|
||||||
# remove the files that rely on the proprietary services
|
# remove the files that rely on the proprietary services
|
||||||
rm "$dir/src/main/java/com/getcapacitor/plugin/Geolocation.java"
|
rm -f "$dir/src/main/java/com/getcapacitor/plugin/Geolocation.java"
|
||||||
rm "$dir/src/main/java/com/getcapacitor/plugin/PushNotifications.java"
|
rm -f "$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/CapacitorFirebaseMessagingService.java"
|
||||||
|
|
||||||
# remove the references to the plugins in Bridge.java
|
# remove the references to the plugins in Bridge.java
|
||||||
sed -i '/Geolocation/d' "$dir/src/main/java/com/getcapacitor/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 '/WAKE_LOCK/d' "$dir/src/main/AndroidManifest.xml"
|
||||||
sed -i '/RECEIVE_BOOT_COMPLETED/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)
|
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
BIN
mobile/www/Hack-Regular.ttf
Normal file
Binary file not shown.
@ -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">
|
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="format-detection" content="telephone=no">
|
||||||
<meta name="msapplication-tap-highlight" content="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="icon" type="image/x-icon" href="favicon.ico">
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
<link rel="stylesheet" href="dist/style.css">
|
<link rel="stylesheet" href="dist/style.css">
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
@font-face
|
||||||
|
font-family: "Hack"
|
||||||
|
src: url("../Hack-Regular.ttf") format("truetype")
|
||||||
|
font-weight: normal
|
||||||
|
font-style: normal
|
||||||
|
|
||||||
body
|
body
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 100%
|
height: 100%
|
||||||
|
Loading…
Reference in New Issue
Block a user