Skip to content

Commit

Permalink
fix 4.1.4 can't publish Jitpack
Browse files Browse the repository at this point in the history
gradle version need to jdk 11
so use gralde 5.6.4 3.6.0
  • Loading branch information
Shanyaliux committed Jan 20, 2022
1 parent a91f5cd commit 7270b30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class MainActivity : AppCompatActivity() {

buttonSend.setOnClickListener {
// serialPort.sendData("hello\r\n")
serialPort.sendData("0C fF")
serialPort.sendData("0C fF 52 65 45 48 65 54 45 65 84 45 65 14 56 48 54 85 45 84 54 85 45 54 0a 0d")
// serialPort.sendData("你好")
// serialPort.printPossibleBleUUID()
// serialPort.doDiscovery(this)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath 'com.android.tools.build:gradle:3.6.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Feb 21 10:52:07 CST 2021
#Thu Jan 20 17:33:37 CST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
4 changes: 2 additions & 2 deletions serialport/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility "1.8"
targetCompatibility "1.8"
}
kotlinOptions {
jvmTarget = '1.8'
Expand Down

0 comments on commit 7270b30

Please sign in to comment.