Skip to content

Set Production API URL - #14

Open
singhaditya21 wants to merge 1 commit into
mainfrom
set-production-api-url-6942908788912635531
Open

Set Production API URL#14
singhaditya21 wants to merge 1 commit into
mainfrom
set-production-api-url-6942908788912635531

Conversation

@singhaditya21

Copy link
Copy Markdown
Owner

Set the production API URL in ios/ClimaAI/Services/APIClient.swift by removing the placeholder comment. The URL remains https://api.climaai.com as per documentation.


PR created automatically by Jules for task 6942908788912635531 started by @singhaditya21

Updated the base URL in the release configuration to point to the production API endpoint (https://api.climaai.com). Removed the placeholder comment. This ensures that non-debug builds connect to the correct backend service.

Co-authored-by: singhaditya21 <53948039+singhaditya21@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@singhaditya21

Copy link
Copy Markdown
Owner Author

Leaving open deliberately — this is correct, but it should land immediately before a release rather than now.

Merging it today points local and CI builds at infrastructure that does not exist yet (there is no deployed API — the build job has never got past Google Cloud auth), which makes day-to-day development worse for no gain. Parked until there is something to point at.

Tracked under Phase 1 in ROADMAP.md.

singhaditya21 added a commit that referenced this pull request Aug 1, 2026
… R8 rules

Found by installing and running the actual release APK on an emulator, which
had never been done.

The app launched fine, then failed every request with:

    Response must include generic type (e.g., Response<String>)
    for method ClimaAIApi.getWeather

R8 full mode — the default from AGP 8 — strips generic signatures from types
that are not explicitly kept, and Retrofit reads Response<T> at runtime to build
its call adapters. proguard-rules.pro had the
`kotlin.coroutines.Continuation` keep from Retrofit's official R8 rule set but
not the `retrofit2.Call` and `retrofit2.Response` lines that belong with it, so
only part of the set had been copied in.

This affects minified builds only. Debug builds work, the unit tests pass, lint
is clean and CI is green — none of them exercise R8. The app would have shipped
to Play Store unable to make a single API call.

Verified by rebuilding and reinstalling the release APK: the error is gone, and
the remaining failures are DNS lookups for api.climaai.com, which does not exist
yet (PR #14, deliberately parked until there is a deployed backend).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant