Skip to content

Commit dfc37f5

Browse files
authored
Merge pull request #507 from namehillsoftware/feature/add-rating-to-media-metadata
[Feature] Add Rating to Media Metadata
2 parents 5da0e67 + 07a93a4 commit dfc37f5

File tree

71 files changed

+478
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+478
-257
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
8+
jobs:
9+
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Build and test project blue
17+
env:
18+
ANDROID_KEY_STORE_PASSWORD: "${{ secrets.ANDROID_KEY_STORE_PASSWORD }}"
19+
ANDROID_STORE_PASSWORD: "${{ secrets.ANDROID_STORE_PASSWORD }}"
20+
run: sh build-release.sh
21+
- name: Upload artifact
22+
uses: actions/upload-artifact@v4
23+
with:
24+
# Artifact name
25+
name: project-blue.build
26+
path: _artifacts/
27+
28+
upload:
29+
name: Create release and upload artifacts
30+
needs:
31+
- build
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Download artifacts
35+
uses: actions/download-artifact@v4
36+
- name: Inspect directory after downloading artifacts
37+
run: ls -alFR
38+
- name: Create release and upload artifacts
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: |
42+
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
43+
chmod +x pyuploadtool-x86_64.AppImage
44+
./pyuploadtool-x86_64.AppImage **/*.apk

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN curl -sSL https://dl.google.com/android/repository/${SDK_VERSION} -o /tmp/sd
3030

3131
# Set these to the same versions as in build.gradle to avoid downloading updated tools
3232
ARG ANDROID_BUILD_VERSION=35
33-
ARG ANDROID_TOOLS_VERSION=34.0.0
33+
ARG ANDROID_TOOLS_VERSION=35.0.0
3434

3535
RUN yes | sdkmanager "platform-tools" \
3636
# "emulator" \ # keeping just in case it is needed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Run the tests via the IDE.
5252
Android Studio can perform the build. To run a CI build like it is run in Github, run the following command:
5353

5454
```shell script
55-
./build-bundle.sh
55+
./build-release.sh
5656
```
5757

5858
## Deployment

build-bundle.sh renamed to build-release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rm -rf _artifacts
44

55
docker compose build && docker compose run --rm -v "$(pwd)":/src -w /src -u "$(id -u)":"$(id -g)" gradle \
66
:projectBlueWater:testReleaseUnitTest \
7+
:projectBlueWater:assembleRelease \
78
:projectBlueWater:bundleRelease
89
EXIT_CODE=${PIPESTATUS[0]}
910

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ buildscript {
1010
}
1111

1212
plugins {
13-
id 'com.android.application' version '8.7.3' apply false
14-
id 'com.android.library' version '8.7.3' apply false
13+
id 'com.android.application' version '8.8.0' apply false
14+
id 'com.android.library' version '8.8.0' apply false
1515
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false
1616
id 'org.jetbrains.kotlin.plugin.compose' version "$kotlin_version" apply false
1717
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

projectBlueWater/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ dependencies {
190190
implementation 'commons-io:commons-io:2.18.0'
191191
implementation 'org.slf4j:slf4j-api:2.0.16'
192192
implementation 'com.github.tony19:logback-android:3.0.0'
193-
implementation 'com.namehillsoftware:handoff:0.29.0'
193+
implementation 'com.namehillsoftware:handoff:0.30.0'
194194
implementation 'io.reactivex.rxjava3:rxjava:3.1.10'
195195
implementation 'com.namehillsoftware:lazy-j:0.11.0'
196196
implementation 'org.jsoup:jsoup:1.18.3'
@@ -203,7 +203,7 @@ dependencies {
203203
implementation "androidx.compose.material:material:$compose_version"
204204
implementation "androidx.compose.ui:ui-tooling:$compose_version"
205205
implementation "androidx.compose.runtime:runtime-rxjava3:$compose_version"
206-
implementation 'androidx.activity:activity-compose:1.9.3'
206+
implementation 'androidx.activity:activity-compose:1.10.0'
207207
implementation 'dev.olshevski.navigation:reimagined:1.5.0'
208208
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
209209
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"

projectBlueWater/src/main/java/com/lasthopesoftware/bluewater/ActivityApplicationNavigation.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import com.lasthopesoftware.bluewater.android.intents.BuildIntents
66
import com.lasthopesoftware.bluewater.client.browsing.files.ServiceFile
77
import com.lasthopesoftware.bluewater.client.browsing.files.properties.FileProperty
88
import com.lasthopesoftware.bluewater.client.browsing.library.repository.LibraryId
9+
import com.lasthopesoftware.promises.extensions.preparePromise
910
import com.lasthopesoftware.resources.executors.HandlerExecutor
1011
import com.namehillsoftware.handoff.promises.Promise
11-
import com.namehillsoftware.handoff.promises.queued.QueuedPromise
1212
import com.namehillsoftware.handoff.promises.queued.cancellation.CancellableMessageWriter
1313

1414
class ActivityApplicationNavigation(
@@ -40,5 +40,5 @@ class ActivityApplicationNavigation(
4040

4141
override fun navigateUp() = loopInOperation { componentActivity.finish(); true }
4242

43-
private fun <T> loopInOperation(operation: CancellableMessageWriter<T>) = QueuedPromise(operation, executor)
43+
private fun <T> loopInOperation(operation: CancellableMessageWriter<T>) = executor.preparePromise(operation)
4444
}

projectBlueWater/src/main/java/com/lasthopesoftware/bluewater/ApplicationDependencies.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ import com.lasthopesoftware.bluewater.shared.android.ui.ProvideScreenDimensions
1616
import com.lasthopesoftware.bluewater.shared.images.ProvideDefaultImage
1717
import com.lasthopesoftware.bluewater.shared.messages.application.RegisterForApplicationMessages
1818
import com.lasthopesoftware.bluewater.shared.messages.application.SendApplicationMessages
19+
import com.lasthopesoftware.resources.bitmaps.ProduceBitmaps
1920
import com.lasthopesoftware.resources.strings.GetStringResources
2021

2122
interface ApplicationDependencies {
23+
val bitmapProducer: ProduceBitmaps
2224
val libraryProvider: ILibraryProvider
2325
val libraryStorage: ILibraryStorage
2426
val storedItemAccess: AccessStoredItems

projectBlueWater/src/main/java/com/lasthopesoftware/bluewater/ApplicationDependenciesContainer.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ import com.lasthopesoftware.bluewater.shared.images.DefaultImageProvider
4141
import com.lasthopesoftware.bluewater.shared.messages.application.ApplicationMessageBus
4242
import com.lasthopesoftware.bluewater.shared.messages.application.RegisterForApplicationMessages
4343
import com.lasthopesoftware.bluewater.shared.messages.application.SendApplicationMessages
44+
import com.lasthopesoftware.resources.bitmaps.DefaultAwareCachingBitmapProducer
45+
import com.lasthopesoftware.resources.bitmaps.QueuedBitmapProducer
4446
import com.lasthopesoftware.resources.network.ActiveNetworkFinder
4547
import com.lasthopesoftware.resources.strings.Base64Encoder
4648
import com.lasthopesoftware.resources.strings.StringResources
@@ -79,6 +81,8 @@ object ApplicationDependenciesContainer {
7981

8082
private val imageDiskCacheDirectory by lazy { AndroidDiskCacheDirectoryProvider(context, ImageCacheConfiguration) }
8183

84+
override val bitmapProducer by lazy { DefaultAwareCachingBitmapProducer(QueuedBitmapProducer, defaultImageProvider) }
85+
8286
override val applicationSettings by lazy {
8387
CachingApplicationSettingsRepository(
8488
ApplicationSettingsRepository(context, sendApplicationMessages)

0 commit comments

Comments
 (0)