Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bannedbook committed Aug 18, 2024
1 parent 7a95791 commit 98ffe10
Show file tree
Hide file tree
Showing 990 changed files with 150,827 additions and 0 deletions.
41 changes: 41 additions & 0 deletions fqnews2/.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
image: debian/stretch
packages:
- git
- openjdk-8-jdk-headless
- wget
- tar
- unzip
- lib32stdc++6
- lib32z1
- file
- mesa-utils
- pciutils
environment:
ANDROID_COMPILE_SDK: "28"
ANDROID_BUILD_TOOLS: "28.0.3"
ANDROID_EMULATOR_SDK: "28"
GRADLE_USER_HOME: "/home/build/.gradle"
ANDROID_HOME: "/home/build/.androidhome"
sources:
- https://git.sr.ht/~cowboyprogrammer/feeder
triggers:
- action: email
condition: failure
to: [email protected]
secrets:
- d9eb6ad0-7288-447a-954b-74e22ef4d054
- c492e32e-551e-42e8-b8d5-c252fc20b625
- 8a654fa4-6c85-480f-abee-d3b50d92d5f7
tasks:
- setup: |
export PATH="${ANDROID_HOME}/emulator/:${ANDROID_HOME}/tools/bin/:${ANDROID_HOME}/tools/:${ANDROID_HOME}/platform-tools/:${PATH}"
env
cd feeder
echo 'org.gradle.jvmargs=-Xmx1g' >> gradle.properties
ci/before
- build: |
cd feeder
./gradlew build
- deploy: |
cd feeder
ci/deploy_playstore
29 changes: 29 additions & 0 deletions fqnews2/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = false
ij_smart_tabs = false
ij_visual_guides = none
ij_wrap_on_typing = false

[*.{kt,kts}]
max_line_length = 200
ktlint_code_style = ktlint_official
ktlint_function_naming_ignore_when_annotated_with=Composable
compose_allowed_composition_locals = LocalTypographySettings,LocalDI,LocalDimens,LocalWindowSizeMetrics,LocalWindowSize,LocalFoldableHinge
compose_allowed_forwarding = .*Screen

[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.opml,*.rng,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul,rss_kuketz,rss_morningpaper}]
indent_size = 2
tab_width = 2

[{*.bash,*.sh,*.zsh}]
indent_size = 2
tab_width = 2
16 changes: 16 additions & 0 deletions fqnews2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.iml
build
.gradle
.idea
local.properties
*.db
*.substvars
.pybuild
*.debhelper
captures
creds.json
report.xml
app/creds.b64
keystore.b64
devenv.local
keystore
80 changes: 80 additions & 0 deletions fqnews2/.gitlab-ci.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
stages:
- build
- validate_deploy
- deploy

image: registry.gitlab.com/spacecowboy/feeder:builder

variables:
GIT_SUBMODULE_STRATEGY: recursive

cache:
key: "uber"
paths:
- .gradle/caches
- .gradle/wrapper

lint:
stage: build
script:
- source devenv && ./gradlew :app:lint
needs: []

test:
stage: build
script:
- source devenv && ./gradlew test :jsonfeed-parser:check
needs: []
artifacts:
paths:
- app/build/reports/

compileTest:
stage: build
script:
- source devenv && ./gradlew packageDebugAndroidTest
needs: []
artifacts:
paths:
- app/build/outputs/
- build/logs/

compilePlay:
stage: build
script:
- source devenv && ./gradlew assemblePlay
needs: []
artifacts:
paths:
- app/build/outputs/
- build/logs/

compileRelease:
stage: build
script:
- source devenv && ./gradlew assembleRelease
needs: []
artifacts:
paths:
- app/build/outputs/
- build/logs/

validate_deployment:
stage: validate_deploy
script:
- source devenv && ci/run-if-not-release ./deploy_playstore.sh --dry-run
needs: []
only:
- master
- tags

deploy_playstore:
stage: deploy
script:
- source devenv && ./deploy_playstore.sh
needs: ["validate_deployment", "compilePlay", "compileRelease", "compileTest", "lint", "test"]
only:
- tags
environment:
name: Play
url: https://play.google.com/store/apps/details?id=jww.app.hwnews
Empty file added fqnews2/.gitmodules
Empty file.
Loading

0 comments on commit 98ffe10

Please sign in to comment.