Compare commits
10 Commits
80293a2248
...
v125020471
| Author | SHA1 | Date | |
|---|---|---|---|
| 61c7bb20cc | |||
| 6a0f5baf0a | |||
| 39f9505c00 | |||
| 6a6d447456 | |||
|
|
0bb4fe6aed | ||
| 7df4c3368c | |||
| c69635b5ae | |||
| 3a829df70e | |||
| 7a0202689f | |||
| b20f6888f5 |
@@ -26,9 +26,10 @@ jobs:
|
|||||||
- uses: KengoTODA/actions-setup-docker-compose@v1
|
- uses: KengoTODA/actions-setup-docker-compose@v1
|
||||||
with:
|
with:
|
||||||
version: "2.23.3"
|
version: "2.23.3"
|
||||||
- name: run selfoss
|
# TESTS ARE RUN LOCALLY
|
||||||
run: |
|
# - name: run selfoss
|
||||||
docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
|
# run: |
|
||||||
|
# docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
|
||||||
- name: coverage
|
- name: coverage
|
||||||
run: |
|
run: |
|
||||||
./gradlew :koverHtmlReport
|
./gradlew :koverHtmlReport
|
||||||
@@ -39,7 +40,8 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
overwrite: true
|
overwrite: true
|
||||||
include-hidden-files: true
|
include-hidden-files: true
|
||||||
- name: Clean
|
# TESTS ARE RUN LOCALLY
|
||||||
if: always()
|
# - name: Clean
|
||||||
run: |
|
# if: always()
|
||||||
docker compose -f .gitea/workflows/assets/docker-compose.yml stop
|
# run: |
|
||||||
|
# docker compose -f .gitea/workflows/assets/docker-compose.yml stop
|
||||||
|
|||||||
@@ -1,138 +0,0 @@
|
|||||||
name: Create tag
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- test-releas
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# build:
|
|
||||||
# uses: ./.gitea/workflows/common_build.yml
|
|
||||||
createTagAndChangelog:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Config git
|
|
||||||
run: |
|
|
||||||
git config --global user.email aminecmi+giteadrone@pm.me
|
|
||||||
git config --global user.name giteadrone
|
|
||||||
- name: Creating the tag and generate changelog
|
|
||||||
run: |
|
|
||||||
# git fetch --tags -p
|
|
||||||
# PREV=$(git describe --tags --abbrev=0)
|
|
||||||
# ./build.sh --publish --from-ci
|
|
||||||
# VER=$(git describe --tags --abbrev=0)
|
|
||||||
# CHANGELOG=$(git log $PREV..HEAD --pretty="- %s")
|
|
||||||
# echo "**$VER
|
|
||||||
#
|
|
||||||
# $CHANGELOG
|
|
||||||
echo "AAAAAAAAAAA
|
|
||||||
|
|
||||||
--------------------------------------------------------------------
|
|
||||||
|
|
||||||
$(cat CHANGELOG.md)" > CHANGELOG.md
|
|
||||||
git add CHANGELOG.md
|
|
||||||
# touch ./fastlane/metadata/android/en\-US/changelogs/$VER.txt
|
|
||||||
# echo "**$VER**
|
|
||||||
|
|
||||||
# $CHANGELOG" > ./fastlane/metadata/android/en\-US/changelogs/$VER.txt
|
|
||||||
# git add ./fastlane/metadata/android/en\-US/changelogs/$VER.txt
|
|
||||||
git commit -m "Changelog for $VER"
|
|
||||||
git checkout master
|
|
||||||
git merge release
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: master
|
|
||||||
- name: Merge master in release
|
|
||||||
run: |
|
|
||||||
git merge release
|
|
||||||
- name: Push changes
|
|
||||||
uses: appleboy/git-push-action@v1.0.0
|
|
||||||
with:
|
|
||||||
author_name: giteadrone
|
|
||||||
author_email: aminecmi+giteadrone@pm.me
|
|
||||||
remote: ${{ secrets.REMOTE_URL }}
|
|
||||||
followtags: true
|
|
||||||
ssh_key: ${{ secrets.PRIVATE_KEY }}
|
|
||||||
tags: true
|
|
||||||
branch: master
|
|
||||||
# - name: copy file via ssh password
|
|
||||||
# uses: appleboy/scp-action@v0.1.7
|
|
||||||
# with:
|
|
||||||
# host: amine-bouabdallaoui.fr
|
|
||||||
# username: ubuntu
|
|
||||||
# key: ${{ secrets.PRIVATE_KEY }}
|
|
||||||
# source: "version.txt"
|
|
||||||
# target: "/home/ubuntu/"
|
|
||||||
# - name: deploy version file
|
|
||||||
# uses: appleboy/ssh-action@v1.2.0
|
|
||||||
# with:
|
|
||||||
# host: amine-bouabdallaoui.fr
|
|
||||||
# username: ubuntu
|
|
||||||
# key: ${{ secrets.PRIVATE_KEY }}
|
|
||||||
# script: cd /home/ubuntu && sudo rm -rf /var/www/amine/version.txt && sudo chown www-data:www-data ./version.txt && sudo mv version.txt /var/www/amine/
|
|
||||||
# release:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# needs: createTagAndChangelog
|
|
||||||
# steps:
|
|
||||||
# - name: Check out repository code
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# fetch-depth: 0
|
|
||||||
# - name: Fetch tags
|
|
||||||
# id: version
|
|
||||||
# run: |
|
|
||||||
# git fetch --tags -p
|
|
||||||
# PREV=$(git describe --tags --abbrev=0)
|
|
||||||
# echo $PREV
|
|
||||||
# echo "VERSION=$PREV" >> $GITHUB_OUTPUT
|
|
||||||
# - uses: actions/setup-java@v4
|
|
||||||
# with:
|
|
||||||
# distribution: 'temurin'
|
|
||||||
# java-version: '17'
|
|
||||||
# cache: gradle
|
|
||||||
# - name: Setup Android SDK
|
|
||||||
# uses: android-actions/setup-android@v3
|
|
||||||
# - name: Configure gradle...
|
|
||||||
# run: mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=false\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
|
|
||||||
# - name: setup go
|
|
||||||
# uses: https://github.com/actions/setup-go@v4
|
|
||||||
# with:
|
|
||||||
# go-version: '>=1.20.1'
|
|
||||||
# - name: Generate APK
|
|
||||||
# run: ./gradlew :androidApp:assembleGithubConfigRelease
|
|
||||||
# - name: Get Key
|
|
||||||
# run: wget ${{ secrets.KEY_URL }}
|
|
||||||
# - name: Zippalign
|
|
||||||
# run: |
|
|
||||||
# sdkmanager "build-tools;31.0.0"
|
|
||||||
# ls $ANDROID_HOME/build-tools
|
|
||||||
# $ANDROID_HOME/build-tools/31.0.0/zipalign -f -v 4 androidApp/build/outputs/apk/githubConfig/release/androidApp-githubConfig-release-unsigned.apk androidApp/build/outputs/apk/githubConfig/release/android-prod-released-ziped.apk
|
|
||||||
# - name: Sigh
|
|
||||||
# run: $ANDROID_HOME/build-tools/31.0.0/apksigner sign -v --out signed.apk --ks ./key --ks-key-alias ${{ secrets.KEY_ALIAS }} --ks-pass pass:${{ secrets.KEYSTORE_PASSWORD }} --v1-signing-enabled true --v2-signing-enabled true androidApp/build/outputs/apk/githubConfig/release/android-prod-released-ziped.apk
|
|
||||||
# - name: Verify
|
|
||||||
# run: $ANDROID_HOME/build-tools/31.0.0/apksigner verify signed.apk
|
|
||||||
# - name: Release
|
|
||||||
# uses: https://gitea.com/actions/gitea-release-action@main
|
|
||||||
# with:
|
|
||||||
# files: signed.apk
|
|
||||||
# token: ${{ secrets.API_KEY }}
|
|
||||||
# tag_name: ${{ steps.version.outputs.VERSION }}
|
|
||||||
# name: ${{ steps.version.outputs.VERSION }}
|
|
||||||
# - name: Send mail
|
|
||||||
# uses: https://github.com/dawidd6/action-send-mail@v4
|
|
||||||
# with:
|
|
||||||
# connection_url: ${{ secrets.MAIL_CONNECTION }}
|
|
||||||
# to: ${{ secrets.MAIL_TO }}
|
|
||||||
# from: ${{ secrets.MAIL_FROM }}
|
|
||||||
# subject: Mapping file
|
|
||||||
# priority: high
|
|
||||||
# convert_markdown: true
|
|
||||||
# body: Nouveau fichier de mapping pour la version ${{ steps.version.outputs.VERSION }}
|
|
||||||
# attachments: androidApp/build/outputs/mapping/githubConfigRelease/mapping.txt
|
|
||||||
@@ -16,6 +16,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ref: master
|
||||||
- name: Config git
|
- name: Config git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email aminecmi+giteadrone@pm.me
|
git config --global user.email aminecmi+giteadrone@pm.me
|
||||||
@@ -50,7 +51,7 @@ jobs:
|
|||||||
followtags: true
|
followtags: true
|
||||||
ssh_key: ${{ secrets.PRIVATE_KEY }}
|
ssh_key: ${{ secrets.PRIVATE_KEY }}
|
||||||
tags: true
|
tags: true
|
||||||
branch: release
|
branch: master
|
||||||
- name: copy file via ssh password
|
- name: copy file via ssh password
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -324,3 +324,5 @@ crowdin.properties
|
|||||||
|
|
||||||
.kotlin/
|
.kotlin/
|
||||||
build-cache/
|
build-cache/
|
||||||
|
|
||||||
|
act
|
||||||
|
|||||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,3 +1,13 @@
|
|||||||
|
**v125020411
|
||||||
|
|
||||||
|
- Merge pull request 'bump' (#182) from bump into master
|
||||||
|
- chore: non transiant R classes.
|
||||||
|
- Merge pull request 'fix: One more missing context.' (#181) from fix-one-more-context into master
|
||||||
|
- bump
|
||||||
|
- fix: One more missing context.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------
|
||||||
|
|
||||||
**v125010241
|
**v125010241
|
||||||
|
|
||||||
- Merge pull request 'fix: Link not opening.' (#178) from fix-open-link into master
|
- Merge pull request 'fix: Link not opening.' (#178) from fix-open-link into master
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class HomeActivityTest {
|
|||||||
fun testMenuActions() {
|
fun testMenuActions() {
|
||||||
onView(withId(R.id.action_search)).perform(click())
|
onView(withId(R.id.action_search)).perform(click())
|
||||||
onView(
|
onView(
|
||||||
withId(R.id.search_src_text),
|
withId(com.google.android.material.R.id.search_src_text),
|
||||||
).check(matches(isFocused()))
|
).check(matches(isFocused()))
|
||||||
onView(isRoot()).perform(ViewActions.pressBack())
|
onView(isRoot()).perform(ViewActions.pressBack())
|
||||||
|
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ class ReaderActivity :
|
|||||||
override fun onPageSelected(position: Int) {
|
override fun onPageSelected(position: Int) {
|
||||||
super.onPageSelected(position)
|
super.onPageSelected(position)
|
||||||
|
|
||||||
|
if (!allItems.isNullOrEmpty() && allItems.size >= position) {
|
||||||
if (allItems[position].starred) {
|
if (allItems[position].starred) {
|
||||||
canRemoveFromFavorite()
|
canRemoveFromFavorite()
|
||||||
} else {
|
} else {
|
||||||
@@ -168,6 +169,7 @@ class ReaderActivity :
|
|||||||
}
|
}
|
||||||
readItem(allItems[position])
|
readItem(allItems[position])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,8 +118,8 @@ class ArticleFragment :
|
|||||||
e.sendSilentlyWithAcra()
|
e.sendSilentlyWithAcra()
|
||||||
}
|
}
|
||||||
|
|
||||||
colorOnSurface = getColorFromAttr(R.attr.colorOnSurface)
|
colorOnSurface = getColorFromAttr(com.google.android.material.R.attr.colorOnSurface)
|
||||||
colorSurface = getColorFromAttr(R.attr.colorSurface)
|
colorSurface = getColorFromAttr(com.google.android.material.R.attr.colorSurface)
|
||||||
|
|
||||||
contentText = item.content
|
contentText = item.content
|
||||||
contentTitle = item.title.getHtmlDecoded()
|
contentTitle = item.title.getHtmlDecoded()
|
||||||
|
|||||||
@@ -83,7 +83,15 @@ class FilterSheetFragment :
|
|||||||
val sourceGroup = binding.sourcesGroup
|
val sourceGroup = binding.sourcesGroup
|
||||||
|
|
||||||
repository.getSourcesDetailsOrStats().forEachIndexed { _, source ->
|
repository.getSourcesDetailsOrStats().forEachIndexed { _, source ->
|
||||||
val c = Chip(context)
|
val c: Chip? =
|
||||||
|
maybeIfContext {
|
||||||
|
Chip(it)
|
||||||
|
} as Chip?
|
||||||
|
|
||||||
|
if (c == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.ellipsize = TextUtils.TruncateAt.END
|
c.ellipsize = TextUtils.TruncateAt.END
|
||||||
|
|
||||||
maybeIfContext {
|
maybeIfContext {
|
||||||
@@ -145,7 +153,11 @@ class FilterSheetFragment :
|
|||||||
val tags = repository.getTags()
|
val tags = repository.getTags()
|
||||||
|
|
||||||
tags.forEachIndexed { _, tag ->
|
tags.forEachIndexed { _, tag ->
|
||||||
val c = Chip(context)
|
val c: Chip? = maybeIfContext { Chip(it) } as Chip?
|
||||||
|
if (c == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.ellipsize = TextUtils.TruncateAt.END
|
c.ellipsize = TextUtils.TruncateAt.END
|
||||||
c.text = tag.tag
|
c.text = tag.tag
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
// trick: for the same plugin versions in all sub-modules
|
// trick: for the same plugin versions in all sub-modules
|
||||||
id("com.android.application").version("8.8.0").apply(false)
|
id("com.android.application").version("8.8.1").apply(false)
|
||||||
id("com.android.library").version("8.8.0").apply(false)
|
id("com.android.library").version("8.8.1").apply(false)
|
||||||
id("org.jetbrains.kotlin.android").version("2.1.0").apply(false)
|
id("org.jetbrains.kotlin.android").version("2.1.0").apply(false)
|
||||||
kotlin("multiplatform").version("2.1.0").apply(false)
|
kotlin("multiplatform").version("2.1.0").apply(false)
|
||||||
id("com.mikepenz.aboutlibraries.plugin").version("10.5.1").apply(false)
|
id("com.mikepenz.aboutlibraries.plugin").version("10.5.1").apply(false)
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
**v125020411**
|
||||||
|
|
||||||
|
- Merge pull request 'bump' (#182) from bump into master
|
||||||
|
- chore: non transiant R classes.
|
||||||
|
- Merge pull request 'fix: One more missing context.' (#181) from fix-one-more-context into master
|
||||||
|
- bump
|
||||||
|
- fix: One more missing context.
|
||||||
@@ -19,7 +19,7 @@ kotlin.code.style=official
|
|||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
#android.nonTransitiveRClass=true
|
#android.nonTransitiveRClass=true
|
||||||
android.enableJetifier=false
|
android.enableJetifier=false
|
||||||
android.nonTransitiveRClass=false
|
android.nonTransitiveRClass=true
|
||||||
#MPP
|
#MPP
|
||||||
kotlin.mpp.enableCInteropCommonization=true
|
kotlin.mpp.enableCInteropCommonization=true
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
|||||||
Reference in New Issue
Block a user