Skip to content

Commit

Permalink
add ssl certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
odaridavid committed Jul 14, 2019
1 parent c55cfa4 commit 50ed956
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="com.lca.odari.alc40">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET"/>

<application
android:name=".ALCApplication"
android:allowBackup="true"
android:networkSecurityConfig="@xml/network_config"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
Expand Down
Binary file added app/src/main/res/raw/andela.cer
Binary file not shown.
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
<string name="label_username">
<b>Username :</b> /@%s
</string>
<string name="alc_link">https://andela.com/alc/</string>

</resources>
9 changes: 9 additions & 0 deletions app/src/main/res/xml/network_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config>
<domain includeSubdomains="true">andela.com</domain>
<trust-anchors>
<certificates src="@raw/andela"/>
</trust-anchors>
</domain-config>
</network-security-config>

0 comments on commit 50ed956

Please sign in to comment.