Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

add network and json utils #13

Merged
merged 3 commits into from
Mar 9, 2020
Merged

add network and json utils #13

merged 3 commits into from
Mar 9, 2020

Conversation

sabrina-li
Copy link
Contributor

adding two utils for making network calls.
network_security_config file is required for making API call for non-ssl connections. the config file itself is gitignored and the in manifest marked as dev only

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
Copy link
Member

@patrick-fs patrick-fs Mar 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since network_security_config is .gitignored, will adding it to the manifest here cause breakage if it's not present in the project (e.g.: someone forgot to add it when they cloned the repo, and then tried to run the application)?

Copy link
Contributor Author

@sabrina-li sabrina-li Mar 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we not ignore the file (expose the URL in this repo)?
Also applies to the hosts files that I had added to gitignore for links that I did not want to be exposed to github(but maybe we should actually expose them)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're ok. I see now that you've added the network_security_config and there's plenty of warnings about not opening network activity to non-SSL endpoints in your comments. Go ahead and make an issue on your repo to expose an SSL endpoint for the product catalog so you can remove this config in the future.

Copy link
Member

@patrick-fs patrick-fs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sabrina-li sabrina-li merged commit 8aa5216 into master Mar 9, 2020
@sabrina-li sabrina-li deleted the sabrina/networkutils branch March 9, 2020 18:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants