Giter VIP home page Giter VIP logo

flutter-kronos's Introduction

About me

  • ๐Ÿ‘‹ Hi, Iโ€™m a software engineer at One Mount Group in Hanoi, Vietnam
  • ๐Ÿ‘€ Iโ€™m interested in Mobile Software, Information Security, Image Processing and more
  • ๐ŸŒฑ Iโ€™m currently learning iOS app development with Swift
  • ๐Ÿ’ฌ Ask me about Flutter and Dart.
  • ๐Ÿ˜„ Pronouns: he/him/his
  • ๐Ÿ“ซ Reach me at [email protected]

Apps

flutter-kronos's People

Contributors

anan-saadi avatar hautvfami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter-kronos's Issues

problem with flutter 3.22.1

my console show this error:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_kronos:compileDebugKotlin'.

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).

Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 12s
Error: Gradle task assembleDebug failed with exit code 1

Upgrade Gradle

I am unable to run flutter build because it seems that this projects uses a version of gradle that's too old

FAILURE: Build failed with an exception.

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_kronos' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

I like this package and I couldn't find anything similar, please help ๐Ÿ™๐Ÿฝ

Can't get it to work on various Android phones

Hi,
the use of the library should be simple enough and for a long time I've used the Kotlin version of the library successfully in my Android apps.

Unfortunately I can't get this one to work in Flutter. I always get null instead of the expected int or DateTime objects which is unfortunate. I do not even receive the Fallback System time when calling await FlutterKronos.getCurrentTimeMs

FYI I'm using the library in a flutter background service (which should make no difference) and I'm calling FlutterKronos.sync(); when the background service gets started (I also tried re-calling it later on). I try to grab the time every second after making the sync call. I added the INTERNET permission to the Android manifest, so basically I did the usual stuff.

Another thing I'm missing is the ability to specify the list of used NTP servers. I'd really love to see this supported in this library.

I'm on the following sdk versions of flutter/dart:

dart: ">=2.19.0 <3.0.0"
flutter: ">=3.3.0"

FYI the Android test app that can be downloaded via the link at pub.dev still works. But there seems to be something broken along the way. The Android phones that I tested on were mostly Android 12 devices.

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.