Skip to content

Commit

Permalink
update sdk and compileSdkVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
xtc committed May 14, 2020
1 parent 572b740 commit 4ff0414
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/build
gradlew
gradlew.bat

15 changes: 12 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
compileSdkVersion 28
defaultConfig {
applicationId "ttlock.demo"
minSdkVersion 23
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -26,6 +26,13 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}

//添加本地仓库,并把libs目录作为仓库地址
repositories {
flatDir {
dirs 'libs'
}
}
}

dependencies {
Expand All @@ -35,10 +42,12 @@ dependencies {
implementation "com.android.support:design:$rootProject.supportLibraryVersion"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
implementation(name: 'ttlock-release-3.0.7', ext: 'aar')
implementation 'no.nordicsemi.android:dfu:1.8.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.tongtonglock:ttlock:3.0.6'
// implementation 'com.tongtonglock:ttlock:3.0.6'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
}
Binary file added app/libs/ttlock-release-3.0.7.aar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ public void onClick(WirelessKeypad device) {
/**
* WirelessKeypad device,
* String lockmac: the lock which need add wireless key pad Mac address
* String factoryDate: !!!!!!!date of manufacture of the lock which should get from server.
* InitKeypadCallback callback :
*/
WirelessKeypadClient.getDefault().initializeKeypad(device, mCurrentLock.getLockMac(), "", new InitKeypadCallback() {
WirelessKeypadClient.getDefault().initializeKeypad(device, mCurrentLock.getLockMac(), new InitKeypadCallback() {
@Override
public void onInitKeypadSuccess(int specialValue) {
makeToast("=---add success-- upload to server to finish-");
Expand Down

0 comments on commit 4ff0414

Please sign in to comment.