Skip to content

Commit d6bde8d

Browse files
author
huangsihua
committed
whitelist update, sample project compile modify
1 parent 7650a50 commit d6bde8d

File tree

5 files changed

+32
-54
lines changed

5 files changed

+32
-54
lines changed

app/build.gradle

+12-18
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,24 @@ android {
1010
storePassword 'android'
1111
}
1212
}
13-
compileSdkVersion 29
14-
buildToolsVersion '28.0.3'
13+
compileSdkVersion 33
14+
// buildToolsVersion '28.0.3'
1515

1616
packagingOptions {
1717
// pickFirst 'lib/armeabi-v7a/libwhitename.so'
18-
pickFirst 'lib/arm64-v8a/libwhitename.so'
18+
// pickFirst 'lib/arm64-v8a/libwhitename.so'
1919
// pickFirst 'lib/armeabi-v7a/libAutelUtil.so'
20-
pickFirst 'lib/arm64-v8a/libAutelUtil.so'
20+
// pickFirst 'lib/arm64-v8a/libAutelUtil.so'
2121
}
2222
defaultConfig {
23-
applicationId "com.autel.maxlink"
24-
minSdkVersion 19
25-
//noinspection ExpiredTargetSdkVersion
23+
applicationId "com.dronesense.pilot"
24+
minSdkVersion 21
2625
targetSdkVersion 29
2726
versionCode 1
2827
versionName "V1.0.1.40"
2928
multiDexEnabled true
3029
signingConfig signingConfigs.config
31-
ndkVersion '21.4.7075529'
30+
ndkVersion '21.4.7075529' // ���� NDK �汾
3231
}
3332
buildTypes {
3433
release {
@@ -48,10 +47,6 @@ android {
4847
}
4948
productFlavors {
5049
}
51-
compileOptions {
52-
sourceCompatibility JavaVersion.VERSION_1_8
53-
targetCompatibility JavaVersion.VERSION_1_8
54-
}
5550
}
5651

5752
repositories {
@@ -67,12 +62,11 @@ dependencies {
6762
implementation fileTree(include: ['*.jar'], dir: 'libs')
6863
// testCompile 'junit:junit:4.12'
6964
//*
70-
// implementation project(':sdk')
65+
//implementation project(':sdk')
7166

7267
implementation(name: "autel-sdk-release", ext: "aar")
7368

74-
75-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
69+
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.20"
7670
//noinspection GradleCompatible
7771
// implementation 'com.android.support:appcompat-v7:25.3.1'
7872
implementation 'com.google.android.gms:play-services-maps:17.0.1'
@@ -86,10 +80,10 @@ dependencies {
8680

8781
implementation('com.squareup.okhttp3:okhttp:4.7.2')
8882
// compile autelSdkDependencies.okIO
89-
api 'io.reactivex.rxjava2:rxjava:2.1.2'
90-
api 'io.reactivex.rxjava2:rxandroid:2.0.1'
83+
// api 'io.reactivex.rxjava2:rxjava:2.1.2'
84+
// api 'io.reactivex.rxjava2:rxandroid:2.0.1'
9185
// api files('libs/commons-codec-1.5.jar')
92-
implementation 'org.greenrobot:eventbus:3.0.0'
86+
// api 'org.greenrobot:eventbus:3.0.0'
9387
implementation 'com.google.code.gson:gson:2.8.7'
9488
// api "androidx.annotation:annotation:1.0.0"
9589
}

app/libs/autel-sdk-release.aar

30.2 KB
Binary file not shown.

app/src/main/java/com/autel/sdksample/base/camera/CameraActivity.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import com.autel.common.camera.CameraProduct;
1818
import com.autel.common.error.AutelError;
1919
import com.autel.common.video.OnRenderFrameInfoListener;
20-
import com.autel.internal.video.core.decoder2.VideoCacheManager;
2120
import com.autel.sdk.camera.AutelBaseCamera;
2221
import com.autel.sdk.camera.AutelCameraManager;
2322
import com.autel.sdk.product.BaseProduct;
@@ -137,10 +136,10 @@ public void onRenderFrameTimestamp(long pts) {
137136
state = true;
138137
AutelCodecView.setOverExposure(false, R.drawable.expo1280);
139138
}
140-
if(VideoCacheManager.instance().ptsMap.containsKey(pts)){
139+
/* if(VideoCacheManager.instance().ptsMap.containsKey(pts)){
141140
//AutelLog.tag("DDL").b().d("每一帧cost Time:"+(System.currentTimeMillis() - VideoCacheManager.instance().ptsMap.get(pts))+"ms, pts:"+pts+" current Time:"+System.currentTimeMillis()+" size:"+VideoCacheManager.instance().ptsMap.size());
142141
VideoCacheManager.instance().ptsMap.remove(pts);
143-
}
142+
}*/
144143
}
145144

146145
@Override

build.gradle

+17-32
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = '1.4.20'
3+
ext.kotlin_version = '1.7.20'
44
repositories {
5-
google()
65
mavenCentral()
7-
maven {url 'https://maven.aliyun.com/repository/public/'}
8-
maven {url 'https://maven.aliyun.com/repository/central/'}
9-
maven {url 'https://maven.aliyun.com/repository/google/'}
10-
maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
6+
maven { url 'https://maven.aliyun.com/repository/public/' }
7+
maven { url 'https://maven.aliyun.com/repository/central/' }
8+
maven { url 'https://maven.aliyun.com/repository/google/' }
9+
maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
1110
mavenCentral()
1211
maven {
13-
url 'https://maven.google.com/'
14-
name 'Google'
12+
url "https://maven.google.com"
1513
}
14+
maven { url "https://jitpack.io" }
1615
}
1716
dependencies {
18-
classpath 'com.android.tools.build:gradle:3.6.0'
17+
//*/
18+
classpath 'com.android.tools.build:gradle:7.2.2'
1919
/*/
2020
classpath 'com.android.tools.build:gradle:3.0.0'
2121
//*/
2222
// classpath 'me.vigi:fat-aar-plugin:0.2.8'
23+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
2324
classpath 'com.github.kezong:fat-aar:1.3.6'
2425
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
2526
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.4.18'
2627
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
27-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
28+
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2829
// NOTE: Do not place your application dependencies here; they belong
2930
// in the individual module build.gradle files
3031
}
@@ -33,35 +34,19 @@ buildscript {
3334
allprojects {
3435
apply plugin: "com.jfrog.artifactory"
3536
repositories {
36-
maven {url 'https://maven.aliyun.com/repository/public/'}
37-
maven {url 'https://maven.aliyun.com/repository/central/'}
38-
maven {url 'https://maven.aliyun.com/repository/google/'}
39-
maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
40-
google()
37+
maven { url 'https://maven.aliyun.com/repository/public/' }
38+
maven { url 'https://maven.aliyun.com/repository/central/' }
39+
maven { url 'https://maven.aliyun.com/repository/google/' }
40+
maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
4141
mavenCentral()
42-
maven{
43-
url 'https://maven.google.com'
44-
}
45-
maven() {
46-
//*
47-
url "http://10.250.64.96:8082/artifactory/gradle-dev"
48-
// url "http://10.240.12.2:8081/artifactory/autel-release"
49-
50-
/*/
51-
url "https://fmworld.bintray.com/android"
52-
//*/
53-
}
54-
55-
jcenter()
5642
maven {
57-
url 'https://maven.google.com/'
58-
name 'Google'
43+
url 'https://maven.google.com'
5944
}
45+
maven { url "https://jitpack.io" }
6046
}
6147
}
6248

6349

64-
6550
task clean(type: Delete) {
6651
delete rootProject.buildDir
6752
}

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
77

88

0 commit comments

Comments
 (0)