mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android][sdk] add missing dependencies
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
committed by
Konstantin Pastbin
parent
6a85526ac9
commit
dc8d4e7da9
@@ -98,7 +98,13 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.annotation:annotation:1.9.1'
|
||||
implementation 'androidx.core:core:1.17.0'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.4.0'
|
||||
implementation 'androidx.fragment:fragment:1.8.9'
|
||||
implementation 'androidx.lifecycle:lifecycle-process:2.9.2'
|
||||
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
}
|
||||
|
||||
// TODO: Running lint task triggers native build. Find a better solution.
|
||||
|
||||
@@ -9,8 +9,8 @@ import androidx.annotation.NonNull;
|
||||
import app.organicmaps.BuildConfig;
|
||||
import app.organicmaps.sdk.util.StringUtils;
|
||||
import app.organicmaps.sdk.util.log.Logger;
|
||||
import com.google.common.base.Objects;
|
||||
import dalvik.annotation.optimization.FastNative;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Icon implements Parcelable
|
||||
{
|
||||
@@ -86,7 +86,7 @@ public class Icon implements Parcelable
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return Objects.hashCode(mColor, mType);
|
||||
return Arrays.hashCode(new int[] {mColor, mType});
|
||||
}
|
||||
|
||||
public static final Parcelable.Creator<Icon> CREATOR = new Parcelable.Creator<>() {
|
||||
|
||||
@@ -18,7 +18,6 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.StringRes;
|
||||
import app.organicmaps.BuildConfig;
|
||||
import app.organicmaps.R;
|
||||
import app.organicmaps.sdk.util.log.Logger;
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -12,9 +12,8 @@ import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
@ThreadSafe
|
||||
/// Thread-safe
|
||||
public final class Logger
|
||||
{
|
||||
private static final String TAG = Logger.class.getSimpleName();
|
||||
|
||||
@@ -27,16 +27,16 @@ import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
/**
|
||||
* Thread-safe
|
||||
* <p>
|
||||
* By default uses Android's system logger.
|
||||
* After an initFileLogging() call can use a custom file logging implementation.
|
||||
* <p>
|
||||
* Its important to have only system logging here to avoid infinite loop
|
||||
* (Logger calls getEnabledLogsFolder() in preparation to write).
|
||||
*/
|
||||
@ThreadSafe
|
||||
public final class LogsManager
|
||||
{
|
||||
public interface OnZipCompletedListener
|
||||
|
||||
Reference in New Issue
Block a user