3 Commits

4 changed files with 77 additions and 9 deletions

3
.gitignore vendored
View File

@ -44,3 +44,6 @@ app.*.map.json
/android/app/release /android/app/release
/android/app/.* /android/app/.*
# Ignore the releases folder.
releases/*

View File

@ -1,6 +1,6 @@
# Recurring Expense Tracker # Recurring Expense Tracker
Recurring expense tracker app for Android. Recurring expense tracker app for Linux and Android.
Add a debit as daily, weekly, monthly, etc, then see how it affects your liquid Add an expense as daily, weekly, monthly, etc, then see how it affects your
assets based on your reported income over different time projections. liquid assets based on your reported income over different time projections.

46
create_release_files.sh Executable file
View File

@ -0,0 +1,46 @@
#!/usr/bin/env bash
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
RELEASE_DIR=$DIR/releases
echo "*** Prepare for Builds ***"
cd $DIR
pwd
mkdir -pv $RELEASE_DIR
echo "*** Get Version ***"
grep 'version:' pubspec.yaml | while read v_text v_number; do
# Skip any newlines found while grepping.
if [[ -z $v_number ]]; then
continue
fi
echo "Creating assets for version '$v_number'."
# Set Up Variables
ANDROID_APK="build/app/outputs/flutter-apk/app-release.apk"
APK_RENAME="$RELEASE_DIR/ExpenseTracker_$v_number.apk"
LINUX_BUNDLE="build/linux/x64/release/bundle"
BUNDLE_RENAME="LinuxBundle_$v_number"
# Build Android App
echo -e "\n*** Android APK ***"
rm -v "$APK_RENAME"
flutter build apk
mv -v $ANDROID_APK "$APK_RENAME"
ls -sh "$APK_RENAME"
# Build Linux Project
echo -e "\n*** Linux Bundle ***"
rm -rv "$RELEASE_DIR/$BUNDLE_RENAME"*
flutter build linux
mv -v $LINUX_BUNDLE "$RELEASE_DIR/$BUNDLE_RENAME"
cd $RELEASE_DIR
zip -r $BUNDLE_RENAME.zip $BUNDLE_RENAME
rm -rv $BUNDLE_RENAME
ls -sh $BUNDLE_RENAME.zip
# Only one version should be found, but just in case, only use the top one!
break
done

View File

@ -38,9 +38,24 @@ class HelpPage extends StatelessWidget {
), ),
child: Column( child: Column(
children: [ children: [
Text("This app is meant to be a simple budgeting tool," Text(
" allowing you to view your income and expenses at a high level" "\t\t This app is meant to be a simple budgeting tool,"
" without micro managing specific budget items or adding receipts."), " allowing you to view your income and expenses at a high"
" level without micro managing specific budget items or"
" adding receipts.",
),
Text(
"\n\t\t Tracked items can be swiped left to right for ,"
" Deletion or right to left for Editing. Items are sorted"
" from highest to lowest so that the biggest impacts are"
" always in view.",
),
Text(
"\n\t\t To subscribe to app updates, install the Obtanium"
" app, then use the URL from the Source Code button below."
" Otherwise the app needs installed manually by downloading"
" APKs from the Source Code /releases/ page.",
),
//Text("Another paragraph.") //Text("Another paragraph.")
], ],
), ),
@ -59,10 +74,12 @@ class HelpPage extends StatelessWidget {
), ),
child: TextButton.icon( child: TextButton.icon(
onPressed: () { onPressed: () {
_launchSite("https://git.hyperling.com/me"); _launchSite(
"https://git.hyperling.com/me/flutter-expense-tracker",
);
}, },
icon: Icon(Icons.code), icon: Icon(Icons.code),
label: Text("Code Repository"), label: Text("Source Code"),
), ),
), ),
), ),
@ -77,7 +94,9 @@ class HelpPage extends StatelessWidget {
), ),
child: TextButton.icon( child: TextButton.icon(
onPressed: () { onPressed: () {
_launchSite("https://hyperling.com"); _launchSite(
"https://hyperling.com",
);
}, },
icon: Icon(Icons.web_asset), icon: Icon(Icons.web_asset),
label: Text("Personal Website"), label: Text("Personal Website"),