Skip to content

Moving main url out of strings.xml #20

@VarunBarad

Description

@VarunBarad

Is your feature request related to a problem? Please describe.
The main url for the website (https://dev.to) is stored as a string resource. It currently works because the url is not being used at any place where a string-resource can't be accessed. But later as things are moved over to native code, there will be requirement to use that url where it is not possible to access a string resource.
For example, Retrofit is the most popular networking library and it becomes easier to integrate Retrofit when we don't have the base-url in a string resource.

Describe the solution you'd like
We move the main url of the website to a Constants.kt file in which we store all such urls.

Additional context
The url I am mentioning is located in the linked file: https://github.com/thepracticaldev/DEV-Android/blob/master/app/src/main/res/values/strings.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: approvedissues where contributions are welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions