Skip to content

Commit

Permalink
Merge pull request #10 from HMBSbige/kotlin
Browse files Browse the repository at this point in the history
Convert to Kotlin
  • Loading branch information
HMBSbige committed Nov 7, 2019
2 parents 97a8f58 + 94ead1b commit 3416ac6
Show file tree
Hide file tree
Showing 155 changed files with 9,645 additions and 19,122 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ lint/tmp/
# NDK

.gradle
.idea
.idea/*
!.idea/codeStyles/
**/*.iml
local.properties
build
Expand Down
147 changes: 147 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
# ShadowsocksRR
A ShadowsocksRR client for Android, written in Java.


# ShadowsocksR
A ShadowsocksR client for Android, written in Kotlin.

### PREREQUISITES

* JDK 1.8
* AndroidStudio 3.4
* Android Build Tools 29+
* Android NDK 19+
* Android Studio 3.5.2

# LICENSE

Copyright (C) 2016 by Max Lv <<max.c.lv@gmail.com>>
Copyright (C) 2016 by Mygod Studio <<mygodstudio@gmail.com>>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
25 changes: 0 additions & 25 deletions app/CMakeLists.txt

This file was deleted.

36 changes: 7 additions & 29 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion rootProject.compileSdkVersion
defaultConfig {
applicationId "com.github.shadowsocksr_hmbsbige"
applicationId "com.bige0.shadowsocksr"
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.sdkVersion
versionCode rootProject.versionCode
Expand All @@ -18,26 +18,16 @@ android {
// 增加java堆内存大小
javaMaxHeapSize "4g"
}
externalNativeBuild {
cmake {
cppFlags "-frtti -fexceptions"
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
multiDexEnabled true
proguardFiles
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
Expand All @@ -55,38 +45,26 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'

implementation 'androidx.recyclerview:recyclerview:1.0.0'

implementation 'com.evernote:android-job:1.3.0-rc1'
implementation "android.arch.work:work-runtime:1.0.1"
implementation 'com.evernote:android-job:1.4.2'
implementation 'androidx.work:work-runtime:2.2.0'
implementation "com.github.clans:fab:1.6.4"
implementation "com.github.jorgecastilloprz:fabprogresscircle:1.01"
implementation "com.google.android.gms:play-services-analytics:17.0.0"
implementation "com.google.android.gms:play-services-gcm:17.0.0"
implementation "com.j256.ormlite:ormlite-android:5.1"
implementation "com.mikepenz:fastadapter:4.0.1"
implementation "com.mikepenz:iconics-core:4.0.0"
implementation 'com.mikepenz:iconics-core:4.0.2'
implementation "com.mikepenz:materialdrawer:6.1.2"
implementation 'com.mikepenz:materialize:1.2.1'
implementation "com.twofortyfouram:android-plugin-api-for-locale:1.0.4"
implementation "dnsjava:dnsjava:2.1.9"
implementation "eu.chainfire:libsuperuser:1.1.0.201907261845"
implementation "me.dm7.barcodescanner:zxing:1.9.13"
implementation "net.glxn.qrgen:android:2.0"
implementation 'com.squareup.okhttp3:okhttp:4.2.0'
implementation 'com.squareup.okhttp3:okhttp:4.2.2'
implementation "com.google.code.findbugs:jsr305:3.0.2"


}


repositories {
mavenCentral()
}
Binary file removed app/libs/arm64-v8a/libredsocks.so
Binary file not shown.
Binary file removed app/libs/armeabi-v7a/libredsocks.so
Binary file not shown.
Binary file removed app/libs/x86/libredsocks.so
Binary file not shown.
File renamed without changes.
Binary file removed app/libs/x86_64/libredsocks.so
Binary file not shown.
File renamed without changes.
5 changes: 1 addition & 4 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keep class com.github.shadowsocks.System { *; }
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-keep class okio.** { *; }
-keep interface okio.** { *; }
-dontwarn okio.**
-dontwarn com.google.android.gms.internal.**
-dontwarn com.j256.ormlite.**
-dontwarn org.xbill.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
-dontwarn org.xbill.**
Loading

0 comments on commit 3416ac6

Please sign in to comment.