编译;处理了一些警告

This commit is contained in:
ZCShou 2020-11-11 10:01:23 +08:00
parent 84fd3fb521
commit d61d5a8222
4 changed files with 21 additions and 14 deletions

View File

@ -29,12 +29,12 @@ android {
jniLibs.srcDirs = ['libs']
}
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
// lintOptions {
// checkReleaseBuilds false
// // Or, if you prefer, you can continue to check for errors in release builds,
// // but continue the build even when errors are found:
// abortOnError false
// }
}
dependencies {

Binary file not shown.

View File

@ -371,11 +371,11 @@ public class GoService extends Service {
log.debug("setTestProviderEnabled[NETWORK_PROVIDER] error");
}
}
// 根据 google 的文档API 29 此方法无效
locationManager.setTestProviderStatus(LocationManager.NETWORK_PROVIDER, LocationProvider.AVAILABLE, null,
System.currentTimeMillis());
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
// 根据 google 的文档API 29 此方法无效
locationManager.setTestProviderStatus(LocationManager.NETWORK_PROVIDER, LocationProvider.AVAILABLE, null,
System.currentTimeMillis());
}
}
// set GPS provider
@ -431,9 +431,11 @@ public class GoService extends Service {
}
}
// 根据 google 的文档API 29 此方法无效
locationManager.setTestProviderStatus(LocationManager.GPS_PROVIDER, LocationProvider.AVAILABLE, null,
System.currentTimeMillis());
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
// 根据 google 的文档API 29 此方法无效
locationManager.setTestProviderStatus(LocationManager.GPS_PROVIDER, LocationProvider.AVAILABLE, null,
System.currentTimeMillis());
}
}
// // set other provider

View File

@ -35,6 +35,11 @@ allprojects {
google()
jcenter()
}
// gradle.projectsEvaluated {
// tasks.withType(JavaCompile) { // API
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
// }
// }
}
task clean(type: Delete) {