Giter Site home page Giter Site logo

Comments (8)

jcrabanal avatar jcrabanal commented on June 2, 2024 1

I can confirm that you cannot set targetSdkVersion 31 in apps that depend on TrueTime because the build process fails.

However, you can redeclare the receiver in your app main manifest file, and Android Studio manifest merger will ignore the library declaration:

    <!-- Start the Service if applicable on boot -->
    <receiver android:name="com.instacart.library.truetime.BootCompletedBroadcastReceiver"
        android:exported="false">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>

This is not optimal and you need to remember to remove this once the library is fixed, but it works.

from truetime-android.

jcrabanal avatar jcrabanal commented on June 2, 2024 1

@otorresd This library seems unmaintained, you're better off downloading the source and fixing it by yourself like I did. It is very simple and contains only a few classes.

I didn't need the boot broadcast receiver so I just removed all of it, problem solved. Otherwise just check my previous comments.

from truetime-android.

erikhuizinga avatar erikhuizinga commented on June 2, 2024

Might be duplicate of #137 and fixed by #136.

from truetime-android.

jcrabanal avatar jcrabanal commented on June 2, 2024

I am checking now more carefully this, and it seems like it needs a lot more work is needed to make it compatible... I'm getting PendingIntent mutability exceptions everywhere, and this seems to be at fault:

https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability

from truetime-android.

otorresd avatar otorresd commented on June 2, 2024

So, when this will be ready for android 12?

from truetime-android.

erikhuizinga avatar erikhuizinga commented on June 2, 2024

You might just as well create a maintained FOSS fork (assuming that this repo's license permits it). Note that there are many forks of this repo (likely mostly PRs), maybe there is already a maintained one? Note that there also are other issues/PRs about this in this repo: #139 (comment).

from truetime-android.

otorresd avatar otorresd commented on June 2, 2024

Ok, thanks

from truetime-android.

kaushikgopal avatar kaushikgopal commented on June 2, 2024

Duplicated by #136

Feel free to reopen if not the case.

from truetime-android.

Related Issues (20)

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.