Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
<data android:host="topwr.solvro.pl" />
</intent-filter>

<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>

</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/res/drawable/map.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- drawable/map.xml --><vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"><path android:fillColor="#000000" android:pathData="M14.19,14.19L6,18L9.81,9.81L18,6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,10.9A1.1,1.1 0 0,0 10.9,12A1.1,1.1 0 0,0 12,13.1A1.1,1.1 0 0,0 13.1,12A1.1,1.1 0 0,0 12,10.9Z" /></vector>
1 change: 1 addition & 0 deletions android/app/src/main/res/drawable/parking.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- drawable/parking.xml --><vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"><path android:fillColor="#000000" android:pathData="M5,11L6.5,6.5H17.5L19,11M17.5,16A1.5,1.5 0 0,1 16,14.5A1.5,1.5 0 0,1 17.5,13A1.5,1.5 0 0,1 19,14.5A1.5,1.5 0 0,1 17.5,16M6.5,16A1.5,1.5 0 0,1 5,14.5A1.5,1.5 0 0,1 6.5,13A1.5,1.5 0 0,1 8,14.5A1.5,1.5 0 0,1 6.5,16M18.92,6C18.72,5.42 18.16,5 17.5,5H6.5C5.84,5 5.28,5.42 5.08,6L3,12V20A1,1 0 0,0 4,21H5A1,1 0 0,0 6,20V19H18V20A1,1 0 0,0 19,21H20A1,1 0 0,0 21,20V12L18.92,6Z" /></vector>
9 changes: 9 additions & 0 deletions android/app/src/main/res/drawable/radio_luz_logo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportWidth="274"
android:viewportHeight="274"
android:width="170dp"
android:height="170dp">
<path
android:pathData="M207.9 126.6h-17.3V98.9h-13.9v41.6h45.1V98.9h-13.9zm44.2 31.2L274 126.6h-45.1v13.9h18.2l-21.8 31.2H274V157.8zM13.7 123.1H-0.1v45.1h180.3V154.3H13.7z"
android:fillColor="#000000" />
</vector>
6 changes: 6 additions & 0 deletions android/app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="parkings_shortcut_label">Parkingi</string>
<string name="map_shortcut_label">Mapa</string>
<string name="radio_shortcut_label">Radio LUZ</string>
</resources>
6 changes: 6 additions & 0 deletions android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="parkings_shortcut_label">Parkings</string>
<string name="map_shortcut_label">Map</string>
<string name="radio_shortcut_label">Radio LUZ</string>
</resources>
43 changes: 43 additions & 0 deletions android/app/src/main/res/xml/shortcuts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">

<shortcut
android:shortcutId="parkings"
android:enabled="true"
android:icon="@drawable/parking"
android:shortcutShortLabel="@string/parkings_shortcut_label"
android:shortcutLongLabel="@string/parkings_shortcut_label">
<intent
android:action="android.intent.action.VIEW"
android:data="https://topwr.solvro.pl/parkings"
android:targetPackage="com.solvro.topwr"
android:targetClass="com.ryanheise.audioservice.AudioServiceActivity" />
</shortcut>

<shortcut
android:shortcutId="radio"
android:enabled="true"
android:icon="@drawable/radio_luz_logo"
android:shortcutShortLabel="@string/radio_shortcut_label"
android:shortcutLongLabel="@string/radio_shortcut_label">
<intent
android:action="android.intent.action.VIEW"
android:data="https://topwr.solvro.pl/radio-luz"
android:targetPackage="com.solvro.topwr"
android:targetClass="com.ryanheise.audioservice.AudioServiceActivity" />
</shortcut>

<shortcut
android:shortcutId="map"
android:enabled="true"
android:icon="@drawable/map"
android:shortcutShortLabel="@string/map_shortcut_label"
android:shortcutLongLabel="@string/map_shortcut_label">
<intent
android:action="android.intent.action.VIEW"
android:data="https://topwr.solvro.pl/buildings"
android:targetPackage="com.solvro.topwr"
android:targetClass="com.ryanheise.audioservice.AudioServiceActivity" />
</shortcut>

</shortcuts>
Loading