Skip to content

Commit

Permalink
Fixing localization
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed May 8, 2023
1 parent ef9c8d0 commit 3b8ccc2
Show file tree
Hide file tree
Showing 52 changed files with 75 additions and 22 deletions.
File renamed without changes.
21 changes: 14 additions & 7 deletions app/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
errors:
invalid_annotation_target: ignore
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
Expand All @@ -22,9 +27,11 @@ linter:
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
library_private_types_in_public_api: false
analyzer:
exclude:
- "build/**"
- "**/*.g.dart"
- "lib/generated_plugin_registrant.dart"
use_super_parameters: true
# avoid_print: false # Uncomment to disable the `avoid_print` rule
prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
depend_on_referenced_packages: false # Conflicts with flutter_gen
library_private_types_in_public_api: false # Conflicts with flutter state conventions

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
62 changes: 49 additions & 13 deletions app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}


def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}


apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
Expand All @@ -34,38 +42,66 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "dev.linwood.qeck"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

flavorDimensions "default"
productFlavors {
production {
dimension "default"
applicationIdSuffix ""
manifestPlaceholders = [appName: "Qeck"]
}
development {
dimension "default"
applicationIdSuffix ""
manifestPlaceholders = [appName: "Qeck Nightly"]
}
nightly {
dimension "default"
applicationIdSuffix ".nightly"
manifestPlaceholders = [appName: "Qeck Nightly"]
}
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
if (keystorePropertiesFile.exists()) {
signingConfig signingConfigs.release
} else {
signingConfig signingConfigs.debug
}
}
}
namespace 'dev.linwood.qeck'
}

flutter {
source '../..'
}


dependencies {
testImplementation 'junit:junit:5.8.2'
testImplementation "com.google.truth:truth:1.0"
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
api 'androidx.test:core:1.3.0'
androidTestImplementation 'tools.fastlane:screengrab:2.1.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
}
Binary file removed app/assets/logo.png
Binary file not shown.
Binary file removed app/assets/memory/backside.png
Binary file not shown.
Binary file removed app/assets/rock-paper-scissors/canyon.jpg
Binary file not shown.
10 changes: 10 additions & 0 deletions app/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
targets:
$default:
builders:
json_serializable:
options:
any_map: true
explicit_to_json: true
freezed:
options:
union_key: type
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion app/l10n.yml → app/l10n.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
nullable-getters: false
nullable-getters: false
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ flutter:
generate: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/
- images/
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
Expand Down

0 comments on commit 3b8ccc2

Please sign in to comment.