From cf44e76d11ce203405c3bcd5a89712e8e2511a8b Mon Sep 17 00:00:00 2001 From: liuyang Date: Wed, 18 Jul 2018 19:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Eroot=E6=8A=93=E5=8C=85=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 25 +++++++++++---- app/src/main/AndroidManifest.xml | 11 +++++-- app/src/main/res/layout/activity_main.xml | 30 ++++++++++------- .../main/res/layout/activity_package_list.xml | 17 ++++++++++ .../main/res/layout/item_select_package.xml | 32 +++++++++++++++++++ app/src/main/res/values/strings.xml | 2 +- 6 files changed, 95 insertions(+), 22 deletions(-) create mode 100644 app/src/main/res/layout/activity_package_list.xml create mode 100644 app/src/main/res/layout/item_select_package.xml diff --git a/app/build.gradle b/app/build.gradle index 9a65b8e..84e5860 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,21 +1,30 @@ apply plugin: 'com.android.application' - apply plugin: 'kotlin-android' - apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 28 + compileSdkVersion 27 defaultConfig { - applicationId "com.duolebo.dlbbot" + applicationId "com.duolebo.bylrobot" minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" } + + signingConfigs { + release { + storeFile file('../duolebo') + keyAlias 'duolebo' + storePassword '1qaz2wsx#' + keyPassword '1qaz2wsx#' + } + } + buildTypes { release { minifyEnabled false + signingConfig signingConfigs.release proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } @@ -23,7 +32,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.appcompat:appcompat:1.0.0-alpha1' - implementation 'androidx.constraintlayout:constraintlayout:1.1.2' + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'com.android.support:appcompat-v7:27.1.1' + implementation 'org.nanohttpd:nanohttpd:2.2.0' + implementation 'com.yanzhenjie:andserver:1.1.4' + implementation(name: 'vpnadaptercore-release', ext: 'aar') } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index dae794b..6cce2a5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -5,6 +5,10 @@ + + + + - + + + - + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 4fc2444..1b20f11 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,18 +1,24 @@ - + android:layout_width="match_parent"> - + android:text="选择App抓包" + android:layout_centerInParent="true"/> - \ No newline at end of file +