From 737da56d2d24e09424fe93a50061039231366d23 Mon Sep 17 00:00:00 2001 From: Shin Hyuk Park <qkr819@ajou.ac.kr> Date: Wed, 13 Jun 2018 22:55:59 +0900 Subject: [PATCH] permission --- app/build.gradle | 1 + app/src/main/AndroidManifest.xml | 1 + app/src/main/res/layout/activity_settings.xml | 10 ++++++++++ app/src/main/res/values/strings.xml | 2 ++ 4 files changed, 14 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 86e2ed8..2e5e253 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -50,6 +50,7 @@ dependencies { implementation 'joda-time:joda-time:2.9.9' implementation 'com.facebook.stetho:stetho:1.5.0' implementation 'com.android.support:multidex:1.0.3' + implementation 'com.facebook.android:facebook-login:[4,5)' implementation fileTree(dir: 'libs', include: ['*.jar']) implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support.constraint:constraint-layout:1.0.2' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index dd56a68..5b5bae9 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -5,6 +5,7 @@ package="com.simplemobiletools.calendar" android:installLocation="auto"> + <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index f26766c..54adab6 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -164,6 +164,16 @@ android:text="@string/event_reminders" android:textAllCaps="true" android:textSize="@dimen/smaller_text_size"/> + <com.simplemobiletools.commons.views.MyTextView + android:id="@+id/login_facebook" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/bigger_margin" + android:layout_marginStart="@dimen/bigger_margin" + android:layout_marginTop="@dimen/activity_margin" + android:text="@string/event_reminders" + android:textAllCaps="true" + android:textSize="@dimen/smaller_text_size"/> <RelativeLayout android:id="@+id/settings_gps_holder" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ac40c68..96fd841 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,5 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <resources> + <string name="facebook_app_id">253715235190653</string> + <string name="fb_login_protocol_scheme">fb253715235190653</string> <string name="app_name">심플 캘린더</string> <string name="app_launcher_name">캘린더</string> <string name="change_view">보기 변경</string> -- GitLab