Comments (4)
I just released a new version - its 100% kotlin + compose only though but it does what you want out of the box: https://github.com/MFlisar/ComposeChangelog
from changelog.
For every new versionCode the library will show an empty box if no changes are put in the changelog.xml - as shown in the screenshot above.
from changelog.
Changelog entries are loaded when the dialog or activity is created - to support what you want this would need to be done before showing the dialog or activity. This was not intended - I never make releases with empty changelogs e.g..
Feel free to add this feature as a pull request though.
The only fast fix I could offer is to add some text like "This version only has internal changes and improvements" or similar as dialog/activity content if the displayed changelog is empty.
from changelog.
+1 for this need.
I don't want to spam my users for each one of my minor/fix releases, but only major and/or the ones with new features..
Depends for each apps/developer though
Looked quickly at the code lib and dirtyfixed by adding an IF but it's so ugly (causes an double changelog build) that I won't even do a PR for that ..
public ChangelogDialogFragment buildAndShowDialog(AppCompatActivity activity, boolean darkTheme) {
boolean shouldShow = checkShouldShowAndUpdateMinVersion(activity);
ChangelogDialogFragment dlg = null;
if (shouldShow) {
if (getRecyclerViewItems(activity).size() > 0) { // <======= HERE
dlg = ChangelogDialogFragment.create(this, darkTheme);
dlg.show(activity.getSupportFragmentManager(), ChangelogDialogFragment.class.getName());
} else {
Log.i(Constants.DEBUG_TAG, "Showing changelog dialog skipped because changelog to show is empty");
}
} else {
Log.i(Constants.DEBUG_TAG, "Showing changelog dialog skipped");
}
ChangelogPreferenceUtil.updateAlreadyShownChangelogVersion(activity);
return dlg;
}
from changelog.
Related Issues (20)
- Improvement - allow url as changelog source
- Materialise look/layouts HOT 1
- Shows only one version at a time HOT 5
- AndroidX migration HOT 1
- ManagedShowOnStart seems to be bugged? HOT 5
- Suggestion - add support for line breaks and other formatting HOT 2
- How to implement this in a complete activity as it appears in the screenshots? HOT 3
- How can I use this dependency with Java 7? HOT 4
- Overriding DialogFragment style HOT 4
- How to support multi-language. HOT 1
- Improvement - custom version formatter HOT 1
- Rating and Ok buttons wont show in builder.buildAndStartActivity HOT 1
- `ChangelogBuilder.getCustomTitle` throws exception HOT 2
- Improvement - summaries HOT 1
- rethink your screenshots HOT 4
- Is it possible to use on Fragments? HOT 4
- Crash launching activity HOT 9
- Configurable buttons on changelog dialog HOT 8
- ManagedShowOnStart make the dialog skip. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from changelog.