Skip to content

Commit

Permalink
Release 2.1.1
Browse files Browse the repository at this point in the history
Fixes #41 : Custom icons for each flavors
  • Loading branch information
AngeloAvv authored Jan 2, 2022
1 parent e8b1abb commit 61240bc
Show file tree
Hide file tree
Showing 105 changed files with 664 additions and 269 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
flutter-version: '2.5.3'
flutter-version: '2.8.1'
- name: Install dependencies
run: flutter pub get
- name: Run tests
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.1
* Added icon directive to generate icons for your flavors
* Bumped dependencies

## 2.1.0
* Added flavor banner in the top-left corner
* Disabled override of the launchScreen attribute in Info.plist if its processor is not specified
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2021 MyLittleSuite
Copyright (c) 2022 MyLittleSuite

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ in your [pubspec.yaml](https://dart.dev/tools/pub/pubspec):

```
dev_dependencies:
flutter_flavorizr: ^2.1.0
flutter_flavorizr: ^2.1.1
```

You can install packages from the command line:
Expand Down Expand Up @@ -100,7 +100,7 @@ flavorizr:
| app | Object | | true | An object describing the general capabilities of an app |
| flavors | Array | | true | An array of items. Each of them describes a flavor configuration |
| [instructions](#available-instructions) | Array | | false | An array of instructions to customize the flavorizr process |
| assetsUrl | String | https://github.com/AngeloAvv/flutter_flavorizr/releases/download/v2.1.0/assets.zip | false | A string containing the URL of the zip assets file. The default points to the current release |
| assetsUrl | String | https://github.com/AngeloAvv/flutter_flavorizr/releases/download/v2.1.1/assets.zip | false | A string containing the URL of the zip assets file. The default points to the current release |
| ide | String | | false | The IDE in which the app is being developed. Currently only `vscode` or `idea` |

##### <a href="#available-instructions">Available instructions</a>
Expand All @@ -113,6 +113,7 @@ flavorizr:
| android:buildGradle | Android | Adds the flavors to the Android build.gradle file |
| android:androidManifest | Android | Changes the reference of the app name in the AndroidManifest.xml |
| android:dummyAssets | Android | Generates some default icons for your custom flavors |
| android:icons | Android | Creates a set of icons for each flavor according to the icon directive |
| flutter:flavors | Flutter | Creates the flutter flavor configuration file |
| flutter:app | Flutter | Creates the app.dart entry |
| flutter:pages | Flutter | Creates a set of default pages for the app |
Expand All @@ -123,6 +124,7 @@ flavorizr:
| ios:buildTargets | iOS | Creates a set of build targets for each flavor and build configuration |
| ios:schema | iOS | Creates a set of schemas for each flavor |
| ios:dummyAssets | iOS | Generates some default icons for your custom flavors |
| ios:icons | iOS | Creates a set of icons for each flavor according to the icon directive |
| ios:plist | iOS | Updates the info.plist file |
| ios:launchScreen | iOS | Creates a set of launchscreens for each flavor |

Expand All @@ -141,9 +143,10 @@ flavorizr:

#### app (under *flavorname*)

| key | type | default | required | description |
|:-----|:-------|:--------|:---------|:--------------------|
| name | String | | true | The name of the App |
| key | type | default | required | description |
|:-----|:-------|:--------|:---------|:------------------------------|
| name | String | | true | The name of the App |
| icon | String | | false | The icon path for this flavor |

#### android (under *flavorname*)

Expand All @@ -152,6 +155,7 @@ flavorizr:
| applicationId | String | | true | The applicationId of the Android App |
| firebase | Object | | false | An object which contains a Firebase configuration |
| generateDummyAssets | bool | true | false | True if you want to generate dummy assets (icon set, strings, etc) |
| icon | String | | false | The icon path for this android flavor |

#### ios (under *flavorname*)

Expand All @@ -161,6 +165,7 @@ flavorizr:
| buildSettings | Dictionary | {} | false | A flavor-specific XCode build configuration dictionary [XCode Build Settings](https://xcodebuildsettings.com) |
| firebase | Object | | false | An object which contains a Firebase configuration |
| generateDummyAssets | bool | true | false | True if you want to generate dummy assets (xcassets, etc) |
| icon | String | | false | The icon path for this iOS flavor |

#### firebase

Expand Down Expand Up @@ -211,6 +216,7 @@ By default, when you do not specify a custom set of processors by appending the
* android:androidManifest
* android:buildGradle
* android:dummyAssets
* android:icons
* flutter:flavors
* flutter:app
* flutter:pages
Expand All @@ -219,6 +225,7 @@ By default, when you do not specify a custom set of processors by appending the
* ios:buildTargets
* ios:schema
* ios:dummyAssets
* android:icons
* ios:plist
* ios:launchScreen
* google:firebase
Expand Down
12 changes: 0 additions & 12 deletions assets/android/res/drawable/launch_background.xml

This file was deleted.

8 changes: 0 additions & 8 deletions assets/android/res/values/styles.xml

This file was deleted.

4 changes: 0 additions & 4 deletions example/lib/flavors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ enum Flavor {
BANANA,
}

extension FlavorName on Flavor {
String get name => this.toString().split('.').last;
}

class F {
static Flavor? appFlavor;

Expand Down
36 changes: 25 additions & 11 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.6"
version: "3.1.8"
args:
dependency: transitive
description:
Expand All @@ -21,21 +21,21 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -96,12 +96,19 @@ packages:
path: ".."
relative: true
source: path
version: "2.1.0"
version: "2.1.1"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
io:
dependency: transitive
description:
Expand All @@ -115,14 +122,14 @@ packages:
name: json_annotation
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.0"
version: "4.4.0"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -156,6 +163,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
sprintf:
dependency: transitive
description:
name: sprintf
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.0"
stack_trace:
dependency: transitive
description:
Expand All @@ -169,7 +183,7 @@ packages:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
string_scanner:
dependency: transitive
description:
Expand All @@ -190,7 +204,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2"
version: "0.4.3"
typed_data:
dependency: transitive
description:
Expand All @@ -204,7 +218,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
xml:
dependency: transitive
description:
Expand All @@ -220,4 +234,4 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.14.0 <3.0.0"
dart: ">=2.15.0 <3.0.0"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.15.0 <3.0.0"

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion lib/exception/existing_flavor_dimensions_exception.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/exception/file_not_found_exception.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/exception/malformed_resource_exception.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/exception/missing_required_fields_exception.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/extensions/extensions+map.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/flutter_flavorizr.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
2 changes: 1 addition & 1 deletion lib/parser/models/config/android.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
8 changes: 3 additions & 5 deletions lib/parser/models/config/android.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/parser/models/config/app.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
7 changes: 5 additions & 2 deletions lib/parser/models/config/app.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/parser/models/config/ios.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down
14 changes: 6 additions & 8 deletions lib/parser/models/config/ios.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/parser/models/flavorizr.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 MyLittleSuite
* Copyright (c) 2022 MyLittleSuite
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down Expand Up @@ -44,7 +44,7 @@ class Flavorizr {

@JsonKey(
defaultValue:
'https://github.com/AngeloAvv/flutter_flavorizr/releases/download/v2.1.0/assets.zip')
'https://github.com/AngeloAvv/flutter_flavorizr/releases/download/v2.1.1/assets.zip')
final String assetsUrl;

@JsonKey()
Expand Down
Loading

0 comments on commit 61240bc

Please sign in to comment.