cheogram/.builds/debian-stable.yml
Stephen Paul Weber 5e149cfcd1
Merge remote-tracking branch 'upstream/master'
* upstream/master: (27 commits)
  show 'using account …' in incoming call screen
  show contact jid in call screen
  bump copyright year
  Add handling of status code 333
  increase default pw length
  do not build emoji flavors
  pulled translations from transifex
  add changelog
  fix ice candidate sending when different credentials are used
  remove security check that ensures rtp connection was properly finished
  code clean up
  bump agp
  store encrypted pgp files in private cache dir
  do not restart wakelock if activity is finishing
  delete pre lolipop weOwnFile()
  use try with resources. remove unused methods
  rename version suffix to playstore/free
  bump appcompat, migrate to emoji2 and get rid of emoji flavor
  fix rare npe
  store recordings and documents in their respective folders
  ...
2022-03-08 15:38:48 -05:00

34 lines
1.3 KiB
YAML

image: debian/stable
sources:
- https://git.sr.ht/~singpolyma/cheogram-android
artifacts:
- cheogram.apk
packages:
- wget
- unzip
- android-sdk
secrets:
- 7eed327c-05c7-49b4-baed-a4d8785588d5
environment:
ANDROID_SDK_ROOT: /home/build/android
tasks:
- sdk: |
wget -qO android.zip https://dl.google.com/android/repository/commandlinetools-linux-6987402_latest.zip
unzip -qq android.zip
mkdir -p android/cmdline-tools
mv cmdline-tools android/cmdline-tools/tools
echo y | android/cmdline-tools/tools/bin/sdkmanager "platforms;android-29"
echo y | android/cmdline-tools/tools/bin/sdkmanager "platform-tools"
echo y | android/cmdline-tools/tools/bin/sdkmanager "build-tools;29.0.2"
touch ~/.android/repositories.cfg
yes | android/cmdline-tools/tools/bin/sdkmanager --licenses
- sentry: |
cd cheogram-android
sed -ie 's/<!-- INSERT -->/<meta-data android:name="io.sentry.dsn" android:value="https:\/\/680d470d348a4cc494bf2198eed30c49@o559641.ingest.sentry.io\/6221823" \/>/' src/cheogram/AndroidManifest.xml
sed -ie 's/\/\/ INSERT/implementation "io.sentry:sentry-android:5.6.1"/' build.gradle
- build: |
cd cheogram-android
./gradlew assembleCheogramFreeDebug
- assets: |
mv cheogram-android/build/outputs/apk/cheogramFree/debug/*.apk cheogram.apk