Compare commits

..

35 commits

Author SHA1 Message Date
zeppi
89237a3da0 flexbox 3.0.0 2022-11-26 11:06:34 -05:00
zeppi
b87fcee359 typo 2022-11-26 11:03:23 -05:00
zeppi
7bfd9be732 flexbox snapshot? 2022-11-26 10:58:00 -05:00
zeppi
c09109263b fix flexbox? 2022-11-26 10:47:56 -05:00
zeppi
de1e4c7c5b chmod gradlew 2022-11-26 10:42:36 -05:00
zeppi
da09cc231c try odysee android script 2022-11-26 10:32:55 -05:00
zeppi
21dc2b2ad6 test github env android root 2022-11-25 23:31:23 -05:00
zeppi
d5d633122b troubleshoot... 2022-11-25 23:23:06 -05:00
zeppi
73eab49365 gradlew stacktrace 2022-11-25 23:05:28 -05:00
zeppi
5e0548ce2a move export ANDROID_SDK_ROOT up 2022-11-25 22:59:51 -05:00
zeppi
576c092902 try updated impls 2022-11-25 22:55:48 -05:00
zeppi
753499fc5c try newer exoplayer 2022-11-25 22:34:23 -05:00
zeppi
2ba7647179 troubleshoot build 2022-11-25 22:20:25 -05:00
zeppi
ab498cc8ed github_workspace 2022-11-25 22:10:29 -05:00
zeppi
11b810fe72 build 2022-11-25 22:09:09 -05:00
zeppi
89436434ff git ownership workaround 2022-11-25 21:56:09 -05:00
zeppi
4b96cfd12d fix apt scripts 2022-11-25 21:43:12 -05:00
zeppi
1b34352820 apt-get 2022-11-25 21:40:29 -05:00
zeppi
130412bbdf upgrade git 2022-11-25 21:35:45 -05:00
zeppi
d6eebb51b0 check git version 2022-11-25 21:04:36 -05:00
zeppi
2de5f7d79a try global safe hack 2022-11-25 20:56:19 -05:00
zeppi
681ae1c70c git rev-parse inside? 2022-11-25 20:51:51 -05:00
zeppi
e4a708f38e g s r 2022-11-25 20:48:49 -05:00
zeppi
9480579b4e try 2022-11-25 20:46:24 -05:00
zeppi
8ccfb57713 try init again 2022-11-25 20:44:29 -05:00
zeppi
b6a2eb2c39 try git secret init 2022-11-25 20:40:52 -05:00
zeppi
c51f324645 troubleshooting 2022-11-25 20:37:28 -05:00
zeppi
72281739f6 try git init 2022-11-25 20:28:57 -05:00
zeppi
0ef598c78d try git-secret 2022-11-25 20:20:22 -05:00
zeppi
c80876402c try gsr 2022-11-25 19:53:13 -05:00
zeppi
a5cbf14bea typo ls 2022-11-25 19:50:45 -05:00
zeppi
74b5435961 verify ls al 2022-11-25 19:48:52 -05:00
zeppi
7a7506eb5f verify pwd 2022-11-25 15:33:56 -05:00
zeppi
6ef7d0499f add push condition for action 2022-11-25 15:13:58 -05:00
zeppi
eaec3a8836 test setup step 2022-11-25 15:11:57 -05:00
5 changed files with 119 additions and 11 deletions

View file

@ -1 +1,107 @@
name: Publish APK
on:
pull_request:
branches: [test-deploy]
push:
branches: [test-deploy]
jobs:
# build:
# runs-on: ubuntu-latest
# container: lbry/android-base:platform-28
# steps:
# - name: update git # container git is too old
# run: |
# apt-get install -y software-properties-common
# apt-get update
# add-apt-repository -y ppa:git-core/ppa
# apt-get update
# apt-get install -y git
# - name: work around for permission issue # git doesn't trust user that owns the checkout
# run: |
# git config --global --add safe.directory /__w/lbry-android/lbry-android
# - name: checkout
# uses: actions/checkout@v3
# - name: hacky copy # docker image runs ~ as /root, but github actions uses ~=/github/home
# run: |
# cp -r /root/.buildozer ~/.buildozer/
# - name: setup
# run: |
# echo "$PGP_PRIVATE_KEY" | gpg --batch --import
# echo 'deb https://gitsecret.jfrog.io/artifactory/git-secret-deb git-secret main' >> /etc/apt/sources.list
# wget -qO - 'https://gitsecret.jfrog.io/artifactory/api/gpg/key/public' | apt-key add -
# apt-get -y update && apt-get -y install build-essential ca-certificates curl gpg-agent openjdk-8-jdk software-properties-common wget zipalign git-secret
# ls -al ..
# ls -al
# git rev-parse --is-inside-work-tree
# git secret reveal
# chmod u+x $GITHUB_WORKSPACE/gradlew
# export BUILD_VERSION=$($GITHUB_WORKSPACE/gradlew -p $GITHUB_WORKSPACE -q printVersionName --console=plain | tail -1)
# export PATH=/usr/bin:$PATH
# export ANDROID_SDK_ROOT=~/.buildozer/android/platform/android-sdk-23
# echo $ANDROID_SDK_ROOT
# echo "ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT" >> $GITHUB_ENV
# echo "end of setup home:"
# echo $HOME
# env:
# PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }}
# KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
# - name: build
# run: |
# ls -al ~/
# chmod u+x ./release.sh
# ./release.sh
# cp bin/browser-$BUILD_VERSION-release__arm.apk /dev/null
# cp bin/browser-$BUILD_VERSION-release__arm64.apk /dev/null
# env:
# PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }}
# KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
# - name: Upload math result for job 1
# uses: actions/upload-artifact@v3
# with:
# name: homework
# path: math-homework.txt
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- name: Create and checkout branch
# push events already checked out the branch
if: github.event_name == 'pull_request'
run: git checkout -B ${{ github.head_ref }}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'
- name: Reveal secrets
env:
PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }}
run: |
sudo apt install git-secret gpg-agent
echo "$PGP_PRIVATE_KEY" | gpg --batch --import
git secret reveal
- name: Install NDK version 21.0.6113669
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669"
- name: Build
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
run: |
sudo apt install zipalign apksigner
chmod +x gradlew
./release.sh
rm bin/*-unsigned.apk
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app-release
path: bin/*.apk

1
.gitignore vendored
View file

@ -67,3 +67,4 @@ app/twitter.properties
app/build
bin
app/debuglib
.vscode

View file

@ -28,8 +28,6 @@ twitterConsumerKey=XXXXXX
twitterConsumerSecret=XXXXXX
```
Copy the file 'google-services.sample.json' to 'google-services.json' in the app/ folder.
Click the Sync button and when process finishes, the Run button to launch the app on your simulator or connected debugging device after the build process is complete.
## Contributing

View file

@ -103,20 +103,20 @@ dependencies {
implementation 'com.android.billingclient:billing:3.0.2'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android.exoplayer:exoplayer-core:2.12.2'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.12.2'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.12.2'
implementation 'com.google.android.exoplayer:extension-cast:2.12.2'
implementation 'com.google.android.exoplayer:extension-mediasession:2.12.2'
implementation 'com.google.android.exoplayer:exoplayer-core:2.15.1'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.15.1'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.15.1'
implementation 'com.google.android.exoplayer:extension-cast:2.15.1'
implementation 'com.google.android.exoplayer:extension-mediasession:2.15.1'
implementation 'com.google.android:flexbox:2.0.1'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation 'com.hbb20:ccp:2.3.8'
implementation 'com.hbb20:ccp:2.4.7'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'com.atlassian.commonmark:commonmark:0.14.0'
implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.3.1.LTS'
implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.4.LTS'
implementation 'commons-codec:commons-codec:1.15'
implementation 'org.bitcoinj:bitcoinj-tools:0.14.7'

View file

@ -1,5 +1,8 @@
#!/bin/bash
./gradlew assembleRelease --console=plain
echo "release.sh"
echo $HOME
echo $ANDROID_SDK_ROOT
./gradlew assembleRelease --console=plain --stacktrace
version=$(./gradlew -q printVersionName --console=plain | tail -1)
mkdir -p bin/
rm -f bin/*