Giter VIP home page Giter VIP logo

changelog's People

Contributors

hannesa2 avatar mflisar avatar soenkegissel 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

changelog's Issues

Improvement - summaries

Should support following setups:

  • mark some entries as "important"
  • setup via a custom filter (e.g. to show new tags only as summary)

A "show more" button should be shown for the other changelog entries

Idea: automatic summaries: info + new tags are shown and additionally an extendable "show bugfixes" button is shown

Improvement - allow url as changelog source

Should look like following:

Some small other adjustments need to be done for sure as well...

AndroidX migration

My project leads don't want to migrate to AndroidX yet. So, is it possible to let people use either appCompat version or androidx? In buildAndShowDialog(appCompatActivity, false)?

Overriding DialogFragment style

I'm using

builder.buildAndShowDialog(AppCompatActivity, darkTheme);

and my application's style derives attributes from Theme.MaterialComponents.Light instead of Theme.AppCompat.Light as the library does, so the dialog buttons are styled/colored incorrectly. (Such as the "Ok" and "Rate" buttons).

In the lib source, I found the line:

dlg.setStyle(DialogFragment.STYLE_NORMAL, darkTheme ? 
R.style.ChangelogDialogDarkTheme : R.style.ChangelogDialogLightTheme);

but defining my own in my styles.xml doesn't change anything:

<style name="ChangelogDialogLightTheme" parent="@style/Theme.AppCompat.Light.Dialog">
    <item name="android:dialogTheme">@style/Theme.MaterialComponents.Light.Dialog</item>
</style>

(Amongst other variations I've tried, using my own parent style, etc.)

Is this something that isn't possible with the DialogFragment, or am I doing something incorrectly?

Thanks.

Rating and Ok buttons wont show in builder.buildAndStartActivity

Like in object using builder.buildAndStartActivity rating and OK buttons dont show up in changelog, they work properly in builder.buildAndShowDialog.
Bug? or I made something wrong?
thats my code:
ChangelogBuilder builder = new ChangelogBuilder()

            .withTitle("Note Aggiornamento")
            .withRateButton(true)
            .withRateButtonLabel("Votami")
            .withOkButtonLabel("OK")
            .withUseBulletList(true);

    builder.buildAndShowDialog(this, true);

thanks
riccardo

Configurable buttons on changelog dialog

This is more of a feature request.

It would be nice if i could add a customizable button to the changelog dialog. I do not like to bother users by having popups asking them to rate my app, so in the past i've typically added a rate button to my changelog area. Having the option to add an additional button would allow me to do that (assuming i could just pass in a click listener to handle the button press)

ManagedShowOnStart seems to be bugged?

Pardon me if I have misunderstood how your code works, but debugging into the source I have found this:
When an app is first installed and there is no local storage/cache, your function shouldShowChangelogOnStart will always return null, because the lastChangeLog variable was never set in SharedPreferences.

As a result, shouldShow always returns false in buildAndShowDialog, so the dialog never ever gets shown for the first time if you turn on the automatic management. If you set the management setting to false once, force the dialog to show, and then update the app version, the code seems to work as intended.

Could you please take a look at this?

Crash launching activity

Got a crash report of the following exception from a nexus 4 running 6.0.1. Apparently getSupportActionBar is null

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setTitle(java.lang.CharSequence)' on a null object reference
at com.michaelflisar.changelog.internal.ChangelogActivity.onCreate(ChangelogActivity.java:43)
at android.app.Activity.performCreate(Activity.java:6280)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2372)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2479)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5420)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

ManagedShowOnStart make the dialog skip.

Hi!
I assume the feature would show the dialog only one time and never again.
In my situation, instead, the dialog isn't ever showed, and also the first time in the log appears "I/Changelog Library: Showing changelog dialog skipped".
How can I fix this?
Thanks

`ChangelogBuilder.getCustomTitle` throws exception

My app uses this library. While it works, I see a lot of noise in my Crashlytics logs in regards to this exception. More specifically, this is the exception:

Caused by java.lang.NullPointerException: Attempt to read from field 'java.lang.String f8.a.l' on a null object reference at com.michaelflisar.changelog.ChangelogBuilder.getCustomTitle(ChangelogBuilder.java:217) at com.michaelflisar.changelog.internal.ChangelogActivity.onCreate(ChangelogActivity.java:55) at android.app.Activity.performCreate(Activity.java:7009) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

I have not been able to find any solution, so I have simply wrapped my code in a try-catch for now.

Changelog stays empty

If there are no informations about a new version and the versioncode is incremented the changelog is shown but with zero information.

.withMinVersionToShow(120) //currently 123
.withManagedShowOnStart(true)
.withFilter(new ChangelogFilter(ChangelogFilter.Mode.Exact, BuildConfig.FLAVOR, true)) // this will filter out all tags, that do not have the provided filter attribute

See my screenshot:
image

Shows only one version at a time

For instance, I've got 5 buttons on a view. Each button has it's own versionName. Whenever user clicks on a button, dialog pops up on a corresponding version, and only that version will be shown, not others.

rethink your screenshots

I know it's unimportant, but what's about rethink the color in your README.md screenshots
It remembers to websites in the '90 and does not reflect the cool and modern library you created

image

I know taste makes sometimes lonesome

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.