Skip to content

Commit

Permalink
Updates after sanity testing for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrikL committed Jan 18, 2022
1 parent 2358fe7 commit 0090dd5
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 25 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,17 @@ an empty string.
## Text string format
The logic will replace **'[\<int>d\<int>]'** in the text strings with random
values according to the number of dice and die type.

# Releasing

1. In `app/build.gradle` update the following values.
Major step when doing non-backwards compatible changes or major extensions, e.g. changing json file formats, adding new tabs
Minor step when doing something smaller, e.g. adding monsters or fixing bugs

> versionCode 3
> versionName "3.0"
2. In Android Studio select `Build->Generate Signed Bundle/APK`
3. Select APK
4. Create a folder for the release in `app\release\`
5. Put the generated APK there
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "my.tablelogic.ruinmasters"
minSdk 26
targetSdk 31
versionCode 2
versionName "2.0"
versionCode 3
versionName "3.0"
archivesBaseName = "RuinMastersTables" + "-" + versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
minSdkVersion 26
Expand Down Expand Up @@ -39,9 +39,9 @@ android {
dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.13.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/monsters/goblins.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"name":"Goblin (random)",
"tags": [ ],
"stats": {
"traits": { "phy": "2d10+2", "min": "2d10", "int": "2d10", "cha": "2d10" },
"traits": { "phy": "[2d10+2]", "min": "[2d10]", "int": "[2d10]", "cha": "[2d10]" },
"skills": { "bur": 69, "kno": 17, "mag": 15, "mel": 49, "soc": 38, "sur": 58 },
"other": { "siz": 0.5, "hp": "14", "car": "12", "db": "0", "act": "2", "arm": "0" },
"move": { "land": 10, "air": -1 }
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/monsters/orcs.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"name":"Orc (random)",
"tags": [ ],
"stats": {
"traits": { "phy": "5d10+5", "min": "3d10", "int": "2d10+5", "cha": "1d10" },
"traits": { "phy": "[5d10+5]", "min": "[3d10]", "int": "[2d10+5]", "cha": "[1d10]" },
"skills": { "bur": 39, "kno": 27, "mag": 25, "mel": 60, "soc": 28, "sur": 52 },
"other": { "siz": 1, "hp": "", "car": "", "db": "", "act": "2", "arm": "1" },
"move": { "land": 12, "air": -1 }
Expand Down
Binary file added app/src/main/res/mipmap-hdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxxhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 0 additions & 16 deletions app/src/main/res/values-night/themes.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<string name="c_bp_d20">1D20</string>
<string name="c_bp_p">BpP</string>
<string name="c_bp_a">Armor</string>
<string name="c_bp_armor">%d+%d</string>
<string name="c_bp_armor">%1$d+%2$d</string>

<string name="c_att_hdr">Attacks</string>
<string name="c_att">Attack</string>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.RuinMastersTables" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<style name="Theme.RuinMastersTables" parent="Theme.MaterialComponents.Light.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
Expand All @@ -12,6 +12,7 @@
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
<item name="android:forceDarkAllowed" tools:targetApi="q"> false </item>
</style>
<style name="LaunchTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/background_splash</item>
Expand Down

0 comments on commit 0090dd5

Please sign in to comment.