Skip to content
Proyek

Tentang

Dime adalah pelacak pengeluaran yang indah, dikembangkan dengan mempertimbangkan pedoman desain iOS.

Pengembangan web dan aplikasi

Cara angka ini diukur

1,941 bintang292 Fork +2 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+2
dalam 7 hari
+10
dalam 15 hari
+24
dalam 1 bulan
+37

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Dime

Dime is a 100% free, open-source personal finance tracker built with iOS design guidelines in mind. Download Dime on the App Store.

App Preview

Why You’ll Love Dime

  • 100% free forever, with no paywall or ads.
  • Beautifully iOS-centric design, with simplicity at its core.
  • Insightful expenditure breakdowns over various time periods.
  • Create budgets based on expense categories and stick to them.
  • Create recurring expenses with custom time frames.
  • Sync your expenses, categories and budgets with other devices via iCloud.
  • Custom reminders to input your expenses.
  • Biometric authentication to protect your data.
  • Home screen quick actions make capturing new expenses a breeze.
  • A gorgeous night theme for dark mode fanatics.
  • Informative home and lock screen widgets keep you updated at a glance.

How to help

  • Please feel free to raise issues for any inquiries, suggestions for improvements, or bugs you encounter.
  • You're welcome to fork the repository and propose changes through a pull request, although the decision to merge it rests with the project maintainers.
  • To follow along with app updates, follow @budgetwithdime on X / Twitter
  • Feel free to drop Rafael a DM!

How to build

Required

  • Xcode

Build Steps

  • Clone this project either via Xcode or terminal: git clone https://github.com/rafsoh/dimeApp.git
  • For branch selection use: --single-branch --branch [branchname] after clone
  • After completion, open dime.xcodeproj using Xcode.
  • Please let all dependecies update automatically but we would recommend to run File > Packages > Resolve Package Versions to ensure, everything is updated.

Release and Archive builds upload dSYMs to Sentry when a token is available. The build still succeeds without one. Put the token in ~/.sentryclirc:

[auth]
token=YOUR_TOKEN

Or export SENTRY_AUTH_TOKEN in the environment. Do not commit the token. Setup and how to confirm an upload are in SENTRY.md.

Merges to main are archived and sent to TestFlight by GitHub Actions. The secrets and the one-time Apple setup are in TestFlight below.

TestFlight

.github/workflows/testflight.yml runs on every push to main (a merged pull request) and when someone starts it by hand. It does not run on pull requests. The repository is public, so a fork's pull request must not receive these secrets. The job also checks github.repository == 'rafsoh/dimeApp' before it uses them.

One upload runs at a time. An upload that has started is left to finish.

The lane is fastlane ios testflight. On a Mac it reads the same API key as the metadata lanes (~/.appstoreconnect/testflight.env and ~/.appstoreconnect/private_keys/AuthKey_<id>.p8). On CI it reads the repository secrets below. ASC_KEY_P8 is written to a private temp file for xcodebuild and is never printed. When DEV_CERT_P12_BASE64 and DEV_CERT_PASSWORD are set, the .p12 is decoded into a temporary keychain for that job and is never printed. The job deletes that keychain afterward, including when the archive fails.

Repository secrets

The App Store Connect and Sentry secrets are already set on rafsoh/dimeApp. Add DEV_CERT_P12_BASE64 and DEV_CERT_PASSWORD as well, so CI can reuse the existing development certificate. The workflow uses these names:

Secret Value
ASC_KEY_ID App Store Connect API key ID
ASC_ISSUER_ID Issuer ID from the API keys page
ASC_KEY_P8 The .p8 file as PEM text, including the -----BEGIN PRIVATE KEY----- line
SENTRY_AUTH_TOKEN Sentry org:ci token for dime-1x / dime-ios. See SENTRY.md.
DEV_CERT_P12_BASE64 Base64 of the Apple Development .p12. Optional. Set it together with DEV_CERT_PASSWORD so CI reuses that certificate.
DEV_CERT_PASSWORD Password for that .p12. Optional, and required when DEV_CERT_P12_BASE64 is set.

They live under Settings → Secrets and variables → Actions. To replace one:

printf '%s' 'YOUR_KEY_ID' | gh secret set ASC_KEY_ID --repo rafsoh/dimeApp
printf '%s' 'YOUR_ISSUER_ID' | gh secret set ASC_ISSUER_ID --repo rafsoh/dimeApp
gh secret set ASC_KEY_P8 --repo rafsoh/dimeApp < AuthKey_YOUR_KEY_ID.p8
printf '%s' 'YOUR_SENTRY_TOKEN' | gh secret set SENTRY_AUTH_TOKEN --repo rafsoh/dimeApp
base64 -i AppleDevelopment.p12 | gh secret set DEV_CERT_P12_BASE64 --repo rafsoh/dimeApp
printf '%s' 'YOUR_P12_PASSWORD' | gh secret set DEV_CERT_PASSWORD --repo rafsoh/dimeApp

ASC_KEY_P8 is the PEM file itself. SENTRY_AUTH_TOKEN is passed through to the Release archive for dSYM upload. The archive still succeeds when that token is missing; crash reports from that build stay unsymbolicated. The three App Store Connect secrets are required, and the job stops before archiving when one of them is absent.

DEV_CERT_P12_BASE64 and DEV_CERT_PASSWORD are optional, and they are used only as a pair. When either one is missing, the job keeps automatic signing as it is today and prints a warning. The .p12 and its password are never printed.

Development certificate

The archive uses Automatic signing on a fresh runner. With an empty keychain, Xcode creates an Apple Development: Created via API certificate for team 5UNNTHMF44 on every run. Apple caps how many certificates the team can hold. Export the development certificate that already exists and store it once, so each run reuses that identity.

On the Mac that already has the certificate:

  1. Open Keychain Access.
  2. Select My Certificates.
  3. Select Apple Development: Rafael Soh. Exporting from My Certificates includes the private key.
  4. Export a .p12 and choose a password.

Then set the two secrets (the base64 and gh secret set commands above). The workflow creates a temporary keychain, unlocks it, sets a six-hour lock timeout, puts that keychain first on the user search list and keeps the login keychain there, makes the temporary keychain the default, imports the .p12 with /usr/bin/codesign allowed to use the key, and sets the key partition list (apple-tool:, apple:, codesign:) so codesign can sign without a prompt. An always() step deletes that keychain and any decoded .p12, including when a later step fails. That cleanup step still succeeds when the keychain was never created.

When Apple reports that the team has reached the maximum number of certificates, revoke every Apple Development: Created via API certificate for team 5UNNTHMF44 in the Apple Developer portal (Certificates). Leave Apple Development: Rafael Soh in place, add the two secrets, and run the workflow again. The lane prints those steps when it sees that error.

Export is unchanged: it still uses Apple cloud-managed distribution signing.

One-time Apple setup

  1. App Store Connect → Users and Access → Integrations → App Store Connect API → Team Keys → Generate a key. The role is Admin. Download the .p8 once (Apple does not offer it again) and note the Key ID and the Issuer ID.
  2. The key has to be a team key. Individual keys cannot call the provisioning API.
  3. Admin is the role Xcode checks for cloud-managed distribution signing. A Developer or App Manager key fails export with Cloud signing permission error ("You haven't been given access to cloud-managed distribution certificates"). Account Holder and Admin can cloud-sign. The private key stays in Apple's cloud signing service.
  4. The app's bundle IDs already exist for team 5UNNTHMF44, with the capabilities the entitlements use: com.rafaelsoh.dime, com.rafaelsoh.dime.ExpenditureWidget, com.rafaelsoh.dime.BudgetIntent, and com.rafaelsoh.dime.BudgetIntentUI.
  5. Accept any pending Apple Developer Program agreements. An unsigned agreement fails the upload.

Signing on the runner: both the archive and the export pass -allowProvisioningUpdates and the API key. The archive has to sign, because with signing turned off Xcode ad-hoc signs the prebuilt Sentry.framework while thinning it, and App Store Connect rejects that signature. The archive keeps CODE_SIGN_STYLE=Automatic and leaves CODE_SIGN_IDENTITY unset. With DEV_CERT_P12_BASE64 installed in the temporary keychain, Xcode finds the existing Apple Development identity and does not create another one. Export uses an options plist of method app-store-connect, destination upload, team 5UNNTHMF44, automatic signing, manageAppVersionAndBuildNumber false, and uploadSymbols true. Xcode cloud-signs the app, the extensions, and the embedded framework, and reuses the team's cloud-managed distribution certificate, so export does not replace the distribution certificate scripts/testflight.sh uses on a Mac.

Build numbers

The build number is chosen at archive time and is not committed first. It is one higher than the newest TestFlight build for that marketing version (latest_testflight_build_number via the API key). When the marketing version is unchanged it is also kept above CURRENT_PROJECT_VERSION, so a number already written in the project is not reused. A new patch version starts at build 1 when TestFlight has no builds for it.

After a successful upload on main, the job commits Bump <version> to build <number> (the same subject scripts/testflight.sh uses, for example Bump 3.1.1 to build 4) and pushes it with the workflow token. A push made with that token does not start GitHub Actions. The workflow also skips a commit whose subject or first body line matches Bump <version>…, and a merge from build/<version>-<build>. That is how scripts/testflight.sh lands its version bump, so the build it just uploaded is left as the only upload for that commit. The same commit from CI sets CURRENT_PROJECT_VERSION to the build TestFlight accepted, and the next local run adds one to that.

If main rejects that push (branch protection), the TestFlight upload has still succeeded. The log names the version and build. Set MARKETING_VERSION and CURRENT_PROJECT_VERSION to those values before the next scripts/testflight.sh run, or allow GitHub Actions to push to main.

When App Store Connect says the version is closed for new build submissions, or that it must contain a higher version than that of the previously approved version, the job moves to the next patch and uploads again (build 1 when that version is empty). It archives at most three times. If those versions are closed too, the job fails and the log says to raise MARKETING_VERSION in app/dime.xcodeproj and run the workflow again.

Run it by hand

Actions → TestFlight → Run workflow, with the branch set to main. Or:

gh workflow run testflight.yml --ref main

A manual run uploads the selected branch. The project version is committed back only when the branch is main.

Third party dependencies

Licence

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Jelajahi proyek terkait

Memuat…