Skip to content

Commit

Permalink
chore: update app dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
simonoppowa committed Dec 20, 2024
1 parent 4431986 commit e85e3c4
Show file tree
Hide file tree
Showing 8 changed files with 250 additions and 209 deletions.
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "3.27.1"
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ app.*.map.json
# nix related
result
.direnv/

# FVM Version Cache
.fvm/
11 changes: 4 additions & 7 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ if (flutterVersionName == null) {
}

android {
compileSdkVersion 34
namespace "com.opennutritracker.ont.opennutritracker"
compileSdkVersion 35
ndkVersion flutter.ndkVersion

compileOptions {
Expand All @@ -38,7 +39,7 @@ android {
}

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = JavaVersion.VERSION_1_8
}

sourceSets {
Expand All @@ -48,7 +49,7 @@ android {
defaultConfig {
applicationId "com.opennutritracker.ont.opennutritracker"
minSdkVersion 21
targetSdkVersion 34
targetSdkVersion 35
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand All @@ -72,7 +73,3 @@ android {
flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22"
}
3 changes: 2 additions & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Thu Dec 19 18:19:34 CET 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
2 changes: 1 addition & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.1.2" apply false
id "com.android.application" version "8.3.1" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}

Expand Down
8 changes: 4 additions & 4 deletions lib/features/scanner/scanner_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ class _ScannerScreenState extends State<ScannerScreen> {
actions: [
IconButton(
icon: ValueListenableBuilder(
valueListenable: cameraController.torchState,
valueListenable: cameraController,
builder: (context, state, child) {
switch (state) {
case TorchState.off:
switch (state.torchState) {
case TorchState.off || TorchState.unavailable:
return const Icon(Icons.flash_off_outlined,
color: Colors.grey);
case TorchState.on:
case TorchState.on || TorchState.auto:
return const Icon(Icons.flash_on_outlined);
}
},
Expand Down
Loading

0 comments on commit e85e3c4

Please sign in to comment.