mirror of
https://github.com/ZCShou/GoGoGo.git
synced 2026-06-05 21:00:50 +08:00
编译;处理了一些警告
This commit is contained in:
parent
84fd3fb521
commit
d61d5a8222
@ -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.
@ -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
|
||||
|
||||
@ -35,6 +35,11 @@ allprojects {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
// gradle.projectsEvaluated {
|
||||
// tasks.withType(JavaCompile) { // 用于显示过时 API 的详细信息
|
||||
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user