Skip to content

Commit

Permalink
Update targetSdk + minSdk + update flutter version
Browse files Browse the repository at this point in the history
  • Loading branch information
ngthailam committed Jan 26, 2024
1 parent fda5531 commit 5c6b2c3
Show file tree
Hide file tree
Showing 13 changed files with 489 additions and 356 deletions.
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ linter:
rules:
avoid_print: false # Uncomment to disable the `avoid_print` rule
prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
unnecessary_question_mark: false
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ android {

defaultConfig {
applicationId "vn.thailam.flutter_password_saver"
minSdkVersion 21
targetSdkVersion 31
minSdkVersion 24
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
4 changes: 3 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
# Prevent crashes on Android 6 according to https://docs.flutter.dev/deployment/android
# android.bundle.enableUncompressedNativeLibs=false
# android.bundle.enableUncompressedNativeLibs=false

org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
162 changes: 82 additions & 80 deletions lib/main.config.dart

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

1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import 'package:flutter_password_saver/initializer/uri_handler.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get_it/get_it.dart';
import 'package:injectable/injectable.dart';
import 'generated/l10n.dart';
import 'main.config.dart';

final RouteObserver<ModalRoute> routeObserver = RouteObserver<ModalRoute>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Future<bool?> showAuthenBottomSheet(BuildContext context,
),
),
builder: (context) {
return Wrap(
children: const [AuthenBottomSheet()],
return const Wrap(
children: [AuthenBottomSheet()],
);
},
);
Expand Down
4 changes: 2 additions & 2 deletions lib/presentation/page/onboarding/onboarding_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Future showOnboardingBottomSheet(BuildContext context) {
),
),
builder: (context) {
return Wrap(
children: const [OnboardingBottomSheet()],
return const Wrap(
children: [OnboardingBottomSheet()],
);
},
);
Expand Down
4 changes: 2 additions & 2 deletions lib/presentation/page/preferences/preferences_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ class _PreferencesPageState extends State<PreferencesPage> {
if (state.deleteLoadState == LoadState.none) {
return _primary(state);
} else {
return Center(
return const Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: const [
children: [
LoadingIndicator(),
],
),
Expand Down
4 changes: 2 additions & 2 deletions lib/presentation/widget/delete_account_button_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class DeleteAccountButton extends StatelessWidget {
color: AppColors.red500,
),
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Row(
child: const Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: const [
children: [
Icon(
Icons.delete,
color: AppColors.white500,
Expand Down
Loading

0 comments on commit 5c6b2c3

Please sign in to comment.