android icons generated
@ -10,7 +10,7 @@
|
|||||||
</intent>
|
</intent>
|
||||||
</queries>
|
</queries>
|
||||||
|
|
||||||
<application android:label="spotube" android:name="${applicationName}" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true">
|
<application android:label="Spotube" android:name="${applicationName}" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true">
|
||||||
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
|
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
|
||||||
<!-- Specifies an Android theme to apply to this Activity as soon as
|
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||||
the Android process has started. This theme is visible to the user
|
the Android process has started. This theme is visible to the user
|
||||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 28 KiB |
@ -1,19 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:path/path.dart' as path;
|
|
||||||
import 'package:dotenv/dotenv.dart';
|
|
||||||
|
|
||||||
void main() async {
|
|
||||||
load();
|
|
||||||
final bool hasKey = env.containsKey("SECRET");
|
|
||||||
final val = hasKey ? jsonDecode(env["SECRET"]!) : null;
|
|
||||||
if (!hasKey || (hasKey && val is! Map && val is! List)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
await File(path.join(
|
|
||||||
Directory.current.path, "lib/models/generated_secrets.dart"))
|
|
||||||
.writeAsString(
|
|
||||||
"final List<Map<String, dynamic>> secrets = ${env["SECRET"]};");
|
|
||||||
}
|
|
14
pubspec.lock
@ -148,13 +148,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.4"
|
version: "1.0.4"
|
||||||
dotenv:
|
|
||||||
dependency: "direct dev"
|
|
||||||
description:
|
|
||||||
name: dotenv
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "3.0.0"
|
|
||||||
fake_async:
|
fake_async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -202,6 +195,13 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.18.2+1"
|
version: "0.18.2+1"
|
||||||
|
flutter_launcher_icons:
|
||||||
|
dependency: "direct dev"
|
||||||
|
description:
|
||||||
|
name: flutter_launcher_icons
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.9.2"
|
||||||
flutter_lints:
|
flutter_lints:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
@ -67,7 +67,7 @@ dev_dependencies:
|
|||||||
# package. See that file for information about deactivating specific lint
|
# package. See that file for information about deactivating specific lint
|
||||||
# rules and activating additional ones.
|
# rules and activating additional ones.
|
||||||
flutter_lints: ^1.0.0
|
flutter_lints: ^1.0.0
|
||||||
dotenv: ^3.0.0
|
flutter_launcher_icons: ^0.9.2
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
# following page: https://dart.dev/tools/pub/pubspec
|
# following page: https://dart.dev/tools/pub/pubspec
|
||||||
@ -117,4 +117,9 @@ msix_config:
|
|||||||
identity_name: oss.krtirtho.spotube
|
identity_name: oss.krtirtho.spotube
|
||||||
msix_version: 1.0.1.0
|
msix_version: 1.0.1.0
|
||||||
logo_path: .\assets\spotube-logo.png
|
logo_path: .\assets\spotube-logo.png
|
||||||
capabilities: "internetClient,internetClientServer,backgroundMediaPlayback"
|
capabilities: "internetClient,internetClientServer,backgroundMediaPlayback"
|
||||||
|
|
||||||
|
|
||||||
|
flutter_icons:
|
||||||
|
android: true
|
||||||
|
image_path: "assets/spotube-logo.png"
|