Skip to content

Commit b8f31ec

Browse files
committed
Merge branch 'main' of github.com:youlookwhat/BySMB
# Conflicts: # app/build.gradle # gradle.properties
2 parents 12c51ad + a99ce05 commit b8f31ec

File tree

5 files changed

+65
-20
lines changed

5 files changed

+65
-20
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ captures/
5252

5353
# Keystore files
5454
# Uncomment the following lines if you do not want to check your keystore files in.
55-
#*.jks
56-
#*.keystore
5755

5856
# External native build folder generated in Android Studio 2.2 and later
5957
.externalNativeBuild

app/build.gradle

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@ plugins {
66
}
77

88
android {
9-
compileSdkVersion 28
9+
compileSdkVersion 29
1010
buildToolsVersion "28.0.3"
1111

1212
defaultConfig {
1313
applicationId "me.jingbin.smb.demo"
1414
minSdkVersion 19
15-
targetSdkVersion 28
15+
targetSdkVersion 29
1616
versionCode 2
1717
versionName "2.0"
1818
multiDexEnabled true
1919
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20-
}
21-
22-
buildTypes {
23-
release {
24-
minifyEnabled false
25-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
20+
ndk {
21+
abiFilters 'armeabi-v7a', "x86"
2622
}
2723
}
24+
2825
compileOptions {
2926
sourceCompatibility JavaVersion.VERSION_1_8
3027
targetCompatibility JavaVersion.VERSION_1_8
@@ -35,6 +32,36 @@ android {
3532
dataBinding {
3633
enabled = true
3734
}
35+
36+
//签名 其他smb
37+
// signingConfigs {
38+
// release {
39+
// storeFile file("./bysmb.jks")
40+
// storePassword "bysmb2021"
41+
// keyAlias "bysmb"
42+
// keyPassword "bysmb2021"
43+
// v1SigningEnabled true
44+
// v2SigningEnabled true
45+
// }
46+
// }
47+
// buildTypes {
48+
// release {
49+
// // 混淆
50+
// minifyEnabled false
51+
// // Zipalign优化
52+
// zipAlignEnabled false
53+
// // 移除无用的resource文件
54+
// shrinkResources false
55+
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
56+
// signingConfig signingConfigs.release
57+
// }
58+
//
59+
// debug {
60+
//// signingConfig signingConfigs.release
61+
// minifyEnabled false
62+
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
63+
// }
64+
// }
3865
}
3966

4067
dependencies {

gradle.properties

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14+
15+
# When configured, Gradle will run in incubating parallel mode.
16+
# This option should only be used with decoupled projects. More details, visit
17+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18+
# org.gradle.parallel=true
19+
20+
# Android插件会使用相应的AndroidX库而不是支持库,默认为false。
121
android.enableJetifier=true
2-
android.useAndroidX=true
22+
# Android插件会自动迁移现有的第三方库,通过重写其二进制文件来使用AndroidX,默认为false。
23+
android.useAndroidX=true
24+
org.gradle.jvmargs=-Xmx4096m

smb/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ apply plugin: 'maven'
88
group = 'com.github.youlookwhat'
99

1010
java {
11-
sourceCompatibility = JavaVersion.VERSION_1_7
12-
targetCompatibility = JavaVersion.VERSION_1_7
11+
sourceCompatibility = JavaVersion.VERSION_1_8
12+
targetCompatibility = JavaVersion.VERSION_1_8
1313
}
1414

1515
dependencies {
@@ -18,12 +18,12 @@ dependencies {
1818

1919
// 读取及写入网络共享文件
2020
api group: 'com.hierynomus', name: 'smbj', version: '0.10.0'
21-
api group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
22-
api group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.60'
23-
api group: 'net.engio', name: 'mbassador', version: '1.3.0'
24-
api group: 'com.hierynomus', name: 'asn-one', version: '0.4.0'
21+
// api group: 'com.hierynomus', name: 'asn-one', version: '0.5.0'
22+
// api group: 'org.slf4j', name: 'slf4j-api', version: '2.0.0-alpha6'
23+
// api group: 'org.slf4j', name: 'slf4j-log4j12', version: '2.0.0-alpha6'
24+
// api group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.69'
25+
// api group: 'net.engio', name: 'mbassador', version: '1.3.0'
2526
// api group: 'org.apache.cassandra', name: 'cassandra-all', version: '0.8.1'
2627
// api group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.4'
2728

28-
api group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.6.6'
2929
}

smb/src/main/java/me/jingbin/smb/BySMB.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import com.hierynomus.smbj.SmbConfig
88
import com.hierynomus.smbj.auth.AuthenticationContext
99
import com.hierynomus.smbj.connection.Connection
1010
import com.hierynomus.smbj.share.DiskShare
11-
import org.apache.log4j.BasicConfigurator
1211
import java.io.*
1312
import java.util.*
1413
import java.util.concurrent.TimeUnit
@@ -215,7 +214,6 @@ class BySMB(private val builder: Builder) {
215214
System.setProperty("jcifs.smb.client.dfs.disabled", "true")
216215
System.setProperty("jcifs.smb.client.soTimeout", soTimeout)
217216
System.setProperty("jcifs.smb.client.responseTimeout", responseTimeout)
218-
BasicConfigurator.configure()
219217
}
220218
}
221219

0 commit comments

Comments
 (0)