Skip to content

Commit

Permalink
fix with defaul folder name, 2.0.6 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
kvs-coder committed Dec 20, 2020
1 parent ad4da02 commit 664179b
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.0.6] - 20.12.2020

* Fix with default assets folder

## [2.0.5] - 18.11.2020

* Fix with default MS region
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ String extensions for localization and a translation utility
- Add this to your package's pubspec.yaml file:
``` Dart
dependencies:
localized: ^2.0.5
localized: ^2.0.6
```
- Get dependencies

Expand Down Expand Up @@ -128,6 +128,8 @@ class MyApp extends StatelessWidget {
title: 'Flutter Demo',
supportedLocales: locales,
localizationsDelegates: [
GlobalCupertinoLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
LocalizationService.delegate(locales: locales),
],
theme: ThemeData(
Expand Down
1 change: 1 addition & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

COCOAPODS: 1.9.3
COCOAPODS: 1.10.0
11 changes: 4 additions & 7 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,12 @@
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/../Flutter/Flutter.framework",
"${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down
3 changes: 3 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:localized/localized.dart';

void main() {
Expand All @@ -19,6 +20,8 @@ class MyApp extends StatelessWidget {
title: 'Flutter Demo',
supportedLocales: locales,
localizationsDelegates: [
GlobalCupertinoLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
LocalizationService.delegate(locales: locales),
],
theme: ThemeData(
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.4"
version: "2.0.5"
matcher:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/localized.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LocalizationService {
final Locale locale;
final String dirPath;

LocalizationService._({this.locale, this.dirPath = 'assets/i18n/'});
LocalizationService._({this.locale, this.dirPath = 'assets/i18n'});

Map<String, String> _localizedStrings;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: localized
description: String extensions for different localizations and a translation utility without additional efforts.
version: 2.0.5
version: 2.0.6
homepage: https://github.com/VictorKachalov/localized

environment:
Expand Down

0 comments on commit 664179b

Please sign in to comment.