Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0243d29
init stadard android workflow
lionants02 Jan 25, 2022
9101630
add script
lionants02 Jan 25, 2022
23f3736
fix build
lionants02 Jan 25, 2022
1596b2d
add build android sdk
lionants02 Jan 25, 2022
65f08b0
update android git version
lionants02 Jan 25, 2022
7306e74
fix build
lionants02 Jan 25, 2022
1ecf73a
fix build
lionants02 Jan 25, 2022
d43c16a
add gpg enscrypt google-service
lionants02 Jan 25, 2022
a4db015
fix google-services location
lionants02 Jan 25, 2022
76b1553
change bug name LARGE_KEY_DESCRYPT
lionants02 Jan 25, 2022
b76cc55
change bug name LARGE_KEY_DESCRYPT
lionants02 Jan 25, 2022
ba7e97f
change bug name LARGE_KEY_DESCRYPT
lionants02 Jan 25, 2022
04d4ee2
track error
lionants02 Jan 30, 2022
8cca129
track error
lionants02 Jan 30, 2022
ba0cee0
track error
lionants02 Jan 30, 2022
4e3873b
track error
lionants02 Jan 30, 2022
405fb79
track error
lionants02 Jan 30, 2022
661bfea
track error
lionants02 Jan 30, 2022
fdb8bf4
track error
lionants02 Jan 30, 2022
4148900
track error
lionants02 Jan 30, 2022
8dbace6
track error
lionants02 Jan 30, 2022
5e6dd86
track error
lionants02 Jan 30, 2022
ade0b4c
track error
lionants02 Jan 30, 2022
664ec22
track error
lionants02 Jan 30, 2022
966e218
track error
lionants02 Jan 30, 2022
d204f33
track error
lionants02 Jan 30, 2022
852439c
track error
lionants02 Jan 30, 2022
99e264c
track error
lionants02 Jan 30, 2022
bf62c0b
fix build
lionants02 Jan 30, 2022
6fa4815
fix build
lionants02 Jan 30, 2022
e8d1e85
fix build
lionants02 Jan 30, 2022
1281de3
fix build
lionants02 Jan 30, 2022
184c7a1
fix build
lionants02 Jan 30, 2022
35ea5cf
fix build
lionants02 Jan 30, 2022
ca3df22
fix build
lionants02 Jan 30, 2022
d5e65aa
fix build
lionants02 Jan 30, 2022
30da028
fix build
lionants02 Jan 30, 2022
0fa8a93
fix build
lionants02 Jan 30, 2022
8156f24
fix build
lionants02 Jan 30, 2022
fe16432
fix build
lionants02 Jan 30, 2022
c3eb830
add key store
lionants02 Jan 30, 2022
cb9b3d4
add key store
lionants02 Jan 30, 2022
54e6ef3
test disable ktlint
lionants02 Jan 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=true
indent_style=space
indent_size=4
max_line_length=120
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
max_line_length = off

[{*.yml, *.yaml, *.json}]
indent_size = 2
disabled_rules = no-wildcard-imports, experimental:annotation, my-custom-ruleset

[{*.yml,*.yaml,*.json}]
indent_size=2

71 changes: 71 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Android CI

on:
push:
branches: [ github_ci_build ]
pull_request:
branches: [ github_ci_build ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v2
# - name: Setup ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 2.7
- name: current dir
run: pwd
- name: Grant execute permission for decrypt_secret.sh
run: chmod +x ffc/decrypt_secret.sh
- name: Descrypt google-service
run: ./ffc/decrypt_secret.sh
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_KEY_DESCRYPT }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
#- name: update sdk
# run: echo y | android update sdk --no-ui --filter platform-tool
- name: update sdk
run: yes | sdkmanager --update
#- name: Install ndk
# run: yes | sdkmanager --install "ndk;21.3.6528147" --channel=3
#- name: Install Cmark
# run: yes | sdkmanager --install "cmake"
- name: android verstion build
run: yes | sdkmanager "platforms;android-30"
- name: ffc:androidDependencies
run: ./gradlew ffc:androidDependencies
- name: ffc:getDependencies
run: ./gradlew ffc:getDependencies
- name: Build GitVersion
run: ./gradlew ffc:androidGitVersion
- name: Build with Gradle
run: ./gradlew build
env:
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
- name: List file in build
run: ls -al ffc/build/
- name: List file in build/*
run: ls -al ffc/build/*
- name: List file in build/*/*
run: ls -al ffc/build/*/*
- name: find ffc/build
run: find ffc/build
# - name: Archive apk
# uses: actions/upload-artifact@v2
# with:
# name: store apk
# path: ffc/build/outputs/apk/release/ffc-release.apk
9 changes: 6 additions & 3 deletions ffc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/
plugins {
id 'com.gladed.androidgitversion' version '0.4.5'
id 'com.gladed.androidgitversion' version '0.4.14'
}


Expand All @@ -30,6 +30,7 @@ apply plugin: 'io.fabric'

android {
compileSdkVersion 30
// ndkVersion "23.1.7779620"
// buildToolsVersion "30.0.2"
// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -45,8 +46,10 @@ android {
applicationId "ffc.app"
minSdkVersion 26
targetSdkVersion 30
versionCode androidGitVersion.code()
versionCode androidGitVersion.code() == 0?1:androidGitVersion.code()
versionName androidGitVersion.name()
//versionCode 4
//versionName "test_ffc"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
Expand Down Expand Up @@ -178,7 +181,7 @@ dependencies {
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'joda-time:joda-time:2.10.1'
implementation 'me.piruin:spinney:1.0.0'
implementation 'me.piruin:phototaker:1.2'
//implementation 'me.piruin:phototaker:1.2'

implementation "org.jetbrains.anko:anko-appcompat-v7-commons:$ankoVersion"
implementation "org.jetbrains.anko:anko-design:$ankoVersion"
Expand Down
13 changes: 13 additions & 0 deletions ffc/decrypt_secret.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

# max NOTE
# Ref: https://docs.github.com/en/actions/security-guides/encrypted-secrets
# enscrypt command = gpg --symmetric --cipher-algo AES256 my_secret.json
# Decrypt the file
# mkdir $HOME/secrets
# --batch to prevent interactive command
# --yes to assume "yes" for questions
pwd
echo "_____Decrypt_______"
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" \
--output ffc/google-services.json ffc/google-services.json.gpg
Binary file added ffc/google-services.json.gpg
Binary file not shown.
Binary file modified ffc/release.keystore
Binary file not shown.