|
|
@@ -2,8 +2,15 @@
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
package="com.example.yiupang.freefoodfinder">
|
|
|
|
|
|
- <uses-permission android:name="android.permission.INERNET"/>
|
|
|
+ <uses-permission android:name="android.permission.INERNET" />
|
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
|
+ <uses-permission android:name="android.permission.SET_DEBUG_APP" />
|
|
|
+
|
|
|
+ <!-- To auto-complete the email text field in the login form with the user's emails -->
|
|
|
+ <uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
|
|
+ <uses-permission android:name="android.permission.READ_PROFILE" />
|
|
|
+ <uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
|
+
|
|
|
<application
|
|
|
android:allowBackup="true"
|
|
|
android:icon="@mipmap/ic_launcher"
|
|
|
@@ -11,30 +18,41 @@
|
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
|
android:supportsRtl="true"
|
|
|
android:theme="@style/Theme.AppCompat.Light.NoActionBar">
|
|
|
- <meta-data android:name="com.facebook.sdk.ApplicationId"
|
|
|
- android:value="@string/facebook_app_id"/>
|
|
|
- <meta-data
|
|
|
- android:name="com.google.android.gms.version"
|
|
|
- android:value="@integer/google_play_services_version" />
|
|
|
+
|
|
|
+ <!-- Facebook meta-data -->
|
|
|
<meta-data
|
|
|
- android:name="com.google.android.geo.API_KEY"
|
|
|
- android:value="@string/google_maps_key" />
|
|
|
+ android:name="com.facebook.sdk.ApplicationId"
|
|
|
+ android:value="@string/facebook_app_id" />
|
|
|
|
|
|
- <activity android:name="com.facebook.FacebookActivity"
|
|
|
- android:configChanges=
|
|
|
- "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
|
|
|
- android:theme="@android:style/Theme.Translucent.NoTitleBar"
|
|
|
- android:label="@string/app_name" />
|
|
|
+ <!-- Login Activity -->
|
|
|
<activity
|
|
|
- android:name=".MainActivity"
|
|
|
- android:label="@string/app_name"
|
|
|
- android:theme="@style/AppTheme.NoActionBar">
|
|
|
+ android:name=".LoginActivity"
|
|
|
+ android:label="@string/app_name">
|
|
|
<intent-filter>
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
</intent-filter>
|
|
|
</activity>
|
|
|
- </application>
|
|
|
|
|
|
+ <!-- Main Activity -->
|
|
|
+ <activity
|
|
|
+ android:name=".MainActivity"
|
|
|
+ android:parentActivityName=".LoginActivity"
|
|
|
+ android:theme="@style/AppTheme.NoActionBar">
|
|
|
+ </activity>
|
|
|
+
|
|
|
+ <!-- Google API meta-deta -->
|
|
|
+ <meta-data
|
|
|
+ android:name="com.google.android.gms.version"
|
|
|
+ android:value="@integer/google_play_services_version" />
|
|
|
+ <meta-data
|
|
|
+ android:name="com.google.android.geo.API_KEY"
|
|
|
+ android:value="@string/google_maps_key" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </application>
|
|
|
</manifest>
|