Code Monkey home page Code Monkey logo

qrose's People

Contributors

alexzhirkevich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qrose's Issues

Error when upgrading to version 1.0.0

Hello, I was on the 1.0.0-beta3 version and I wanted to upgrade to the 1.0.0 version. But I got the following error.

It may have come from me, if I put back the 1.0.0-beta3 version. No problem

Duplicate class io.github.alexzhirkevich.qrose.CachedPainter found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.CachedPainter$block$1 found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.ConvertersKt found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.DrawCache found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)
Duplicate class io.github.alexzhirkevich.qrose.ToByteArrayKt found in modules qrose-core-release-runtime (io.github.alexzhirkevich:qrose-core-android:1.0.0) and qrose-release-runtime (io.github.alexzhirkevich:qrose-android:1.0.0)

add background color

Discussed in #7

Originally posted by idrisalshikh June 13, 2024
I've tried to change the background color without success, and I believe this is very important. By default, the QR code color is black, and the background color is determined by the surface where the QR image is displayed. If our design uses a black background, the generated image will be entirely black, making the QR code invisible.

In our application, we can resolve this by changing the background of our container that displays the image. However, the real issue arises when we need to share or save the image as a JPEG. In JPEG format, there is no transparency, so the generated image will have a black background. Since the default QR code color is black, we end up with an all-black image again.

When saving the image in PNG format, I encountered a problem when trying to share the image on WhatsApp; it still appears as a black image. Even if I change the QR code colors to:
colors {
dark = QrBrush.solid(Color.Blue)
frame = QrBrush.solid(Color.Blue)
light = QrBrush.solid(Color.Red)
ball = QrBrush.solid(Color.Blue)
}

image

The image still shows a white background (which represents my application's background color). When I share this image, it looks different because the background changes.

Image

As a result, it would be beneficial if we could control the background color of the QR image directly and add an outer border to ensure consistency across different platforms and formats.

Unable to build Web example

I tried to clone and build webJsApp to see library in action since I'm exploring it to use it.

I encountered a couple for issues

  1. Incorrect Import on line no 5 here
  2. After resolving #1 issue I got below error for copy gradle task on Android Studio HeadgHog Canary 3

`bash
qrose % ./gradlew example:webJsApp:jsBrowserDevelopmentRun

Task :example:webJsApp:jsDevelopmentExecutableCompileSync FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem was found with the configuration of task ':example:webJsApp:jsDevelopmentExecutableCompileSync' (type 'DefaultIncrementalSyncTask').
    • Gradle detected a problem with the following location: '/Users/mohammedhamid/Documents/Projects/KMP/qrose/example/webJsApp/build/processedResources/js/main'.

      Reason: Task ':example:webJsApp:jsDevelopmentExecutableCompileSync' uses this output of task ':example:webJsApp:copyJsResourcesWorkaround' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

      Possible solutions:

      1. Declare task ':example:webJsApp:copyJsResourcesWorkaround' as an input of ':example:webJsApp:jsDevelopmentExecutableCompileSync'.
      2. Declare an explicit dependency on ':example:webJsApp:copyJsResourcesWorkaround' from ':example:webJsApp:jsDevelopmentExecutableCompileSync' using Task#dependsOn.
      3. Declare an explicit dependency on ':example:webJsApp:copyJsResourcesWorkaround' from ':example:webJsApp:jsDevelopmentExecutableCompileSync' using Task#mustRunAfter.

      Please refer to https://docs.gradle.org/8.0/userguide/validation_problems.html#implicit_dependency for more details about this problem.
      `

Doesn't compile with jdk 17+

it doesn't compile on jdk 17+, respectively, i can't use it on new versions of compose.
build log says:
Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.