Coder Social home page Coder Social logo

cert4android's People

Contributors

arnyminerz avatar mbiebl avatar rfc2822 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cert4android's Issues

Not building on Windows machines.

The way the module actually defines package names. As stated by Google in Android Developers, the package name should be stated in the build.gradle file. Updating the build.gradle file to add the namespace option fixes the problem:

android {
    defaultConfig {
        namespace "at.bitfire.cert4android"
    }
}

In any case, this change is recommended in AGP 7.3+. So it should be implemented.

Make this a real library (instead of a submodule)

We would have to care less about compile-time settings when this would be a real library. It would be easier to integrate with other projects.

I think of this is a separate library that

  • can be added as a normal dependency and then be used in other projects

  • has two components, something like a lib and and sample-app directory:

    • lib contains the lib and is what is imported when other projects add the dependency
    • sample-app contains a minimum sample app that also allows to test cert4android in real when debugging (not imported with the dependency)
  • make it a jitpack library

  • document how to embed the library

  • separate demo app from lib

    • build action for jitpack should only build lib
    • demo app can be opened in Android Studio to test and work on the lib

Raise importance notification level

When a certificate becomes invalid over time, users sometimes don't see the certification notification, and then the connections are rejected with time out.

Let's try with one level higher notifications (importance high):

  • in NotificationUtils.createChannels
  • and I think we have to set it in the actual NotificationCompat.Builder too, for Android versions that don't have channels yet

Migrate to Jetpack Compose

There's currently just TrustCertificateActivity in cert4android, so we can migrate it to Jetpack Compose, and see how it goes, before migrating icsx5 and the bigger projects.

Steps:

  • Disable dataBinding and enable compose
  • Configure Jetpack Compose
    • Configure app's build.gradle
    • Add dependencies
  • Add Accompanist Theme Adapter for testing automatic theme migration.
  • Migrate all the UI inside TrustCertificateActivity
  • Remove activity_trust_certificate from layouts.
  • Remove all the XML libraries from build.gradle

Remove AIDL dependency

We don't need the AIDL interfaces; they are from times when cert4android had to communicate between multiple processes (because DAVx⁵ was split into multiple processes).

AIDL is disabled by default since AGP 8.0 and I think we should get rid of it.

It should be replaced by appropriate inter-thread communication.

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.