-
-
Notifications
You must be signed in to change notification settings - Fork 226
Improves DLC selection and download status #406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
77f186a
403d7fb
d28fcf6
6f51f24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -609,8 +609,9 @@ class SteamAppScreen : BaseAppScreen() { | |
| val gameId = libraryItem.gameId | ||
| val appId = libraryItem.appId | ||
| val appInfo = SteamService.getAppInfoOf(gameId) ?: return emptyList() | ||
| val isDownloadInProgress = SteamService.getDownloadingAppInfoOf(gameId) != null | ||
|
|
||
| if (!isInstalled) { | ||
| if (!isInstalled || isDownloadInProgress) { | ||
| return emptyList() | ||
| } | ||
|
Comment on lines
+612
to
616
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find SteamService file
fd -t f -i "SteamService"Repository: utkarshdalal/GameNative Length of output: 123 🏁 Script executed: # Search for both methods to understand their semantics
rg "fun getDownloadingAppInfoOf|fun getAppDownloadInfo" -A 5Repository: utkarshdalal/GameNative Length of output: 1368 🏁 Script executed: # Examine the usages in SteamAppScreen.kt at the mentioned lines
sed -n '315,325p' app/src/main/java/app/gamenative/ui/screen/library/appscreen/SteamAppScreen.kt
sed -n '427,437p' app/src/main/java/app/gamenative/ui/screen/library/appscreen/SteamAppScreen.ktRepository: utkarshdalal/GameNative Length of output: 1094 🏁 Script executed: # Check what DownloadingAppInfo and DownloadInfo types are
rg "data class DownloadingAppInfo|data class DownloadInfo" -A 3Repository: utkarshdalal/GameNative Length of output: 721 🏁 Script executed: # Verify what getDownloadingAppInfoOf is used for elsewhere
rg "getDownloadingAppInfoOf" -B 2 -A 2Repository: utkarshdalal/GameNative Length of output: 2369 Use The two methods have different semantics:
Using 🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ dataStore = "1.1.2" # https://mvnrepository.com/artifact/androidx.datastore/data | |
| espressoCore = "3.6.1" # https://mvnrepository.com/artifact/androidx.test.espresso/espresso-core | ||
| feature-delivery = "2.1.0" # https://mvnrepository.com/artifact/com.google.android.play/feature-delivery | ||
| hiltNavigationCompose = "1.2.0" # https://mvnrepository.com/artifact/androidx.hilt/hilt-navigation-compose | ||
| javasteam = "1.8.0-5-SNAPSHOT" # https://mvnrepository.com/artifact/in.dragonbra/javasteam | ||
| javasteam = "1.8.0-6-SNAPSHOT" # https://mvnrepository.com/artifact/in.dragonbra/javasteam | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's examine the gradle/libs.versions.toml file to understand the context better
find . -name "libs.versions.toml" -o -name "build.gradle*" -o -name "settings.gradle*" | head -20Repository: utkarshdalal/GameNative Length of output: 186 🏁 Script executed: # Search for the gradle/libs.versions.toml file and read it
if [ -f "gradle/libs.versions.toml" ]; then
echo "=== gradle/libs.versions.toml ==="
cat -n gradle/libs.versions.toml | head -100
fiRepository: utkarshdalal/GameNative Length of output: 10070 🏁 Script executed: # Look for Gradle repository definitions
find . -name "build.gradle" -o -name "build.gradle.kts" -o -name "settings.gradle" -o -name "settings.gradle.kts" | xargs grep -l "repositories" 2>/dev/null | head -5Repository: utkarshdalal/GameNative Length of output: 88 🌐 Web query:
💡 Result: I couldn't find any published Maven artifact with coordinates io.github.joshuatam:javasteam:1.8.0-6-SNAPSHOT. Public javasteam artifacts appear under groupId in.dragonbra on Maven Central (e.g. javasteam versions listed). [1][2] If you need that specific SNAPSHOT you can:
Sources:
If you want, I can: search the project's GitHub for tags/releases, check GitHub Packages for that owner, or show pom/deployment steps to publish the SNAPSHOT. 🏁 Script executed: cat -n settings.gradle.ktsRepository: utkarshdalal/GameNative Length of output: 897 🏁 Script executed: # Check if there are references to GitHub Packages or snapshot repositories
grep -r "repositories\|maven\|github\|snapshot" settings.gradle.kts build.gradle.kts 2>/dev/null | head -30Repository: utkarshdalal/GameNative Length of output: 436 🌐 Web query:
💡 Result: Do you mean the Maven/Gradle package coordinates "io.github.joshuatam:javasteam" and whether any versions are published to GitHub Packages (or Maven Central)? If so, do you want (a) a list of published versions, (b) confirmation that none exist, or (c) help publishing a release? 🌐 Web query:
💡 Result: I couldn't find that exact artifact on Maven Central. Artifacts with groupId pattern io.github.* and SNAPSHOT versions are most commonly published via JitPack or GitHub Packages (Maven). Check those two places first:
If you want, I can look up the exact io.github.joshuatam:javasteam:1.8.0-6-SNAPSHOT coordinates on JitPack/GitHub Packages—shall I search them now? Sources: 🌐 Web query:
💡 Result: Do you want instructions to publish JavaSteam from Longi94 under the groupId io.github.joshuatam to a Maven registry (Maven Central or GitHub Packages)? If so, confirm which registry (Maven Central or GitHub Packages) and whether you prefer Maven or Gradle—then I’ll give step-by-step instructions. References: GitHub publishing guide (Maven) [1], JavaSteam repo (Longi94) [2]. 🌐 Web query:
💡 Result: I searched Maven Central and Sonatype OSS (the query you provided) and found no results for site:maven.org OR site:oss.sonatype.org "io.github.joshuatam" "javasteam". No matching artifacts or pages were returned. Would you like me to:
🏁 Script executed: # Check if there are any comments or docs in the repo about building/publishing javasteam
grep -r "javasteam\|JavaSteam" . --include="*.md" --include="*.txt" --include="*.gradle*" 2>/dev/null | grep -i "build\|publish\|snapshot\|version" | head -20Repository: utkarshdalal/GameNative Length of output: 827 Fix artifact coordinates and documentation; SNAPSHOT is not published The SNAPSHOT artifact Additionally, the comment on line 14 points to 🤖 Prompt for AI Agents |
||
| json = "1.8.0" # https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-json | ||
| junit = "4.13.2" # https://mvnrepository.com/artifact/junit/junit | ||
| junitVersion = "1.2.1" # https://mvnrepository.com/artifact/androidx.test.ext/junit | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded strings should use string resources for localization.
The button labels "Deselect all" and "Select all" are hardcoded. For consistency with the rest of the codebase (which uses
stringResource(R.string.xxx)), these should be moved to string resources.Suggested fix
Button( onClick = { val newState = !allSelectableSelected selectableAppIds.forEach { appId -> selectedAppIds[appId] = newState } } ) { Text( - text = if (allSelectableSelected) "Deselect all" else "Select all" + text = stringResource(if (allSelectableSelected) R.string.deselect_all else R.string.select_all) ) }Add corresponding entries to
strings.xml:🤖 Prompt for AI Agents