Fixes for tool/generate_pubspec.dart. Add pubspec into .gitignore

This commit is contained in:
M 2022-01-10 17:04:58 +02:00
parent 469effd9ef
commit d5e9bf3b3c
10 changed files with 8 additions and 18 deletions

8
.gitignore vendored
View file

@ -119,5 +119,11 @@ lib/monero/monero.dart
ios/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_180.png
ios/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_120.png
android/app/src/main/res/
android/app/src/main/res/mipmap-*
android/app/src/main/res/drawable/ic_launcher.png
!android/app/src/main/res/drawable/launch_background.xml
!android/app/src/main/res/values/styles.xml
assets/images/app_logo.png
/pubspec.yaml
/pubspec.lock

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@android:color/white" />
<foreground android:drawable="@drawable/ic_launcher" />
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View file

@ -1,5 +0,0 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages: {}
sdks:
dart: ">=2.7.0 <3.0.0"

View file

@ -1,6 +0,0 @@
name: cake_wallet
description: Cake Wallet.
version: 0.0.0
environment:
sdk: ">=2.7.0 <3.0.0"

View file

@ -9,7 +9,7 @@ Future<void> main(List<String> args) async {
final pubspecDescription = File(pubspecDescriptionPath);
if (!pubspecBase.existsSync() || !pubspecDescription.existsSync()) {
throw('$pubspecBasePath or $pubspecDescriptionPath doesn't exists');
throw("$pubspecBasePath or $pubspecDescriptionPath doesn't exists");
}
final pubspecBaseContent = await pubspecBase.readAsString();