barcode_scan2 icon indicating copy to clipboard operation
barcode_scan2 copied to clipboard

Namespace

Open Rapafull opened this issue 1 year ago • 4 comments

A problem occurred configuring project ':barcode_scan2'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file.

Rapafull avatar Nov 08 '23 19:11 Rapafull

Downgrade your build to gradle 7.

Only need to add the namespace for the module in the package for working with the newest requisites from gradle 8.x. Can do it manually until they fix it entering in the package and adding the namespace="de.mintware.barcode_scan"

ArocaAlejandro avatar Nov 13 '23 11:11 ArocaAlejandro

any update on the?

mericgerceker avatar Jan 12 '24 14:01 mericgerceker

I have solves this issue with gradle v8.x by doing these thing to build.gradle for this library below: 1- add: namespace "de.mintware.barcode_scan" and compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }

kotlinOptions {
    jvmTarget = '1.8'
}

2 - change these : ext.kotlin_version = "1.7.22" ext.protobuf_version = '0.9.4' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" classpath 'com.android.tools.build:gradle:7.4.2' gradle wrap to 7.4.all.zip

TaifRaoof avatar Feb 23 '24 17:02 TaifRaoof

Is the same. If anyone tries to update internally and build for do a PR, the new Gradle for Flutter 3.16+ break a lot of things,

In a few days, for low time day, i've tried to do this, understand firstly the code and change the minor things deprecated. But I need more time for see why it breaks and doesn't compile. But if we change this file this compiles and doesn't break anything.... I'm not sure if it works 100%. I cannot do this config in the main package and i don't know if the tests pass doing this or if the app crashes using the package with this config.

ArocaAlejandro avatar Feb 26 '24 07:02 ArocaAlejandro

Anyone being able to do a PR to solve this issue?

pst9354 avatar May 23 '24 10:05 pst9354

I've created a PR, you can use my fork untill this is merged by changing your pubspec.yaml to:

dependencies:
  barcode_scan2:
    git:
      url: https://github.com/robinbonnes/barcode_scan2

robinbonnes avatar Jul 10 '24 07:07 robinbonnes

Merged #87 and released v4.3.2 🐶

mono0926 avatar Jul 11 '24 02:07 mono0926