0.4.0 - translations, download fallback, android auto, radio, infinite flow, bugfixes
|
@ -41,7 +41,7 @@ android {
|
|||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "f.f.freezer"
|
||||
minSdkVersion 20
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
|
||||
<!-- Displays an Android View that continues showing the launch screen
|
||||
Drawable until Flutter paints its first frame, then this splash
|
||||
screen fades out. A splash screen is useful to avoid any visual
|
||||
|
@ -64,5 +65,8 @@
|
|||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<meta-data android:name="com.google.android.gms.car.application"
|
||||
android:resource="@xml/automotive_app_desc"/>
|
||||
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
BIN
android/app/src/main/ic_launcher-playstore.png
Normal file
After Width: | Height: | Size: 16 KiB |
|
@ -25,6 +25,7 @@ import java.io.FileInputStream;
|
|||
import java.io.FileOutputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.security.MessageDigest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.function.Function;
|
||||
|
||||
import javax.crypto.Cipher;
|
||||
|
@ -73,10 +74,33 @@ public class MainActivity extends FlutterActivity {
|
|||
tag.setField(FieldKey.ALBUM, call.argument("album").toString());
|
||||
tag.setField(FieldKey.ARTIST, call.argument("artists").toString());
|
||||
tag.setField(FieldKey.TRACK, call.argument("trackNumber").toString());
|
||||
if (call.argument("albumArtist") != null)
|
||||
tag.setField(FieldKey.ALBUM_ARTIST, call.argument("albumArtist").toString());
|
||||
if (call.argument("diskNumber") != null)
|
||||
tag.setField(FieldKey.DISC_NO, call.argument("diskNumber").toString());
|
||||
if (call.argument("year") != null)
|
||||
tag.setField(FieldKey.YEAR, call.argument("year").toString());
|
||||
if (call.argument("bpm") != null)
|
||||
tag.setField(FieldKey.BPM, call.argument("bpm").toString());
|
||||
if (call.argument("label") != null)
|
||||
tag.setField(FieldKey.RECORD_LABEL, call.argument("label").toString());
|
||||
//Genres
|
||||
ArrayList<String> genres = call.argument("genres");
|
||||
for(int i=0; i<genres.size(); i++) {
|
||||
tag.addField(FieldKey.GENRE, genres.get(i));
|
||||
}
|
||||
|
||||
//Album art
|
||||
String cover = call.argument("cover").toString();
|
||||
if (isFlac) {
|
||||
//FLAC Specific tags
|
||||
if (call.argument("date") != null)
|
||||
((FlacTag) tag).setField("DATE", call.argument("date").toString());
|
||||
if (call.argument("albumTracks") != null)
|
||||
((FlacTag) tag).setField("TRACKTOTAL", call.argument("albumTracks").toString());
|
||||
((FlacTag) tag).setField("ITUNESADVISORY", call.argument("explicit").toString());
|
||||
|
||||
|
||||
//FLAC requires different cover adding
|
||||
RandomAccessFile imageFile = new RandomAccessFile(new File(cover), "r");
|
||||
byte[] imageData = new byte[(int) imageFile.length()];
|
||||
|
|
BIN
android/app/src/main/res/drawable-hdpi/ic_action_stop.png
Normal file
After Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 196 B |
Before Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 137 B |
BIN
android/app/src/main/res/drawable-mdpi/ic_action_stop.png
Normal file
After Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 122 B |
BIN
android/app/src/main/res/drawable-xhdpi/ic_action_stop.png
Normal file
After Width: | Height: | Size: 778 B |
Before Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 456 B |
Before Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 181 B |
BIN
android/app/src/main/res/drawable-xxhdpi/ic_action_stop.png
Normal file
After Width: | Height: | Size: 810 B |
Before Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 683 B |
Before Width: | Height: | Size: 734 B |
Before Width: | Height: | Size: 723 B |
Before Width: | Height: | Size: 228 B |
BIN
android/app/src/main/res/drawable-xxxhdpi/ic_action_stop.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 807 B |
Before Width: | Height: | Size: 983 B |
Before Width: | Height: | Size: 953 B |
Before Width: | Height: | Size: 304 B |
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1 KiB |
BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.3 KiB |
BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 7 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 6.4 KiB |
BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 10 KiB |
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#1F1A16</color>
|
||||
</resources>
|
3
android/app/src/main/res/xml/automotive_app_desc.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<automotiveApp>
|
||||
<uses name="media"/>
|
||||
</automotiveApp>
|