Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Julian Steenbakker
2024-05-02 12:03:06 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1f6b7d7cf9176f0a599f77be02e57b307ab179da
1f6b7d7c
1 parent
3813554b
refactor: revert gradle version to more compatible versions
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
android/build.gradle
example/android/app/build.gradle
example/android/gradle/wrapper/gradle-wrapper.properties
example/android/settings.gradle
android/build.gradle
View file @
1f6b7d7
...
...
@@ -2,6 +2,7 @@ group 'dev.steenbakker.mobile_scanner'
version
'1.0-SNAPSHOT'
buildscript
{
ext
.
kotlin_version
=
'1.7.22'
repositories
{
google
()
mavenCentral
()
...
...
@@ -9,7 +10,7 @@ buildscript {
dependencies
{
classpath
'com.android.tools.build:gradle:8.3.2'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:
1.7.22
"
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:
$kotlin_version
"
}
}
...
...
@@ -31,12 +32,12 @@ android {
compileSdk
34
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_17
targetCompatibility
JavaVersion
.
VERSION_17
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1
7
'
jvmTarget
=
'1
.8
'
}
sourceSets
{
...
...
@@ -72,8 +73,12 @@ dependencies {
implementation
'com.google.mlkit:barcode-scanning:17.2.0'
}
implementation
'androidx.camera:camera-lifecycle:1.3.2'
implementation
'androidx.camera:camera-camera2:1.3.2'
// org.jetbrains.kotlin:kotlin-bom artifact purpose is to align kotlin stdlib and related code versions.
// See: https://youtrack.jetbrains.com/issue/KT-55297/kotlin-stdlib-should-declare-constraints-on-kotlin-stdlib-jdk8-and-kotlin-stdlib-jdk7
implementation
(
platform
(
"org.jetbrains.kotlin:kotlin-bom:1.8.22"
))
implementation
'androidx.camera:camera-lifecycle:1.3.3'
implementation
'androidx.camera:camera-camera2:1.3.3'
testImplementation
'org.jetbrains.kotlin:kotlin-test'
testImplementation
'org.mockito:mockito-core:5.11.0'
...
...
example/android/app/build.gradle
View file @
1f6b7d7
...
...
@@ -25,16 +25,14 @@ if (flutterVersionName == null) {
android
{
namespace
"dev.steenbakker.mobile_scanner_example"
compileSdk
34
ndkVersion
"25.1.8937393"
// ndkVersion flutter.ndkVersion
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_17
targetCompatibility
JavaVersion
.
VERSION_17
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1
7
'
jvmTarget
=
'1
.8
'
}
sourceSets
{
...
...
example/android/gradle/wrapper/gradle-wrapper.properties
View file @
1f6b7d7
#Thu May 02 10:24:49 CEST 2024
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
8.2
-bin.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
7.6.4
-bin.zip
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
...
...
example/android/settings.gradle
View file @
1f6b7d7
...
...
@@ -18,8 +18,8 @@ pluginManagement {
plugins
{
id
"dev.flutter.flutter-plugin-loader"
version
"1.0.0"
id
"com.android.application"
version
"8.2.2"
apply
false
id
"org.jetbrains.kotlin.android"
version
"1.9.22"
apply
false
id
"com.android.application"
version
"7.3.0"
apply
false
id
"org.jetbrains.kotlin.android"
version
"1.7.22"
apply
false
}
include
":app"
\ No newline at end of file
...
...
Please
register
or
login
to post a comment