From 713e92c28feb5ab86e6ff5cb00b83aebfff9c20c Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 7 Feb 2018 14:50:15 -0500 Subject: [PATCH] Revert "Revert "fixed #1088"" --- android/AndroidManifest.xml | 10 +- android/build.gradle | 22 +++- android/res/layout/activity_perms_asker.xml | 27 ++++ android/res/values/template-dimens.xml | 16 +++ .../src/org/purplei2p/i2pd/I2PDActivity.java | 3 +- .../i2pd/I2PDPermsAskerActivity.java | 121 ++++++++++++++++++ 6 files changed, 190 insertions(+), 9 deletions(-) create mode 100644 android/res/layout/activity_perms_asker.xml create mode 100644 android/res/values/template-dimens.xml create mode 100644 android/src/org/purplei2p/i2pd/I2PDPermsAskerActivity.java diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 95fff3ff..df817b82 100755 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -6,21 +6,21 @@ android:versionName="2.18.0"> - - - + + + - + + diff --git a/android/build.gradle b/android/build.gradle index 821dbc16..750ae008 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,15 +1,31 @@ buildscript { repositories { - mavenCentral() - jcenter() + mavenCentral() + jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:2.3.3' } } apply plugin: 'com.android.application' +repositories { + jcenter() + maven { + url 'https://maven.google.com' + } +} + +dependencies { +// compile "com.android.support:support-v4:26.1.0" +// compile "com.android.support:support-v13:26.1.0" +// compile "com.android.support:cardview-v7:26.1.0" +// compile "com.android.support:appcompat-v7:26.1.0" + compile 'com.android.support:support-v4:25.3.1' + compile 'com.android.support:design:25.3.1' +} + android { compileSdkVersion 25 buildToolsVersion "25.0.2" diff --git a/android/res/layout/activity_perms_asker.xml b/android/res/layout/activity_perms_asker.xml new file mode 100644 index 00000000..d2d12cb6 --- /dev/null +++ b/android/res/layout/activity_perms_asker.xml @@ -0,0 +1,27 @@ + + + + +