Skip to content

Commit

Permalink
build: update release version
Browse files Browse the repository at this point in the history
- Increment versionCode

- Change the About activity and related strings so the versionName
  provided to app/build.gradle.kts and that displayed will be limited to
  the dotted version number and will be separate from any labeling text
  intended to appear only on the About screen.

- Change @string/app_version to 1.1.0

- Add CHANGELOG file
  • Loading branch information
dfyockey committed Oct 9, 2024
1 parent d967566 commit b199258
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Changelog

Significant changes to the RomanDigital project will be documented here.

The format of this changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

This project aims to adhere to [Semantic Versioning](https://server.org).

Regarding project commits as of 2024-08-23, this project aims to adhere to the [Conventional Commits](https://www.conventionalcommits.org) standard. While the standard makes recommendations, it does not limit commit type or scope; consequently, usage in the project's commits are not necessarily so limited.

## [1.1.0]

### Added

* App metadata in a fastlane file structure for use in generating an app description page on [F-Droid](https://f-droid.org)
* distributionSha256Sum value in gradle-wrapper.properties matching the SHA256SUM of file gradle-8.2-bin.zip referred to by the distributionUrl (see https://gradle.org/release-checksums/) to improve app security
* FUNDING.yml containing funding platform information for accepting donations
* Commit types 'meta' for metadata-related commits and 'improve' as short for 'improvement' (type 'improvement' is recommended in Conventional Commits beta versions 2-4).
* This CHANGELOG file

### Changed

* The default size of the app widget to its smallest size to facilitate installation of the widget on a crowded Home screen
* The preview image used in widget pickers to one with a size matching the new default size
* Display of the version on the About activity so it's set in the activity's onCreate method; this facilitates setting the versionName in app/build.gradle.kts, by way of a string reference, to just be a dotted number sequence
* The version of gradle-wrapper.jar to match the version of gradle-8.2-bin.zip (i.e. 8.2) to improve app security
* The README file

### Refactored

* Deleted unneeded and/or unused matter from AndroidManifest.xml

## [1.0.0] - 2024-09-13

### Added

* Everything. This is the first release.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
applicationId = "net.diffengine.romandigitalclock"
minSdk = 21
targetSdk = 34
versionCode = 1
versionCode = 2
versionName = "@string/app_version"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class AboutActivity extends AppCompatActivity {

Expand All @@ -32,6 +33,10 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.about_activity);

TextView tv = findViewById(R.id.tvVersion);

tv.setText(getString(R.string.app_version_label, getString(R.string.app_version)));

ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
Expand Down
5 changes: 2 additions & 3 deletions app/src/main/res/layout/about_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@
android:id="@+id/tvVersion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/txtblk_horiz_padding"
android:paddingRight="@dimen/txtblk_horiz_padding"
android:paddingBottom="@dimen/txtblk_vert_padding"
android:text="@string/app_version"
android:text="@string/app_version_label"
android:textAlignment="center"
android:textSize="12sp"
android:typeface="sans"
app:layout_constraintEnd_toEndOf="parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
<resources>
<string name="app_name">RomanDigital</string>
<string name="app_subtitle">A Digital Clock with Roman Numeral Display</string>
<string name="app_version">Version : 1.0.0</string>
<string name="app_version_label">Version %1$s</string>
<string name="app_version">1.1.0</string>

<string name="title_activity_settings">Settings</string>
<string name="title_activity_about">About</string>
Expand Down

0 comments on commit b199258

Please sign in to comment.