Mastersam07 / Mastersam07/flutter_env_native
Passing Urls with "=" messes up the string on android
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 13
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
i have a env.json file which contains many url endpoints, one of them contains a "="
RESOURCES_URL: https://test.tes/resource?id=%
and in build.gradle.kts i do:
resValue("string", "resources_url", project.findProperty("RESOURCES_URL").toString())
and whenever i try to consume the value like this
val baseUrl: String = getString(R.string.resources_url)
only what ever is after the las "=" is recovered, for this example baseUrl is "%"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the env.json value and the resValue call in build.gradle.kts, then reproduce the Android build using a URL containing "=". Trace how the property is read and confirm that the complete URL, including the query portion, is returned by getString(R.string.resources_url).
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, flutter, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100