Add Discord APKTool decompilation (Smali source for modding)

- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
.class final Landroidx/datastore/DataStoreDelegateKt$dataStore$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/DataStoreDelegateKt;->dataStore$default(Ljava/lang/String;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;ILjava/lang/Object;)Lkotlin/properties/ReadOnlyProperty;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# static fields
.field public static final INSTANCE:Landroidx/datastore/DataStoreDelegateKt$dataStore$1;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/DataStoreDelegateKt$dataStore$1;
invoke-direct {v0}, Landroidx/datastore/DataStoreDelegateKt$dataStore$1;-><init>()V
sput-object v0, Landroidx/datastore/DataStoreDelegateKt$dataStore$1;->INSTANCE:Landroidx/datastore/DataStoreDelegateKt$dataStore$1;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 67
check-cast p1, Landroid/content/Context;
invoke-virtual {p0, p1}, Landroidx/datastore/DataStoreDelegateKt$dataStore$1;->invoke(Landroid/content/Context;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
.method public final invoke(Landroid/content/Context;)Ljava/util/List;
.locals 1
const-string v0, "it"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 67
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,111 @@
.class public final Landroidx/datastore/DataStoreDelegateKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final dataStore(Ljava/lang/String;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)Lkotlin/properties/ReadOnlyProperty;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/String;",
"Landroidx/datastore/core/Serializer<",
"TT;>;",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"TT;>;",
"Lkotlin/jvm/functions/Function1;",
"Lkotlinx/coroutines/CoroutineScope;",
")",
"Lkotlin/properties/ReadOnlyProperty;"
}
.end annotation
const-string v0, "fileName"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "serializer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceMigrations"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "scope"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 70
new-instance v0, Landroidx/datastore/DataStoreSingletonDelegate;
move-object v1, v0
move-object v2, p0
move-object v3, p1
move-object v4, p2
move-object v5, p3
move-object v6, p4
invoke-direct/range {v1 .. v6}, Landroidx/datastore/DataStoreSingletonDelegate;-><init>(Ljava/lang/String;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)V
return-object v0
.end method
.method public static synthetic dataStore$default(Ljava/lang/String;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;ILjava/lang/Object;)Lkotlin/properties/ReadOnlyProperty;
.locals 1
and-int/lit8 p6, p5, 0x4
const/4 v0, 0x0
if-eqz p6, :cond_0
move-object p2, v0
:cond_0
and-int/lit8 p6, p5, 0x8
if-eqz p6, :cond_1
sget-object p3, Landroidx/datastore/DataStoreDelegateKt$dataStore$1;->INSTANCE:Landroidx/datastore/DataStoreDelegateKt$dataStore$1;
:cond_1
and-int/lit8 p5, p5, 0x10
if-eqz p5, :cond_2
.line 68
invoke-static {}, Lkotlinx/coroutines/Dispatchers;->getIO()Lkotlinx/coroutines/CoroutineDispatcher;
move-result-object p4
const/4 p5, 0x1
invoke-static {v0, p5, v0}, Lkotlinx/coroutines/SupervisorKt;->SupervisorJob$default(Lkotlinx/coroutines/Job;ILjava/lang/Object;)Lkotlinx/coroutines/CompletableJob;
move-result-object p5
invoke-virtual {p4, p5}, Lkotlin/coroutines/AbstractCoroutineContextElement;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
move-result-object p4
invoke-static {p4}, Lkotlinx/coroutines/CoroutineScopeKt;->CoroutineScope(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineScope;
move-result-object p4
.line 63
:cond_2
invoke-static {p0, p1, p2, p3, p4}, Landroidx/datastore/DataStoreDelegateKt;->dataStore(Ljava/lang/String;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)Lkotlin/properties/ReadOnlyProperty;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,38 @@
.class public final Landroidx/datastore/DataStoreFile;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final dataStoreFile(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
.locals 2
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "fileName"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 36
new-instance v0, Ljava/io/File;
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object p0
const-string v1, "datastore/"
invoke-static {v1, p1}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p0, p1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
return-object v0
.end method

View File

@@ -0,0 +1,97 @@
.class final Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/DataStoreSingletonDelegate;->getValue(Landroid/content/Context;Lkotlin/reflect/KProperty;)Landroidx/datastore/core/DataStore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function0;"
}
.end annotation
# instance fields
.field final synthetic $applicationContext:Landroid/content/Context;
.field final synthetic this$0:Landroidx/datastore/DataStoreSingletonDelegate;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/DataStoreSingletonDelegate<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroidx/datastore/DataStoreSingletonDelegate;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Landroidx/datastore/DataStoreSingletonDelegate<",
"TT;>;)V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;->$applicationContext:Landroid/content/Context;
iput-object p2, p0, Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;->this$0:Landroidx/datastore/DataStoreSingletonDelegate;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public final invoke()Ljava/io/File;
.locals 2
iget-object v0, p0, Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;->$applicationContext:Landroid/content/Context;
const-string v1, "applicationContext"
.line 104
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v1, p0, Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;->this$0:Landroidx/datastore/DataStoreSingletonDelegate;
invoke-static {v1}, Landroidx/datastore/DataStoreSingletonDelegate;->access$getFileName$p(Landroidx/datastore/DataStoreSingletonDelegate;)Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroidx/datastore/DataStoreFile;->dataStoreFile(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 104
invoke-virtual {p0}, Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;->invoke()Ljava/io/File;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,255 @@
.class public final Landroidx/datastore/DataStoreSingletonDelegate;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlin/properties/ReadOnlyProperty;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lkotlin/properties/ReadOnlyProperty;"
}
.end annotation
# instance fields
.field private volatile INSTANCE:Landroidx/datastore/core/DataStore;
.annotation build Landroidx/annotation/GuardedBy;
value = "lock"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/DataStore<",
"TT;>;"
}
.end annotation
.end field
.field private final corruptionHandler:Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"TT;>;"
}
.end annotation
.end field
.field private final fileName:Ljava/lang/String;
.field private final lock:Ljava/lang/Object;
.field private final produceMigrations:Lkotlin/jvm/functions/Function1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
.end field
.field private final scope:Lkotlinx/coroutines/CoroutineScope;
.field private final serializer:Landroidx/datastore/core/Serializer;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/Serializer<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/String;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Landroidx/datastore/core/Serializer<",
"TT;>;",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"TT;>;",
"Lkotlin/jvm/functions/Function1;",
"Lkotlinx/coroutines/CoroutineScope;",
")V"
}
.end annotation
const-string v0, "fileName"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "serializer"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceMigrations"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "scope"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 78
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/DataStoreSingletonDelegate;->fileName:Ljava/lang/String;
iput-object p2, p0, Landroidx/datastore/DataStoreSingletonDelegate;->serializer:Landroidx/datastore/core/Serializer;
iput-object p3, p0, Landroidx/datastore/DataStoreSingletonDelegate;->corruptionHandler:Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;
iput-object p4, p0, Landroidx/datastore/DataStoreSingletonDelegate;->produceMigrations:Lkotlin/jvm/functions/Function1;
iput-object p5, p0, Landroidx/datastore/DataStoreSingletonDelegate;->scope:Lkotlinx/coroutines/CoroutineScope;
.line 86
new-instance p1, Ljava/lang/Object;
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/DataStoreSingletonDelegate;->lock:Ljava/lang/Object;
return-void
.end method
.method public static final synthetic access$getFileName$p(Landroidx/datastore/DataStoreSingletonDelegate;)Ljava/lang/String;
.locals 0
.line 78
iget-object p0, p0, Landroidx/datastore/DataStoreSingletonDelegate;->fileName:Ljava/lang/String;
return-object p0
.end method
# virtual methods
.method public getValue(Landroid/content/Context;Lkotlin/reflect/KProperty;)Landroidx/datastore/core/DataStore;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lkotlin/reflect/KProperty;",
")",
"Landroidx/datastore/core/DataStore<",
"TT;>;"
}
.end annotation
const-string v0, "thisRef"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "property"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p2, p0, Landroidx/datastore/DataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
if-nez p2, :cond_1
iget-object p2, p0, Landroidx/datastore/DataStoreSingletonDelegate;->lock:Ljava/lang/Object;
.line 99
monitor-enter p2
:try_start_0
iget-object v0, p0, Landroidx/datastore/DataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
if-nez v0, :cond_0
.line 101
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iget-object v1, p0, Landroidx/datastore/DataStoreSingletonDelegate;->serializer:Landroidx/datastore/core/Serializer;
iget-object v2, p0, Landroidx/datastore/DataStoreSingletonDelegate;->corruptionHandler:Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;
iget-object v0, p0, Landroidx/datastore/DataStoreSingletonDelegate;->produceMigrations:Lkotlin/jvm/functions/Function1;
const-string v3, "applicationContext"
.line 106
invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v0, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
move-object v3, v0
check-cast v3, Ljava/util/List;
iget-object v4, p0, Landroidx/datastore/DataStoreSingletonDelegate;->scope:Lkotlinx/coroutines/CoroutineScope;
.line 102
sget-object v0, Landroidx/datastore/core/DataStoreFactory;->INSTANCE:Landroidx/datastore/core/DataStoreFactory;
.line 104
new-instance v5, Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;
invoke-direct {v5, p1, p0}, Landroidx/datastore/DataStoreSingletonDelegate$getValue$1$1;-><init>(Landroid/content/Context;Landroidx/datastore/DataStoreSingletonDelegate;)V
.line 102
invoke-virtual/range {v0 .. v5}, Landroidx/datastore/core/DataStoreFactory;->create(Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
move-result-object p1
iput-object p1, p0, Landroidx/datastore/DataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
:cond_0
:goto_0
iget-object p1, p0, Landroidx/datastore/DataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
.line 110
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 99
monitor-exit p2
move-object p2, p1
goto :goto_2
:goto_1
monitor-exit p2
throw p1
:cond_1
:goto_2
return-object p2
.end method
.method public bridge synthetic getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
.locals 0
.line 78
check-cast p1, Landroid/content/Context;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/DataStoreSingletonDelegate;->getValue(Landroid/content/Context;Lkotlin/reflect/KProperty;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,34 @@
.class public final Landroidx/datastore/core/CorruptionException;
.super Ljava/io/IOException;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 1
const-string v0, "message"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 59
invoke-direct {p0, p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;Ljava/lang/Throwable;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
const/4 p2, 0x0
.line 58
:cond_0
invoke-direct {p0, p1, p2}, Landroidx/datastore/core/CorruptionException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method

View File

@@ -0,0 +1,28 @@
.class public interface abstract Landroidx/datastore/core/CorruptionHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract handleCorruption(Landroidx/datastore/core/CorruptionException;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/CorruptionException;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method

View File

@@ -0,0 +1,117 @@
.class final Landroidx/datastore/core/Data;
.super Landroidx/datastore/core/State;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
# instance fields
.field private final hashCode:I
.field private final value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Object;I)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;I)V"
}
.end annotation
const/4 v0, 0x0
.line 55
invoke-direct {p0, v0}, Landroidx/datastore/core/State;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-object p1, p0, Landroidx/datastore/core/Data;->value:Ljava/lang/Object;
iput p2, p0, Landroidx/datastore/core/Data;->hashCode:I
return-void
.end method
# virtual methods
.method public final checkHashCode()V
.locals 3
iget-object v0, p0, Landroidx/datastore/core/Data;->value:Ljava/lang/Object;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 57
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
goto :goto_0
:cond_0
move v0, v1
:goto_0
iget v2, p0, Landroidx/datastore/core/Data;->hashCode:I
if-ne v0, v2, :cond_1
const/4 v1, 0x1
:cond_1
if-eqz v1, :cond_2
return-void
:cond_2
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Data in DataStore was mutated but DataStore is only compatible with Immutable types."
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final getHashCode()I
.locals 1
iget v0, p0, Landroidx/datastore/core/Data;->hashCode:I
return v0
.end method
.method public final getValue()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/core/Data;->value:Ljava/lang/Object;
return-object v0
.end method

View File

@@ -0,0 +1,49 @@
.class public interface abstract Landroidx/datastore/core/DataMigration;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract cleanUp(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method
.method public abstract migrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method
.method public abstract shouldMigrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method

View File

@@ -0,0 +1,204 @@
.class final Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/DataMigrationInitializer$Companion;->getInitializer(Ljava/util/List;)Lkotlin/jvm/functions/Function2;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.DataMigrationInitializer$Companion$getInitializer$1"
f = "DataMigrationInitializer.kt"
l = {
0x21
}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $migrations:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;"
}
.end annotation
.end field
.field synthetic L$0:Ljava/lang/Object;
.field label:I
# direct methods
.method public constructor <init>(Ljava/util/List;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->$migrations:Ljava/util/List;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;
iget-object v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->$migrations:Ljava/util/List;
invoke-direct {v0, v1, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;-><init>(Ljava/util/List;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public final invoke(Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/InitializerApi<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Landroidx/datastore/core/InitializerApi;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->invoke(Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-ne v1, v2, :cond_0
.line 32
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_0
.line 34
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 32
:cond_1
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/core/InitializerApi;
.line 33
sget-object v1, Landroidx/datastore/core/DataMigrationInitializer;->Companion:Landroidx/datastore/core/DataMigrationInitializer$Companion;
iget-object v3, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->$migrations:Ljava/util/List;
iput v2, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;->label:I
invoke-static {v1, v3, p1, p0}, Landroidx/datastore/core/DataMigrationInitializer$Companion;->access$runMigrations(Landroidx/datastore/core/DataMigrationInitializer$Companion;Ljava/util/List;Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_2
return-object v0
.line 34
:cond_2
:goto_0
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method

View File

@@ -0,0 +1,91 @@
.class final Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/DataMigrationInitializer$Companion;->runMigrations(Ljava/util/List;Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lkotlin/coroutines/jvm/internal/ContinuationImpl;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.DataMigrationInitializer$Companion"
f = "DataMigrationInitializer.kt"
l = {
0x2a,
0x39
}
m = "runMigrations"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/DataMigrationInitializer$Companion;
# direct methods
.method public constructor <init>(Landroidx/datastore/core/DataMigrationInitializer$Companion;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/DataMigrationInitializer$Companion;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->this$0:Landroidx/datastore/core/DataMigrationInitializer$Companion;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->this$0:Landroidx/datastore/core/DataMigrationInitializer$Companion;
const/4 v0, 0x0
invoke-static {p1, v0, v0, p0}, Landroidx/datastore/core/DataMigrationInitializer$Companion;->access$runMigrations(Landroidx/datastore/core/DataMigrationInitializer$Companion;Ljava/util/List;Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,182 @@
.class final Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.DataMigrationInitializer$Companion$runMigrations$2$1$1"
f = "DataMigrationInitializer.kt"
l = {
0x2d
}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $migration:Landroidx/datastore/core/DataMigration;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/DataMigration<",
"TT;>;"
}
.end annotation
.end field
.field label:I
# direct methods
.method public constructor <init>(Landroidx/datastore/core/DataMigration;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/DataMigration<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->$migration:Landroidx/datastore/core/DataMigration;
const/4 p1, 0x1
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;
iget-object v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->$migration:Landroidx/datastore/core/DataMigration;
invoke-direct {v0, v1, p1}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;-><init>(Landroidx/datastore/core/DataMigration;Lkotlin/coroutines/Continuation;)V
return-object v0
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->create(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, v0}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-ne v1, v2, :cond_0
.line 45
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->$migration:Landroidx/datastore/core/DataMigration;
iput v2, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;->label:I
invoke-interface {p1, p0}, Landroidx/datastore/core/DataMigration;->cleanUp(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_2
return-object v0
:cond_2
:goto_0
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method

View File

@@ -0,0 +1,351 @@
.class final Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/DataMigrationInitializer$Companion;->runMigrations(Ljava/util/List;Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.DataMigrationInitializer$Companion$runMigrations$2"
f = "DataMigrationInitializer.kt"
l = {
0x2c,
0x2e
}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $cleanUps:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lkotlin/jvm/functions/Function1;",
">;"
}
.end annotation
.end field
.field final synthetic $migrations:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;"
}
.end annotation
.end field
.field synthetic L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field L$2:Ljava/lang/Object;
.field L$3:Ljava/lang/Object;
.field label:I
# direct methods
.method public constructor <init>(Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;",
"Ljava/util/List<",
"Lkotlin/jvm/functions/Function1;",
">;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->$migrations:Ljava/util/List;
iput-object p2, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->$cleanUps:Ljava/util/List;
const/4 p1, 0x2
invoke-direct {p0, p1, p3}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;
iget-object v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->$migrations:Ljava/util/List;
iget-object v2, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->$cleanUps:Ljava/util/List;
invoke-direct {v0, v1, v2, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;-><init>(Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 10
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->label:I
const/4 v2, 0x2
const/4 v3, 0x1
if-eqz v1, :cond_2
if-eq v1, v3, :cond_1
if-ne v1, v2, :cond_0
iget-object v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$1:Ljava/lang/Object;
.line 42
check-cast v1, Ljava/util/Iterator;
iget-object v4, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$0:Ljava/lang/Object;
check-cast v4, Ljava/util/List;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
move-object v7, p0
goto/16 :goto_2
.line 43
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
iget-object v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$3:Ljava/lang/Object;
iget-object v4, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$2:Ljava/lang/Object;
.line 42
check-cast v4, Landroidx/datastore/core/DataMigration;
iget-object v5, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$1:Ljava/lang/Object;
check-cast v5, Ljava/util/Iterator;
iget-object v6, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$0:Ljava/lang/Object;
check-cast v6, Ljava/util/List;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
move-object v7, p0
move-object v9, v6
move-object v6, v4
move-object v4, v9
goto :goto_1
:cond_2
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$0:Ljava/lang/Object;
iget-object v1, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->$migrations:Ljava/util/List;
.line 43
check-cast v1, Ljava/lang/Iterable;
iget-object v4, p0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->$cleanUps:Ljava/util/List;
.line 73
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
move-object v5, p0
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v6
if-eqz v6, :cond_6
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroidx/datastore/core/DataMigration;
iput-object v4, v5, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$0:Ljava/lang/Object;
iput-object v1, v5, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$1:Ljava/lang/Object;
iput-object v6, v5, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$2:Ljava/lang/Object;
iput-object p1, v5, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$3:Ljava/lang/Object;
iput v3, v5, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->label:I
.line 44
invoke-interface {v6, p1, v5}, Landroidx/datastore/core/DataMigration;->shouldMigrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v7
if-ne v7, v0, :cond_3
return-object v0
:cond_3
move-object v9, v1
move-object v1, p1
move-object p1, v7
move-object v7, v5
move-object v5, v9
:goto_1
check-cast p1, Ljava/lang/Boolean;
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
if-eqz p1, :cond_4
.line 45
new-instance p1, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;
const/4 v8, 0x0
invoke-direct {p1, v6, v8}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2$1$1;-><init>(Landroidx/datastore/core/DataMigration;Lkotlin/coroutines/Continuation;)V
invoke-interface {v4, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iput-object v4, v7, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$0:Ljava/lang/Object;
iput-object v5, v7, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$1:Ljava/lang/Object;
iput-object v8, v7, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$2:Ljava/lang/Object;
iput-object v8, v7, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->L$3:Ljava/lang/Object;
iput v2, v7, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;->label:I
.line 46
invoke-interface {v6, v1, v7}, Landroidx/datastore/core/DataMigration;->migrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_5
return-object v0
:goto_2
move-object v5, v7
goto :goto_0
:cond_4
move-object p1, v1
:cond_5
move-object v1, v5
goto :goto_2
:cond_6
return-object p1
.end method

View File

@@ -0,0 +1,299 @@
.class public final Landroidx/datastore/core/DataMigrationInitializer$Companion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/core/DataMigrationInitializer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 23
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Landroidx/datastore/core/DataMigrationInitializer$Companion;-><init>()V
return-void
.end method
.method public static final synthetic access$runMigrations(Landroidx/datastore/core/DataMigrationInitializer$Companion;Ljava/util/List;Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.line 23
invoke-direct {p0, p1, p2, p3}, Landroidx/datastore/core/DataMigrationInitializer$Companion;->runMigrations(Ljava/util/List;Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method private final runMigrations(Ljava/util/List;Landroidx/datastore/core/InitializerApi;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;",
"Landroidx/datastore/core/InitializerApi<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
instance-of v0, p3, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;
if-eqz v0, :cond_0
move-object v0, p3
check-cast v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;
iget v1, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->label:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_0
sub-int/2addr v1, v2
iput v1, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->label:I
goto :goto_0
:cond_0
new-instance v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;
invoke-direct {v0, p0, p3}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;-><init>(Landroidx/datastore/core/DataMigrationInitializer$Companion;Lkotlin/coroutines/Continuation;)V
:goto_0
iget-object p3, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->result:Ljava/lang/Object;
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v1
.line 36
iget v2, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->label:I
const/4 v3, 0x2
const/4 v4, 0x1
if-eqz v2, :cond_3
if-eq v2, v4, :cond_2
if-ne v2, v3, :cond_1
iget-object p1, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->L$1:Ljava/lang/Object;
check-cast p1, Ljava/util/Iterator;
iget-object p2, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->L$0:Ljava/lang/Object;
check-cast p2, Lkotlin/jvm/internal/Ref$ObjectRef;
:try_start_0
invoke-static {p3}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_2
:catchall_0
move-exception p3
goto :goto_3
.line 69
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 36
:cond_2
iget-object p1, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->L$0:Ljava/lang/Object;
check-cast p1, Ljava/util/List;
invoke-static {p3}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_1
:cond_3
invoke-static {p3}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
.line 40
new-instance p3, Ljava/util/ArrayList;
invoke-direct {p3}, Ljava/util/ArrayList;-><init>()V
.line 42
new-instance v2, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;
const/4 v5, 0x0
invoke-direct {v2, p1, p3, v5}, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$2;-><init>(Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)V
iput-object p3, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->L$0:Ljava/lang/Object;
iput v4, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->label:I
invoke-interface {p2, v2, v0}, Landroidx/datastore/core/InitializerApi;->updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v1, :cond_4
return-object v1
:cond_4
move-object p1, p3
.line 53
:goto_1
new-instance p2, Lkotlin/jvm/internal/Ref$ObjectRef;
invoke-direct {p2}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
.line 55
check-cast p1, Ljava/lang/Iterable;
.line 72
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_5
:goto_2
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p3
if-eqz p3, :cond_7
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p3
check-cast p3, Lkotlin/jvm/functions/Function1;
.line 57
:try_start_1
iput-object p2, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->L$0:Ljava/lang/Object;
iput-object p1, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->L$1:Ljava/lang/Object;
iput v3, v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$runMigrations$1;->label:I
invoke-interface {p3, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p3
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-ne p3, v1, :cond_5
return-object v1
.line 59
:goto_3
iget-object v2, p2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
if-nez v2, :cond_6
.line 60
iput-object p3, p2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
goto :goto_2
.line 62
:cond_6
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v2, p2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
check-cast v2, Ljava/lang/Throwable;
invoke-static {v2, p3}, Lkotlin/ExceptionsKt;->addSuppressed(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
goto :goto_2
.line 68
:cond_7
iget-object p1, p2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
check-cast p1, Ljava/lang/Throwable;
if-nez p1, :cond_8
.line 69
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.line 68
:cond_8
throw p1
.end method
# virtual methods
.method public final getInitializer(Ljava/util/List;)Lkotlin/jvm/functions/Function2;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;)",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
const-string v0, "migrations"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 32
new-instance v0, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;
const/4 v1, 0x0
invoke-direct {v0, p1, v1}, Landroidx/datastore/core/DataMigrationInitializer$Companion$getInitializer$1;-><init>(Ljava/util/List;Lkotlin/coroutines/Continuation;)V
return-object v0
.end method

View File

@@ -0,0 +1,49 @@
.class public final Landroidx/datastore/core/DataMigrationInitializer;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/core/DataMigrationInitializer$Companion;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
.field public static final Companion:Landroidx/datastore/core/DataMigrationInitializer$Companion;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/datastore/core/DataMigrationInitializer$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/datastore/core/DataMigrationInitializer$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Landroidx/datastore/core/DataMigrationInitializer;->Companion:Landroidx/datastore/core/DataMigrationInitializer$Companion;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 22
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,37 @@
.class public interface abstract Landroidx/datastore/core/DataStore;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract getData()Lkotlinx/coroutines/flow/Flow;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlinx/coroutines/flow/Flow;"
}
.end annotation
.end method
.method public abstract updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method

View File

@@ -0,0 +1,333 @@
.class public final Landroidx/datastore/core/DataStoreFactory;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final INSTANCE:Landroidx/datastore/core/DataStoreFactory;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/core/DataStoreFactory;
invoke-direct {v0}, Landroidx/datastore/core/DataStoreFactory;-><init>()V
sput-object v0, Landroidx/datastore/core/DataStoreFactory;->INSTANCE:Landroidx/datastore/core/DataStoreFactory;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 29
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic create$default(Landroidx/datastore/core/DataStoreFactory;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
.locals 7
and-int/lit8 p7, p6, 0x2
const/4 v0, 0x0
if-eqz p7, :cond_0
move-object v3, v0
goto :goto_0
:cond_0
move-object v3, p2
:goto_0
and-int/lit8 p2, p6, 0x4
if-eqz p2, :cond_1
.line 60
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
move-result-object p3
:cond_1
move-object v4, p3
and-int/lit8 p2, p6, 0x8
if-eqz p2, :cond_2
.line 61
invoke-static {}, Lkotlinx/coroutines/Dispatchers;->getIO()Lkotlinx/coroutines/CoroutineDispatcher;
move-result-object p2
const/4 p3, 0x1
invoke-static {v0, p3, v0}, Lkotlinx/coroutines/SupervisorKt;->SupervisorJob$default(Lkotlinx/coroutines/Job;ILjava/lang/Object;)Lkotlinx/coroutines/CompletableJob;
move-result-object p3
invoke-virtual {p2, p3}, Lkotlin/coroutines/AbstractCoroutineContextElement;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
move-result-object p2
invoke-static {p2}, Lkotlinx/coroutines/CoroutineScopeKt;->CoroutineScope(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineScope;
move-result-object p4
:cond_2
move-object v5, p4
move-object v1, p0
move-object v2, p1
move-object v6, p5
.line 57
invoke-virtual/range {v1 .. v6}, Landroidx/datastore/core/DataStoreFactory;->create(Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final create(Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/core/Serializer<",
"TT;>;",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"TT;>;",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"TT;>;"
}
.end annotation
.line 0
const-string v0, "serializer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrations"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceFile"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v5, 0x0
const/16 v7, 0x8
const/4 v8, 0x0
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v4, p3
move-object v6, p4
invoke-static/range {v1 .. v8}, Landroidx/datastore/core/DataStoreFactory;->create$default(Landroidx/datastore/core/DataStoreFactory;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method
.method public final create(Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/core/Serializer<",
"TT;>;",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"TT;>;",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"TT;>;>;",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"TT;>;"
}
.end annotation
const-string v0, "serializer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrations"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "scope"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceFile"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p2, :cond_0
.line 67
new-instance p2, Landroidx/datastore/core/handlers/NoOpCorruptionHandler;
invoke-direct {p2}, Landroidx/datastore/core/handlers/NoOpCorruptionHandler;-><init>()V
:cond_0
move-object v4, p2
.line 68
sget-object p2, Landroidx/datastore/core/DataMigrationInitializer;->Companion:Landroidx/datastore/core/DataMigrationInitializer$Companion;
invoke-virtual {p2, p3}, Landroidx/datastore/core/DataMigrationInitializer$Companion;->getInitializer(Ljava/util/List;)Lkotlin/jvm/functions/Function2;
move-result-object p2
invoke-static {p2}, Lkotlin/collections/CollectionsKt;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object v3
.line 64
new-instance p2, Landroidx/datastore/core/SingleProcessDataStore;
move-object v0, p2
move-object v1, p5
move-object v2, p1
move-object v5, p4
invoke-direct/range {v0 .. v5}, Landroidx/datastore/core/SingleProcessDataStore;-><init>(Lkotlin/jvm/functions/Function0;Landroidx/datastore/core/Serializer;Ljava/util/List;Landroidx/datastore/core/CorruptionHandler;Lkotlinx/coroutines/CoroutineScope;)V
return-object p2
.end method
.method public final create(Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/core/Serializer<",
"TT;>;",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"TT;>;",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"TT;>;"
}
.end annotation
.line 0
const-string v0, "serializer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceFile"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v4, 0x0
const/4 v5, 0x0
const/16 v7, 0xc
const/4 v8, 0x0
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v6, p3
invoke-static/range {v1 .. v8}, Landroidx/datastore/core/DataStoreFactory;->create$default(Landroidx/datastore/core/DataStoreFactory;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method
.method public final create(Landroidx/datastore/core/Serializer;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/core/Serializer<",
"TT;>;",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"TT;>;"
}
.end annotation
.line 0
const-string v0, "serializer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceFile"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/16 v7, 0xe
const/4 v8, 0x0
move-object v1, p0
move-object v2, p1
move-object v6, p2
invoke-static/range {v1 .. v8}, Landroidx/datastore/core/DataStoreFactory;->create$default(Landroidx/datastore/core/DataStoreFactory;Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,48 @@
.class final Landroidx/datastore/core/Final;
.super Landroidx/datastore/core/State;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
# instance fields
.field private final finalException:Ljava/lang/Throwable;
# direct methods
.method public constructor <init>(Ljava/lang/Throwable;)V
.locals 1
const-string v0, "finalException"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 71
invoke-direct {p0, v0}, Landroidx/datastore/core/State;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-object p1, p0, Landroidx/datastore/core/Final;->finalException:Ljava/lang/Throwable;
return-void
.end method
# virtual methods
.method public final getFinalException()Ljava/lang/Throwable;
.locals 1
iget-object v0, p0, Landroidx/datastore/core/Final;->finalException:Ljava/lang/Throwable;
return-object v0
.end method

View File

@@ -0,0 +1,28 @@
.class public interface abstract Landroidx/datastore/core/InitializerApi;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method

View File

@@ -0,0 +1,48 @@
.class final Landroidx/datastore/core/ReadException;
.super Landroidx/datastore/core/State;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
# instance fields
.field private final readException:Ljava/lang/Throwable;
# direct methods
.method public constructor <init>(Ljava/lang/Throwable;)V
.locals 1
const-string v0, "readException"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 66
invoke-direct {p0, v0}, Landroidx/datastore/core/State;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-object p1, p0, Landroidx/datastore/core/ReadException;->readException:Ljava/lang/Throwable;
return-void
.end method
# virtual methods
.method public final getReadException()Ljava/lang/Throwable;
.locals 1
iget-object v0, p0, Landroidx/datastore/core/ReadException;->readException:Ljava/lang/Throwable;
return-object v0
.end method

View File

@@ -0,0 +1,48 @@
.class public interface abstract Landroidx/datastore/core/Serializer;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract getDefaultValue()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.end method
.method public abstract readFrom(Ljava/io/InputStream;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/InputStream;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method
.method public abstract writeTo(Ljava/lang/Object;Ljava/io/OutputStream;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Ljava/io/OutputStream;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.end method

View File

@@ -0,0 +1,148 @@
.class final Landroidx/datastore/core/SimpleActor$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SimpleActor;-><init>(Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
# instance fields
.field final synthetic $onComplete:Lkotlin/jvm/functions/Function1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
.end field
.field final synthetic $onUndeliveredElement:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.end field
.field final synthetic this$0:Landroidx/datastore/core/SimpleActor;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SimpleActor<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkotlin/jvm/functions/Function1;Landroidx/datastore/core/SimpleActor;Lkotlin/jvm/functions/Function2;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function1;",
"Landroidx/datastore/core/SimpleActor<",
"TT;>;",
"Lkotlin/jvm/functions/Function2;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SimpleActor$1;->$onComplete:Lkotlin/jvm/functions/Function1;
iput-object p2, p0, Landroidx/datastore/core/SimpleActor$1;->this$0:Landroidx/datastore/core/SimpleActor;
iput-object p3, p0, Landroidx/datastore/core/SimpleActor$1;->$onUndeliveredElement:Lkotlin/jvm/functions/Function2;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 61
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Landroidx/datastore/core/SimpleActor$1;->invoke(Ljava/lang/Throwable;)V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Ljava/lang/Throwable;)V
.locals 2
iget-object v0, p0, Landroidx/datastore/core/SimpleActor$1;->$onComplete:Lkotlin/jvm/functions/Function1;
.line 62
invoke-interface {v0, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Landroidx/datastore/core/SimpleActor$1;->this$0:Landroidx/datastore/core/SimpleActor;
.line 67
invoke-static {v0}, Landroidx/datastore/core/SimpleActor;->access$getMessageQueue$p(Landroidx/datastore/core/SimpleActor;)Lkotlinx/coroutines/channels/Channel;
move-result-object v0
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/SendChannel;->close(Ljava/lang/Throwable;)Z
:cond_0
iget-object v0, p0, Landroidx/datastore/core/SimpleActor$1;->this$0:Landroidx/datastore/core/SimpleActor;
.line 70
invoke-static {v0}, Landroidx/datastore/core/SimpleActor;->access$getMessageQueue$p(Landroidx/datastore/core/SimpleActor;)Lkotlinx/coroutines/channels/Channel;
move-result-object v0
invoke-interface {v0}, Lkotlinx/coroutines/channels/ReceiveChannel;->tryReceive-PtdJZtk()Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Lkotlinx/coroutines/channels/ChannelResult;->getOrNull-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_1
const/4 v0, 0x0
goto :goto_0
:cond_1
iget-object v1, p0, Landroidx/datastore/core/SimpleActor$1;->$onUndeliveredElement:Lkotlin/jvm/functions/Function2;
.line 71
invoke-interface {v1, v0, p1}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 70
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:goto_0
if-nez v0, :cond_0
return-void
.end method

View File

@@ -0,0 +1,318 @@
.class final Landroidx/datastore/core/SimpleActor$offer$2;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SimpleActor;->offer(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SimpleActor$offer$2"
f = "SimpleActor.kt"
l = {
0x7a,
0x7a
}
m = "invokeSuspend"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field label:I
.field final synthetic this$0:Landroidx/datastore/core/SimpleActor;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SimpleActor<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SimpleActor;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SimpleActor<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SimpleActor$offer$2;->this$0:Landroidx/datastore/core/SimpleActor;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance p1, Landroidx/datastore/core/SimpleActor$offer$2;
iget-object v0, p0, Landroidx/datastore/core/SimpleActor$offer$2;->this$0:Landroidx/datastore/core/SimpleActor;
invoke-direct {p1, v0, p2}, Landroidx/datastore/core/SimpleActor$offer$2;-><init>(Landroidx/datastore/core/SimpleActor;Lkotlin/coroutines/Continuation;)V
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SimpleActor$offer$2;->invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SimpleActor$offer$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/SimpleActor$offer$2;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/core/SimpleActor$offer$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 7
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/core/SimpleActor$offer$2;->label:I
const/4 v2, 0x2
const/4 v3, 0x1
if-eqz v1, :cond_2
if-eq v1, v3, :cond_1
if-ne v1, v2, :cond_0
.line 112
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
move-object p1, p0
goto :goto_2
.line 124
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
iget-object v1, p0, Landroidx/datastore/core/SimpleActor$offer$2;->L$0:Ljava/lang/Object;
.line 112
check-cast v1, Lkotlin/jvm/functions/Function2;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
move-object v4, v1
move-object v1, v0
move-object v0, p0
goto :goto_1
:cond_2
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/SimpleActor$offer$2;->this$0:Landroidx/datastore/core/SimpleActor;
.line 114
invoke-static {p1}, Landroidx/datastore/core/SimpleActor;->access$getRemainingMessages$p(Landroidx/datastore/core/SimpleActor;)Ljava/util/concurrent/atomic/AtomicInteger;
move-result-object p1
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
move-result p1
if-lez p1, :cond_3
move p1, v3
goto :goto_0
:cond_3
const/4 p1, 0x0
:goto_0
if-eqz p1, :cond_7
move-object p1, p0
:cond_4
iget-object v1, p1, Landroidx/datastore/core/SimpleActor$offer$2;->this$0:Landroidx/datastore/core/SimpleActor;
.line 120
invoke-static {v1}, Landroidx/datastore/core/SimpleActor;->access$getScope$p(Landroidx/datastore/core/SimpleActor;)Lkotlinx/coroutines/CoroutineScope;
move-result-object v1
invoke-static {v1}, Lkotlinx/coroutines/CoroutineScopeKt;->ensureActive(Lkotlinx/coroutines/CoroutineScope;)V
iget-object v1, p1, Landroidx/datastore/core/SimpleActor$offer$2;->this$0:Landroidx/datastore/core/SimpleActor;
.line 122
invoke-static {v1}, Landroidx/datastore/core/SimpleActor;->access$getConsumeMessage$p(Landroidx/datastore/core/SimpleActor;)Lkotlin/jvm/functions/Function2;
move-result-object v1
iget-object v4, p1, Landroidx/datastore/core/SimpleActor$offer$2;->this$0:Landroidx/datastore/core/SimpleActor;
invoke-static {v4}, Landroidx/datastore/core/SimpleActor;->access$getMessageQueue$p(Landroidx/datastore/core/SimpleActor;)Lkotlinx/coroutines/channels/Channel;
move-result-object v4
iput-object v1, p1, Landroidx/datastore/core/SimpleActor$offer$2;->L$0:Ljava/lang/Object;
iput v3, p1, Landroidx/datastore/core/SimpleActor$offer$2;->label:I
invoke-interface {v4, p1}, Lkotlinx/coroutines/channels/ReceiveChannel;->receive(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v4
if-ne v4, v0, :cond_5
return-object v0
:cond_5
move-object v6, v0
move-object v0, p1
move-object p1, v4
move-object v4, v1
move-object v1, v6
:goto_1
const/4 v5, 0x0
iput-object v5, v0, Landroidx/datastore/core/SimpleActor$offer$2;->L$0:Ljava/lang/Object;
iput v2, v0, Landroidx/datastore/core/SimpleActor$offer$2;->label:I
invoke-interface {v4, p1, v0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v1, :cond_6
return-object v1
:cond_6
move-object p1, v0
move-object v0, v1
:goto_2
iget-object v1, p1, Landroidx/datastore/core/SimpleActor$offer$2;->this$0:Landroidx/datastore/core/SimpleActor;
.line 123
invoke-static {v1}, Landroidx/datastore/core/SimpleActor;->access$getRemainingMessages$p(Landroidx/datastore/core/SimpleActor;)Ljava/util/concurrent/atomic/AtomicInteger;
move-result-object v1
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
move-result v1
if-nez v1, :cond_4
.line 124
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.line 114
:cond_7
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Check failed."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,252 @@
.class public final Landroidx/datastore/core/SimpleActor;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private final consumeMessage:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.end field
.field private final messageQueue:Lkotlinx/coroutines/channels/Channel;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlinx/coroutines/channels/Channel;"
}
.end annotation
.end field
.field private final remainingMessages:Ljava/util/concurrent/atomic/AtomicInteger;
.field private final scope:Lkotlinx/coroutines/CoroutineScope;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/jvm/functions/Function1;",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/jvm/functions/Function2;",
")V"
}
.end annotation
const-string v0, "scope"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "onComplete"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "onUndeliveredElement"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "consumeMessage"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 29
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/core/SimpleActor;->scope:Lkotlinx/coroutines/CoroutineScope;
iput-object p4, p0, Landroidx/datastore/core/SimpleActor;->consumeMessage:Lkotlin/jvm/functions/Function2;
const/4 p4, 0x0
const/4 v0, 0x6
const v1, 0x7fffffff
.line 50
invoke-static {v1, p4, p4, v0, p4}, Lkotlinx/coroutines/channels/ChannelKt;->Channel$default(ILkotlinx/coroutines/channels/BufferOverflow;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/coroutines/channels/Channel;
move-result-object p4
iput-object p4, p0, Landroidx/datastore/core/SimpleActor;->messageQueue:Lkotlinx/coroutines/channels/Channel;
.line 56
new-instance p4, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 v0, 0x0
invoke-direct {p4, v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
iput-object p4, p0, Landroidx/datastore/core/SimpleActor;->remainingMessages:Ljava/util/concurrent/atomic/AtomicInteger;
.line 61
invoke-interface {p1}, Lkotlinx/coroutines/CoroutineScope;->getCoroutineContext()Lkotlin/coroutines/CoroutineContext;
move-result-object p1
sget-object p4, Lkotlinx/coroutines/Job;->Key:Lkotlinx/coroutines/Job$Key;
invoke-interface {p1, p4}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
move-result-object p1
check-cast p1, Lkotlinx/coroutines/Job;
if-nez p1, :cond_0
goto :goto_0
:cond_0
new-instance p4, Landroidx/datastore/core/SimpleActor$1;
invoke-direct {p4, p2, p0, p3}, Landroidx/datastore/core/SimpleActor$1;-><init>(Lkotlin/jvm/functions/Function1;Landroidx/datastore/core/SimpleActor;Lkotlin/jvm/functions/Function2;)V
invoke-interface {p1, p4}, Lkotlinx/coroutines/Job;->invokeOnCompletion(Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/DisposableHandle;
:goto_0
return-void
.end method
.method public static final synthetic access$getConsumeMessage$p(Landroidx/datastore/core/SimpleActor;)Lkotlin/jvm/functions/Function2;
.locals 0
.line 29
iget-object p0, p0, Landroidx/datastore/core/SimpleActor;->consumeMessage:Lkotlin/jvm/functions/Function2;
return-object p0
.end method
.method public static final synthetic access$getMessageQueue$p(Landroidx/datastore/core/SimpleActor;)Lkotlinx/coroutines/channels/Channel;
.locals 0
.line 29
iget-object p0, p0, Landroidx/datastore/core/SimpleActor;->messageQueue:Lkotlinx/coroutines/channels/Channel;
return-object p0
.end method
.method public static final synthetic access$getRemainingMessages$p(Landroidx/datastore/core/SimpleActor;)Ljava/util/concurrent/atomic/AtomicInteger;
.locals 0
.line 29
iget-object p0, p0, Landroidx/datastore/core/SimpleActor;->remainingMessages:Ljava/util/concurrent/atomic/AtomicInteger;
return-object p0
.end method
.method public static final synthetic access$getScope$p(Landroidx/datastore/core/SimpleActor;)Lkotlinx/coroutines/CoroutineScope;
.locals 0
.line 29
iget-object p0, p0, Landroidx/datastore/core/SimpleActor;->scope:Lkotlinx/coroutines/CoroutineScope;
return-object p0
.end method
# virtual methods
.method public final offer(Ljava/lang/Object;)V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/core/SimpleActor;->messageQueue:Lkotlinx/coroutines/channels/Channel;
.line 104
invoke-interface {v0, p1}, Lkotlinx/coroutines/channels/SendChannel;->trySend-JP2dKIU(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
.line 132
instance-of v0, p1, Lkotlinx/coroutines/channels/ChannelResult$Closed;
if-eqz v0, :cond_1
invoke-static {p1}, Lkotlinx/coroutines/channels/ChannelResult;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object p1
if-nez p1, :cond_0
.line 105
new-instance p1, Lkotlinx/coroutines/channels/ClosedSendChannelException;
const-string v0, "Channel was closed normally"
invoke-direct {p1, v0}, Lkotlinx/coroutines/channels/ClosedSendChannelException;-><init>(Ljava/lang/String;)V
:cond_0
throw p1
.line 106
:cond_1
invoke-static {p1}, Lkotlinx/coroutines/channels/ChannelResult;->isSuccess-impl(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_3
iget-object p1, p0, Landroidx/datastore/core/SimpleActor;->remainingMessages:Ljava/util/concurrent/atomic/AtomicInteger;
.line 111
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result p1
if-nez p1, :cond_2
iget-object v0, p0, Landroidx/datastore/core/SimpleActor;->scope:Lkotlinx/coroutines/CoroutineScope;
const/4 v1, 0x0
const/4 v2, 0x0
.line 112
new-instance v3, Landroidx/datastore/core/SimpleActor$offer$2;
const/4 p1, 0x0
invoke-direct {v3, p0, p1}, Landroidx/datastore/core/SimpleActor$offer$2;-><init>(Landroidx/datastore/core/SimpleActor;Lkotlin/coroutines/Continuation;)V
const/4 v4, 0x3
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
:cond_2
return-void
.line 103
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Check failed."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,66 @@
.class public final Landroidx/datastore/core/SingleProcessDataStore$Companion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/core/SingleProcessDataStore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 484
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Landroidx/datastore/core/SingleProcessDataStore$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final getActiveFiles$datastore_core()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 492
invoke-static {}, Landroidx/datastore/core/SingleProcessDataStore;->access$getActiveFiles$cp()Ljava/util/Set;
move-result-object v0
return-object v0
.end method
.method public final getActiveFilesLock$datastore_core()Ljava/lang/Object;
.locals 1
.line 494
invoke-static {}, Landroidx/datastore/core/SingleProcessDataStore;->access$getActiveFilesLock$cp()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,74 @@
.class public final Landroidx/datastore/core/SingleProcessDataStore$Message$Read;
.super Landroidx/datastore/core/SingleProcessDataStore$Message;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/core/SingleProcessDataStore$Message;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Read"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Landroidx/datastore/core/SingleProcessDataStore$Message<",
"TT;>;"
}
.end annotation
# instance fields
.field private final lastState:Landroidx/datastore/core/State;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/State;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/State<",
"TT;>;)V"
}
.end annotation
const/4 v0, 0x0
.line 197
invoke-direct {p0, v0}, Landroidx/datastore/core/SingleProcessDataStore$Message;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Read;->lastState:Landroidx/datastore/core/State;
return-void
.end method
# virtual methods
.method public getLastState()Landroidx/datastore/core/State;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Read;->lastState:Landroidx/datastore/core/State;
return-object v0
.end method

View File

@@ -0,0 +1,150 @@
.class public final Landroidx/datastore/core/SingleProcessDataStore$Message$Update;
.super Landroidx/datastore/core/SingleProcessDataStore$Message;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/core/SingleProcessDataStore$Message;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Update"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Landroidx/datastore/core/SingleProcessDataStore$Message<",
"TT;>;"
}
.end annotation
# instance fields
.field private final ack:Lkotlinx/coroutines/CompletableDeferred;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlinx/coroutines/CompletableDeferred;"
}
.end annotation
.end field
.field private final callerContext:Lkotlin/coroutines/CoroutineContext;
.field private final lastState:Landroidx/datastore/core/State;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
.end field
.field private final transform:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkotlin/jvm/functions/Function2;Lkotlinx/coroutines/CompletableDeferred;Landroidx/datastore/core/State;Lkotlin/coroutines/CoroutineContext;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"Lkotlinx/coroutines/CompletableDeferred;",
"Landroidx/datastore/core/State<",
"TT;>;",
"Lkotlin/coroutines/CoroutineContext;",
")V"
}
.end annotation
const-string v0, "transform"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "ack"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "callerContext"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 208
invoke-direct {p0, v0}, Landroidx/datastore/core/SingleProcessDataStore$Message;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->transform:Lkotlin/jvm/functions/Function2;
iput-object p2, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->ack:Lkotlinx/coroutines/CompletableDeferred;
iput-object p3, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->lastState:Landroidx/datastore/core/State;
iput-object p4, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->callerContext:Lkotlin/coroutines/CoroutineContext;
return-void
.end method
# virtual methods
.method public final getAck()Lkotlinx/coroutines/CompletableDeferred;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlinx/coroutines/CompletableDeferred;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->ack:Lkotlinx/coroutines/CompletableDeferred;
return-object v0
.end method
.method public final getCallerContext()Lkotlin/coroutines/CoroutineContext;
.locals 1
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->callerContext:Lkotlin/coroutines/CoroutineContext;
return-object v0
.end method
.method public getLastState()Landroidx/datastore/core/State;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->lastState:Landroidx/datastore/core/State;
return-object v0
.end method
.method public final getTransform()Lkotlin/jvm/functions/Function2;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->transform:Lkotlin/jvm/functions/Function2;
return-object v0
.end method

View File

@@ -0,0 +1,62 @@
.class abstract Landroidx/datastore/core/SingleProcessDataStore$Message;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/core/SingleProcessDataStore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "Message"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/core/SingleProcessDataStore$Message$Read;,
Landroidx/datastore/core/SingleProcessDataStore$Message$Update;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 188
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Landroidx/datastore/core/SingleProcessDataStore$Message;-><init>()V
return-void
.end method
# virtual methods
.method public abstract getLastState()Landroidx/datastore/core/State;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
.end method

View File

@@ -0,0 +1,103 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$UncloseableOutputStream;
.super Ljava/io/OutputStream;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/core/SingleProcessDataStore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "UncloseableOutputStream"
.end annotation
# instance fields
.field private final fileOutputStream:Ljava/io/FileOutputStream;
# direct methods
.method public constructor <init>(Ljava/io/FileOutputStream;)V
.locals 1
const-string v0, "fileOutputStream"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 460
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$UncloseableOutputStream;->fileOutputStream:Ljava/io/FileOutputStream;
return-void
.end method
# virtual methods
.method public close()V
.locals 0
return-void
.end method
.method public flush()V
.locals 1
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$UncloseableOutputStream;->fileOutputStream:Ljava/io/FileOutputStream;
.line 480
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
return-void
.end method
.method public final getFileOutputStream()Ljava/io/FileOutputStream;
.locals 1
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$UncloseableOutputStream;->fileOutputStream:Ljava/io/FileOutputStream;
return-object v0
.end method
.method public write(I)V
.locals 1
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$UncloseableOutputStream;->fileOutputStream:Ljava/io/FileOutputStream;
.line 463
invoke-virtual {v0, p1}, Ljava/io/FileOutputStream;->write(I)V
return-void
.end method
.method public write([B)V
.locals 1
const-string v0, "b"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$UncloseableOutputStream;->fileOutputStream:Ljava/io/FileOutputStream;
.line 467
invoke-virtual {v0, p1}, Ljava/io/FileOutputStream;->write([B)V
return-void
.end method
.method public write([BII)V
.locals 1
const-string v0, "bytes"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$UncloseableOutputStream;->fileOutputStream:Ljava/io/FileOutputStream;
.line 471
invoke-virtual {v0, p1, p2, p3}, Ljava/io/FileOutputStream;->write([BII)V
return-void
.end method

View File

@@ -0,0 +1,138 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$actor$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;-><init>(Lkotlin/jvm/functions/Function0;Landroidx/datastore/core/Serializer;Ljava/util/List;Landroidx/datastore/core/CorruptionHandler;Lkotlinx/coroutines/CoroutineScope;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
# instance fields
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;)V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
const/4 p1, 0x1
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 213
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Landroidx/datastore/core/SingleProcessDataStore$actor$1;->invoke(Ljava/lang/Throwable;)V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Ljava/lang/Throwable;)V
.locals 2
if-nez p1, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 215
invoke-static {v0}, Landroidx/datastore/core/SingleProcessDataStore;->access$getDownstreamFlow$p(Landroidx/datastore/core/SingleProcessDataStore;)Lkotlinx/coroutines/flow/MutableStateFlow;
move-result-object v0
new-instance v1, Landroidx/datastore/core/Final;
invoke-direct {v1, p1}, Landroidx/datastore/core/Final;-><init>(Ljava/lang/Throwable;)V
invoke-interface {v0, v1}, Lkotlinx/coroutines/flow/MutableStateFlow;->setValue(Ljava/lang/Object;)V
.line 220
:goto_0
sget-object p1, Landroidx/datastore/core/SingleProcessDataStore;->Companion:Landroidx/datastore/core/SingleProcessDataStore$Companion;
invoke-virtual {p1}, Landroidx/datastore/core/SingleProcessDataStore$Companion;->getActiveFilesLock$datastore_core()Ljava/lang/Object;
move-result-object v0
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
monitor-enter v0
.line 221
:try_start_0
invoke-virtual {p1}, Landroidx/datastore/core/SingleProcessDataStore$Companion;->getActiveFiles$datastore_core()Ljava/util/Set;
move-result-object p1
invoke-static {v1}, Landroidx/datastore/core/SingleProcessDataStore;->access$getFile(Landroidx/datastore/core/SingleProcessDataStore;)Ljava/io/File;
move-result-object v1
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
invoke-interface {p1, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
.line 222
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 220
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
throw p1
.end method

View File

@@ -0,0 +1,114 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$actor$2;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;-><init>(Lkotlin/jvm/functions/Function0;Landroidx/datastore/core/Serializer;Ljava/util/List;Landroidx/datastore/core/CorruptionHandler;Lkotlinx/coroutines/CoroutineScope;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
# static fields
.field public static final INSTANCE:Landroidx/datastore/core/SingleProcessDataStore$actor$2;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/core/SingleProcessDataStore$actor$2;
invoke-direct {v0}, Landroidx/datastore/core/SingleProcessDataStore$actor$2;-><init>()V
sput-object v0, Landroidx/datastore/core/SingleProcessDataStore$actor$2;->INSTANCE:Landroidx/datastore/core/SingleProcessDataStore$actor$2;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x2
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 224
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$Message;
check-cast p2, Ljava/lang/Throwable;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$actor$2;->invoke(Landroidx/datastore/core/SingleProcessDataStore$Message;Ljava/lang/Throwable;)V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method
.method public final invoke(Landroidx/datastore/core/SingleProcessDataStore$Message;Ljava/lang/Throwable;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore$Message<",
"TT;>;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
const-string v0, "msg"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 225
instance-of v0, p1, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;
if-eqz v0, :cond_1
.line 229
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;
invoke-virtual {p1}, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;->getAck()Lkotlinx/coroutines/CompletableDeferred;
move-result-object p1
if-nez p2, :cond_0
.line 230
new-instance p2, Ljava/util/concurrent/CancellationException;
const-string v0, "DataStore scope was cancelled before updateData could complete"
invoke-direct {p2, v0}, Ljava/util/concurrent/CancellationException;-><init>(Ljava/lang/String;)V
.line 229
:cond_0
invoke-interface {p1, p2}, Lkotlinx/coroutines/CompletableDeferred;->completeExceptionally(Ljava/lang/Throwable;)Z
:cond_1
return-void
.end method

View File

@@ -0,0 +1,235 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$actor$3;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;-><init>(Lkotlin/jvm/functions/Function0;Landroidx/datastore/core/Serializer;Ljava/util/List;Landroidx/datastore/core/CorruptionHandler;Lkotlinx/coroutines/CoroutineScope;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore$actor$3"
f = "SingleProcessDataStore.kt"
l = {
0xef,
0xf2
}
m = "invokeSuspend"
.end annotation
# instance fields
.field synthetic L$0:Ljava/lang/Object;
.field label:I
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {v0, v1, p2}, Landroidx/datastore/core/SingleProcessDataStore$actor$3;-><init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public final invoke(Landroidx/datastore/core/SingleProcessDataStore$Message;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore$Message<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$actor$3;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$Message;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->invoke(Landroidx/datastore/core/SingleProcessDataStore$Message;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->label:I
const/4 v2, 0x2
const/4 v3, 0x1
if-eqz v1, :cond_2
if-eq v1, v3, :cond_1
if-ne v1, v2, :cond_0
goto :goto_0
.line 245
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 236
:cond_1
:goto_0
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_1
:cond_2
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$Message;
.line 238
instance-of v1, p1, Landroidx/datastore/core/SingleProcessDataStore$Message$Read;
if-eqz v1, :cond_3
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 239
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$Message$Read;
iput v3, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->label:I
invoke-static {v1, p1, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$handleRead(Landroidx/datastore/core/SingleProcessDataStore;Landroidx/datastore/core/SingleProcessDataStore$Message$Read;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_4
return-object v0
.line 241
:cond_3
instance-of v1, p1, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;
if-eqz v1, :cond_4
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 242
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$Message$Update;
iput v2, p0, Landroidx/datastore/core/SingleProcessDataStore$actor$3;->label:I
invoke-static {v1, p1, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$handleUpdate(Landroidx/datastore/core/SingleProcessDataStore;Landroidx/datastore/core/SingleProcessDataStore$Message$Update;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_4
return-object v0
.line 245
:cond_4
:goto_1
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method

View File

@@ -0,0 +1,195 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$data$1$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore$data$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore$data$1$1"
f = "SingleProcessDataStore.kt"
l = {}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $currentDownStreamFlowState:Landroidx/datastore/core/State;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/State<",
"TT;>;"
}
.end annotation
.end field
.field synthetic L$0:Ljava/lang/Object;
.field label:I
# direct methods
.method public constructor <init>(Landroidx/datastore/core/State;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/State<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->$currentDownStreamFlowState:Landroidx/datastore/core/State;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->$currentDownStreamFlowState:Landroidx/datastore/core/State;
invoke-direct {v0, v1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;-><init>(Landroidx/datastore/core/State;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public final invoke(Landroidx/datastore/core/State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/State<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Landroidx/datastore/core/State;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->invoke(Landroidx/datastore/core/State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
iget v0, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->label:I
if-nez v0, :cond_2
.line 118
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/core/State;
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;->$currentDownStreamFlowState:Landroidx/datastore/core/State;
.line 119
instance-of v1, v0, Landroidx/datastore/core/Data;
const/4 v2, 0x0
if-nez v1, :cond_1
.line 120
instance-of v1, v0, Landroidx/datastore/core/Final;
if-eqz v1, :cond_0
goto :goto_0
:cond_0
if-ne p1, v0, :cond_1
const/4 v2, 0x1
.line 128
:cond_1
:goto_0
invoke-static {v2}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.line 119
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,71 @@
.class public final Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;->emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2"
f = "SingleProcessDataStore.kt"
l = {
0x89
}
m = "emit"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;Lkotlin/coroutines/Continuation;)V
.locals 0
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;
const/4 v0, 0x0
invoke-virtual {p1, v0, p0}, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;->emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,195 @@
.class public final Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/flow/FlowCollector;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1;->collect(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lkotlinx/coroutines/flow/FlowCollector;"
}
.end annotation
# instance fields
.field final synthetic $this_unsafeFlow$inlined:Lkotlinx/coroutines/flow/FlowCollector;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/flow/FlowCollector;)V
.locals 0
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;->$this_unsafeFlow$inlined:Lkotlinx/coroutines/flow/FlowCollector;
.line 72
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 4
instance-of v0, p2, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;
if-eqz v0, :cond_0
move-object v0, p2
check-cast v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;
iget v1, v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->label:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_0
sub-int/2addr v1, v2
iput v1, v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->label:I
goto :goto_0
:cond_0
new-instance v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;
invoke-direct {v0, p0, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;-><init>(Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;Lkotlin/coroutines/Continuation;)V
:goto_0
iget-object p2, v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->result:Ljava/lang/Object;
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v1
iget v2, v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->label:I
const/4 v3, 0x1
if-eqz v2, :cond_2
if-ne v2, v3, :cond_1
.line 137
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 0
:cond_2
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p2, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;->$this_unsafeFlow$inlined:Lkotlinx/coroutines/flow/FlowCollector;
.line 48
check-cast p1, Landroidx/datastore/core/State;
.line 138
instance-of v2, p1, Landroidx/datastore/core/ReadException;
if-nez v2, :cond_7
.line 139
instance-of v2, p1, Landroidx/datastore/core/Final;
if-nez v2, :cond_6
.line 140
instance-of v2, p1, Landroidx/datastore/core/Data;
if-eqz v2, :cond_4
check-cast p1, Landroidx/datastore/core/Data;
invoke-virtual {p1}, Landroidx/datastore/core/Data;->getValue()Ljava/lang/Object;
move-result-object p1
.line 137
iput v3, v0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2$1;->label:I
invoke-interface {p2, p1, v0}, Lkotlinx/coroutines/flow/FlowCollector;->emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v1, :cond_3
return-object v1
:cond_3
:goto_1
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.line 141
:cond_4
instance-of p1, p1, Landroidx/datastore/core/UnInitialized;
if-eqz p1, :cond_5
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "This is a bug in DataStore. Please file a bug at: https://issuetracker.google.com/issues/new?component=907884&template=1466542"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
new-instance p1, Lkotlin/NoWhenBranchMatchedException;
invoke-direct {p1}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
throw p1
.line 139
:cond_6
check-cast p1, Landroidx/datastore/core/Final;
invoke-virtual {p1}, Landroidx/datastore/core/Final;->getFinalException()Ljava/lang/Throwable;
move-result-object p1
throw p1
.line 138
:cond_7
check-cast p1, Landroidx/datastore/core/ReadException;
invoke-virtual {p1}, Landroidx/datastore/core/ReadException;->getReadException()Ljava/lang/Throwable;
move-result-object p1
throw p1
.end method

View File

@@ -0,0 +1,72 @@
.class public final Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlinx/coroutines/flow/Flow;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore$data$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lkotlinx/coroutines/flow/Flow;"
}
.end annotation
# instance fields
.field final synthetic $this_unsafeTransform$inlined:Lkotlinx/coroutines/flow/Flow;
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/flow/Flow;)V
.locals 0
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1;->$this_unsafeTransform$inlined:Lkotlinx/coroutines/flow/Flow;
.line 106
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public collect(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1;->$this_unsafeTransform$inlined:Lkotlinx/coroutines/flow/Flow;
.line 114
new-instance v1, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;
invoke-direct {v1, p1}, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1$2;-><init>(Lkotlinx/coroutines/flow/FlowCollector;)V
invoke-interface {v0, v1, p2}, Lkotlinx/coroutines/flow/Flow;->collect(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object p2
if-ne p1, p2, :cond_0
return-object p1
.line 55
:cond_0
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method

View File

@@ -0,0 +1,250 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$data$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;-><init>(Lkotlin/jvm/functions/Function0;Landroidx/datastore/core/Serializer;Ljava/util/List;Landroidx/datastore/core/CorruptionHandler;Lkotlinx/coroutines/CoroutineScope;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore$data$1"
f = "SingleProcessDataStore.kt"
l = {
0x75
}
m = "invokeSuspend"
.end annotation
# instance fields
.field private synthetic L$0:Ljava/lang/Object;
.field label:I
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/core/SingleProcessDataStore$data$1;
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {v0, v1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1;-><init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Lkotlinx/coroutines/flow/FlowCollector;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1;->invoke(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlinx/coroutines/flow/FlowCollector;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$data$1;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$data$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 6
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-ne v1, v2, :cond_0
.line 91
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_0
.line 143
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 91
:cond_1
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->L$0:Ljava/lang/Object;
check-cast p1, Lkotlinx/coroutines/flow/FlowCollector;
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 110
invoke-static {v1}, Landroidx/datastore/core/SingleProcessDataStore;->access$getDownstreamFlow$p(Landroidx/datastore/core/SingleProcessDataStore;)Lkotlinx/coroutines/flow/MutableStateFlow;
move-result-object v1
invoke-interface {v1}, Lkotlinx/coroutines/flow/MutableStateFlow;->getValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/datastore/core/State;
.line 112
instance-of v3, v1, Landroidx/datastore/core/Data;
if-nez v3, :cond_2
iget-object v3, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 114
invoke-static {v3}, Landroidx/datastore/core/SingleProcessDataStore;->access$getActor$p(Landroidx/datastore/core/SingleProcessDataStore;)Landroidx/datastore/core/SimpleActor;
move-result-object v3
new-instance v4, Landroidx/datastore/core/SingleProcessDataStore$Message$Read;
invoke-direct {v4, v1}, Landroidx/datastore/core/SingleProcessDataStore$Message$Read;-><init>(Landroidx/datastore/core/State;)V
invoke-virtual {v3, v4}, Landroidx/datastore/core/SimpleActor;->offer(Ljava/lang/Object;)V
:cond_2
iget-object v3, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 118
invoke-static {v3}, Landroidx/datastore/core/SingleProcessDataStore;->access$getDownstreamFlow$p(Landroidx/datastore/core/SingleProcessDataStore;)Lkotlinx/coroutines/flow/MutableStateFlow;
move-result-object v3
new-instance v4, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;
const/4 v5, 0x0
invoke-direct {v4, v1, v5}, Landroidx/datastore/core/SingleProcessDataStore$data$1$1;-><init>(Landroidx/datastore/core/State;Lkotlin/coroutines/Continuation;)V
invoke-static {v3, v4}, Lkotlinx/coroutines/flow/FlowKt;->dropWhile(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
move-result-object v1
.line 500
new-instance v3, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1;
invoke-direct {v3, v1}, Landroidx/datastore/core/SingleProcessDataStore$data$1$invokeSuspend$$inlined$map$1;-><init>(Lkotlinx/coroutines/flow/Flow;)V
iput v2, p0, Landroidx/datastore/core/SingleProcessDataStore$data$1;->label:I
.line 117
invoke-static {p1, v3, p0}, Lkotlinx/coroutines/flow/FlowKt;->emitAll(Lkotlinx/coroutines/flow/FlowCollector;Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_3
return-object v0
.line 143
:cond_3
:goto_0
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method

View File

@@ -0,0 +1,177 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$file$2;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;-><init>(Lkotlin/jvm/functions/Function0;Landroidx/datastore/core/Serializer;Ljava/util/List;Landroidx/datastore/core/CorruptionHandler;Lkotlinx/coroutines/CoroutineScope;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function0;"
}
.end annotation
# instance fields
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;)V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$file$2;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public final invoke()Ljava/io/File;
.locals 5
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$file$2;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 164
invoke-static {v0}, Landroidx/datastore/core/SingleProcessDataStore;->access$getProduceFile$p(Landroidx/datastore/core/SingleProcessDataStore;)Lkotlin/jvm/functions/Function0;
move-result-object v0
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/io/File;
.line 166
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
.line 167
sget-object v2, Landroidx/datastore/core/SingleProcessDataStore;->Companion:Landroidx/datastore/core/SingleProcessDataStore$Companion;
invoke-virtual {v2}, Landroidx/datastore/core/SingleProcessDataStore$Companion;->getActiveFilesLock$datastore_core()Ljava/lang/Object;
move-result-object v3
monitor-enter v3
.line 168
:try_start_0
invoke-virtual {v2}, Landroidx/datastore/core/SingleProcessDataStore$Companion;->getActiveFiles$datastore_core()Ljava/util/Set;
move-result-object v4
invoke-interface {v4, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v4
xor-int/lit8 v4, v4, 0x1
if-eqz v4, :cond_0
.line 174
invoke-virtual {v2}, Landroidx/datastore/core/SingleProcessDataStore$Companion;->getActiveFiles$datastore_core()Ljava/util/Set;
move-result-object v2
const-string v4, "it"
invoke-static {v1, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v2, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 167
monitor-exit v3
return-object v0
:catchall_0
move-exception v0
goto :goto_0
.line 169
:cond_0
:try_start_1
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "There are multiple DataStores active for the same file: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, ". You should either maintain your DataStore as a singleton or confirm that there is no two DataStore\'s active on the same file (by confirming that the scope is cancelled)."
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 168
new-instance v1, Ljava/lang/IllegalStateException;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 167
:goto_0
monitor-exit v3
throw v0
.end method
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 163
invoke-virtual {p0}, Landroidx/datastore/core/SingleProcessDataStore$file$2;->invoke()Ljava/io/File;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,93 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$handleUpdate$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->handleUpdate(Landroidx/datastore/core/SingleProcessDataStore$Message$Update;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x114,
0x119,
0x11c
}
m = "handleUpdate"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field L$2:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$handleUpdate$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$handleUpdate$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$handleUpdate$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$handleUpdate$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$handleUpdate$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
const/4 v0, 0x0
invoke-static {p1, v0, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$handleUpdate(Landroidx/datastore/core/SingleProcessDataStore;Landroidx/datastore/core/SingleProcessDataStore$Message$Update;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,97 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$readAndInit$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->readAndInit(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x142,
0x15c,
0x1f9
}
m = "readAndInit"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field L$2:Ljava/lang/Object;
.field L$3:Ljava/lang/Object;
.field L$4:Ljava/lang/Object;
.field L$5:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-static {p1, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$readAndInit(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,89 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore$readAndInit$api$1"
f = "SingleProcessDataStore.kt"
l = {
0x1f7,
0x151,
0x153
}
m = "updateData"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field L$2:Ljava/lang/Object;
.field L$3:Ljava/lang/Object;
.field L$4:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;
const/4 v0, 0x0
invoke-virtual {p1, v0, p0}, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,402 @@
.class public final Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/core/InitializerApi;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->readAndInit(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroidx/datastore/core/InitializerApi<",
"TT;>;"
}
.end annotation
# instance fields
.field final synthetic $initData:Lkotlin/jvm/internal/Ref$ObjectRef;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Ref$ObjectRef<",
"TT;>;"
}
.end annotation
.end field
.field final synthetic $initializationComplete:Lkotlin/jvm/internal/Ref$BooleanRef;
.field final synthetic $updateLock:Lkotlinx/coroutines/sync/Mutex;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkotlinx/coroutines/sync/Mutex;Lkotlin/jvm/internal/Ref$BooleanRef;Lkotlin/jvm/internal/Ref$ObjectRef;Landroidx/datastore/core/SingleProcessDataStore;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlinx/coroutines/sync/Mutex;",
"Lkotlin/jvm/internal/Ref$BooleanRef;",
"Lkotlin/jvm/internal/Ref$ObjectRef<",
"TT;>;",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;)V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->$updateLock:Lkotlinx/coroutines/sync/Mutex;
iput-object p2, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->$initializationComplete:Lkotlin/jvm/internal/Ref$BooleanRef;
iput-object p3, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->$initData:Lkotlin/jvm/internal/Ref$ObjectRef;
iput-object p4, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 327
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
instance-of v0, p2, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;
if-eqz v0, :cond_0
move-object v0, p2
check-cast v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;
iget v1, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_0
sub-int/2addr v1, v2
iput v1, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
goto :goto_0
:cond_0
new-instance v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;
invoke-direct {v0, p0, p2}, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;-><init>(Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;Lkotlin/coroutines/Continuation;)V
:goto_0
iget-object p2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->result:Ljava/lang/Object;
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v1
.line 328
iget v2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
const/4 v3, 0x3
const/4 v4, 0x2
const/4 v5, 0x1
const/4 v6, 0x0
if-eqz v2, :cond_4
if-eq v2, v5, :cond_3
if-eq v2, v4, :cond_2
if-ne v2, v3, :cond_1
iget-object p1, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$2:Ljava/lang/Object;
iget-object v1, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$1:Ljava/lang/Object;
check-cast v1, Lkotlin/jvm/internal/Ref$ObjectRef;
iget-object v0, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$0:Ljava/lang/Object;
check-cast v0, Lkotlinx/coroutines/sync/Mutex;
:try_start_0
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto/16 :goto_3
:catchall_0
move-exception p1
goto/16 :goto_5
.line 329
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 328
:cond_2
iget-object p1, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$2:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore;
iget-object v2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$1:Ljava/lang/Object;
check-cast v2, Lkotlin/jvm/internal/Ref$ObjectRef;
iget-object v4, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$0:Ljava/lang/Object;
check-cast v4, Lkotlinx/coroutines/sync/Mutex;
:try_start_1
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_2
:catchall_1
move-exception p1
move-object v0, v4
goto/16 :goto_5
:cond_3
iget-object p1, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$4:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore;
iget-object v2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$3:Ljava/lang/Object;
check-cast v2, Lkotlin/jvm/internal/Ref$ObjectRef;
iget-object v5, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$2:Ljava/lang/Object;
check-cast v5, Lkotlin/jvm/internal/Ref$BooleanRef;
iget-object v7, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$1:Ljava/lang/Object;
check-cast v7, Lkotlinx/coroutines/sync/Mutex;
iget-object v8, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$0:Ljava/lang/Object;
check-cast v8, Lkotlin/jvm/functions/Function2;
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
move-object p2, v7
move-object v9, v8
move-object v8, p1
move-object p1, v9
goto :goto_1
:cond_4
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p2, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->$updateLock:Lkotlinx/coroutines/sync/Mutex;
iget-object v2, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->$initializationComplete:Lkotlin/jvm/internal/Ref$BooleanRef;
iget-object v7, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->$initData:Lkotlin/jvm/internal/Ref$ObjectRef;
iget-object v8, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
.line 503
iput-object p1, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$0:Ljava/lang/Object;
iput-object p2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$1:Ljava/lang/Object;
iput-object v2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$2:Ljava/lang/Object;
iput-object v7, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$3:Ljava/lang/Object;
iput-object v8, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$4:Ljava/lang/Object;
iput v5, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
invoke-interface {p2, v6, v0}, Lkotlinx/coroutines/sync/Mutex;->lock(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v5
if-ne v5, v1, :cond_5
return-object v1
:cond_5
move-object v5, v2
move-object v2, v7
.line 330
:goto_1
:try_start_2
iget-boolean v5, v5, Lkotlin/jvm/internal/Ref$BooleanRef;->element:Z
if-nez v5, :cond_9
.line 337
iget-object v5, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
iput-object p2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$0:Ljava/lang/Object;
iput-object v2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$1:Ljava/lang/Object;
iput-object v8, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$2:Ljava/lang/Object;
iput-object v6, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$3:Ljava/lang/Object;
iput-object v6, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$4:Ljava/lang/Object;
iput v4, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
invoke-interface {p1, v5, v0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
if-ne p1, v1, :cond_6
return-object v1
:cond_6
move-object v4, p2
move-object p2, p1
move-object p1, v8
.line 338
:goto_2
:try_start_3
iget-object v5, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
invoke-static {p2, v5}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-nez v5, :cond_8
.line 339
iput-object v4, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$0:Ljava/lang/Object;
iput-object v2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$1:Ljava/lang/Object;
iput-object p2, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->L$2:Ljava/lang/Object;
iput v3, v0, Landroidx/datastore/core/SingleProcessDataStore$readAndInit$api$1$updateData$1;->label:I
invoke-virtual {p1, p2, v0}, Landroidx/datastore/core/SingleProcessDataStore;->writeData$datastore_core(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
if-ne p1, v1, :cond_7
return-object v1
:cond_7
move-object p1, p2
move-object v1, v2
move-object v0, v4
.line 340
:goto_3
:try_start_4
iput-object p1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
move-object v2, v1
goto :goto_4
:cond_8
move-object v0, v4
.line 343
:goto_4
iget-object p1, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
.line 507
invoke-interface {v0, v6}, Lkotlinx/coroutines/sync/Mutex;->unlock(Ljava/lang/Object;)V
return-object p1
:catchall_2
move-exception p1
move-object v0, p2
goto :goto_5
.line 331
:cond_9
:try_start_5
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "InitializerApi.updateData should not be called after initialization is complete."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_2
.line 507
:goto_5
invoke-interface {v0, v6}, Lkotlinx/coroutines/sync/Mutex;->unlock(Ljava/lang/Object;)V
throw p1
.end method

View File

@@ -0,0 +1,85 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateAndThrowFailure$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->readAndInitOrPropagateAndThrowFailure(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x12e
}
m = "readAndInitOrPropagateAndThrowFailure"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateAndThrowFailure$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateAndThrowFailure$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateAndThrowFailure$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateAndThrowFailure$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateAndThrowFailure$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-static {p1, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$readAndInitOrPropagateAndThrowFailure(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,85 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateFailure$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->readAndInitOrPropagateFailure(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x137
}
m = "readAndInitOrPropagateFailure"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateFailure$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateFailure$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateFailure$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateFailure$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readAndInitOrPropagateFailure$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-static {p1, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$readAndInitOrPropagateFailure(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,89 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$readData$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->readData(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x17d
}
m = "readData"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field L$2:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readData$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readData$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readData$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readData$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readData$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-static {p1, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$readData(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,89 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$readDataOrHandleCorruption$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->readDataOrHandleCorruption(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x167,
0x16a,
0x16d
}
m = "readDataOrHandleCorruption"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readDataOrHandleCorruption$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readDataOrHandleCorruption$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readDataOrHandleCorruption$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readDataOrHandleCorruption$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$readDataOrHandleCorruption$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-static {p1, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$readDataOrHandleCorruption(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,92 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->transformAndWrite(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x192,
0x19a
}
m = "transformAndWrite"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field L$2:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
const/4 v0, 0x0
invoke-static {p1, v0, v0, p0}, Landroidx/datastore/core/SingleProcessDataStore;->access$transformAndWrite(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,197 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->transformAndWrite(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore$transformAndWrite$newData$1"
f = "SingleProcessDataStore.kt"
l = {
0x192
}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $curData:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field final synthetic $transform:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.end field
.field label:I
# direct methods
.method public constructor <init>(Lkotlin/jvm/functions/Function2;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"TT;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->$transform:Lkotlin/jvm/functions/Function2;
iput-object p2, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->$curData:Ljava/lang/Object;
const/4 p1, 0x2
invoke-direct {p0, p1, p3}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance p1, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;
iget-object v0, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->$transform:Lkotlin/jvm/functions/Function2;
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->$curData:Ljava/lang/Object;
invoke-direct {p1, v0, v1, p2}, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;-><init>(Lkotlin/jvm/functions/Function2;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)V
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-ne v1, v2, :cond_0
.line 402
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->$transform:Lkotlin/jvm/functions/Function2;
iget-object v1, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->$curData:Ljava/lang/Object;
iput v2, p0, Landroidx/datastore/core/SingleProcessDataStore$transformAndWrite$newData$1;->label:I
invoke-interface {p1, v1, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_2
return-object v0
:cond_2
:goto_0
return-object p1
.end method

View File

@@ -0,0 +1,95 @@
.class final Landroidx/datastore/core/SingleProcessDataStore$writeData$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/core/SingleProcessDataStore;->writeData$datastore_core(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.core.SingleProcessDataStore"
f = "SingleProcessDataStore.kt"
l = {
0x1aa
}
m = "writeData$datastore_core"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field L$1:Ljava/lang/Object;
.field L$2:Ljava/lang/Object;
.field L$3:Ljava/lang/Object;
.field L$4:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/core/SingleProcessDataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/SingleProcessDataStore;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/SingleProcessDataStore<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$writeData$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$writeData$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/core/SingleProcessDataStore$writeData$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/core/SingleProcessDataStore$writeData$1;->label:I
iget-object p1, p0, Landroidx/datastore/core/SingleProcessDataStore$writeData$1;->this$0:Landroidx/datastore/core/SingleProcessDataStore;
const/4 v0, 0x0
invoke-virtual {p1, v0, p0}, Landroidx/datastore/core/SingleProcessDataStore;->writeData$datastore_core(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,34 @@
.class abstract Landroidx/datastore/core/State;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 48
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Landroidx/datastore/core/State;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,42 @@
.class final Landroidx/datastore/core/UnInitialized;
.super Landroidx/datastore/core/State;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/State<",
"Ljava/lang/Object;",
">;"
}
.end annotation
# static fields
.field public static final INSTANCE:Landroidx/datastore/core/UnInitialized;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/core/UnInitialized;
invoke-direct {v0}, Landroidx/datastore/core/UnInitialized;-><init>()V
sput-object v0, Landroidx/datastore/core/UnInitialized;->INSTANCE:Landroidx/datastore/core/UnInitialized;
return-void
.end method
.method private constructor <init>()V
.locals 1
const/4 v0, 0x0
.line 50
invoke-direct {p0, v0}, Landroidx/datastore/core/State;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method

View File

@@ -0,0 +1,54 @@
.class public final Landroidx/datastore/core/handlers/NoOpCorruptionHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/core/CorruptionHandler;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Landroidx/datastore/core/CorruptionHandler<",
"TT;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 24
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public handleCorruption(Landroidx/datastore/core/CorruptionException;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/CorruptionException;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/core/CorruptionException;
}
.end annotation
.line 28
throw p1
.end method

View File

@@ -0,0 +1,83 @@
.class public final Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/core/CorruptionHandler;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Landroidx/datastore/core/CorruptionHandler<",
"TT;>;"
}
.end annotation
# instance fields
.field private final produceNewData:Lkotlin/jvm/functions/Function1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkotlin/jvm/functions/Function1;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function1;",
")V"
}
.end annotation
const-string v0, "produceNewData"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 35
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;->produceNewData:Lkotlin/jvm/functions/Function1;
return-void
.end method
# virtual methods
.method public handleCorruption(Landroidx/datastore/core/CorruptionException;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/CorruptionException;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object p2, p0, Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;->produceNewData:Lkotlin/jvm/functions/Function1;
.line 41
invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,13 @@
.class public final Landroidx/datastore/datastore/R;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,145 @@
.class final Landroidx/datastore/migrations/SharedPreferencesMigration$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Landroid/content/Context;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.migrations.SharedPreferencesMigration$1"
f = "SharedPreferencesMigration.kt"
l = {}
m = "invokeSuspend"
.end annotation
# instance fields
.field label:I
# direct methods
.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
const/4 v0, 0x2
invoke-direct {p0, v0, p1}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance p1, Landroidx/datastore/migrations/SharedPreferencesMigration$1;
invoke-direct {p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$1;-><init>(Lkotlin/coroutines/Continuation;)V
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$1;->invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/migrations/SharedPreferencesMigration$1;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
iget v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$1;->label:I
if-nez v0, :cond_0
.line 36
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
const/4 p1, 0x1
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,145 @@
.class final Landroidx/datastore/migrations/SharedPreferencesMigration$2;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.migrations.SharedPreferencesMigration$2"
f = "SharedPreferencesMigration.kt"
l = {}
m = "invokeSuspend"
.end annotation
# instance fields
.field label:I
# direct methods
.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
const/4 v0, 0x2
invoke-direct {p0, v0, p1}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance p1, Landroidx/datastore/migrations/SharedPreferencesMigration$2;
invoke-direct {p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$2;-><init>(Lkotlin/coroutines/Continuation;)V
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$2;->invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/migrations/SharedPreferencesMigration$2;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
iget v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$2;->label:I
if-nez v0, :cond_0
.line 76
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
const/4 p1, 0x1
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,145 @@
.class final Landroidx/datastore/migrations/SharedPreferencesMigration$3;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.migrations.SharedPreferencesMigration$3"
f = "SharedPreferencesMigration.kt"
l = {}
m = "invokeSuspend"
.end annotation
# instance fields
.field label:I
# direct methods
.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
const/4 v0, 0x2
invoke-direct {p0, v0, p1}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance p1, Landroidx/datastore/migrations/SharedPreferencesMigration$3;
invoke-direct {p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$3;-><init>(Lkotlin/coroutines/Continuation;)V
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$3;->invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invoke(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$3;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/migrations/SharedPreferencesMigration$3;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$3;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
iget v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$3;->label:I
if-nez v0, :cond_0
.line 123
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
const/4 p1, 0x1
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,80 @@
.class final Landroidx/datastore/migrations/SharedPreferencesMigration$4;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function0;"
}
.end annotation
# instance fields
.field final synthetic $context:Landroid/content/Context;
.field final synthetic $sharedPreferencesName:Ljava/lang/String;
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$4;->$context:Landroid/content/Context;
iput-object p2, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$4;->$sharedPreferencesName:Ljava/lang/String;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public final invoke()Landroid/content/SharedPreferences;
.locals 3
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$4;->$context:Landroid/content/Context;
iget-object v1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$4;->$sharedPreferencesName:Ljava/lang/String;
const/4 v2, 0x0
.line 126
invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v0
const-string v1, "context.getSharedPreferences(sharedPreferencesName, Context.MODE_PRIVATE)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 126
invoke-virtual {p0}, Landroidx/datastore/migrations/SharedPreferencesMigration$4;->invoke()Landroid/content/SharedPreferences;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,66 @@
.class final Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/migrations/SharedPreferencesMigration;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Api24Impl"
.end annotation
# static fields
.field public static final INSTANCE:Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;
invoke-direct {v0}, Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;-><init>()V
sput-object v0, Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;->INSTANCE:Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 215
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final deleteSharedPreferences(Landroid/content/Context;Ljava/lang/String;)Z
.locals 1
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
const-string v0, "context"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "name"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 220
invoke-virtual {p0, p1}, Landroid/content/Context;->deleteSharedPreferences(Ljava/lang/String;)Z
move-result p0
return p0
.end method

View File

@@ -0,0 +1,87 @@
.class final Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;
.super Lkotlin/coroutines/jvm/internal/ContinuationImpl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/migrations/SharedPreferencesMigration;->shouldMigrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.migrations.SharedPreferencesMigration"
f = "SharedPreferencesMigration.kt"
l = {
0x93
}
m = "shouldMigrate"
.end annotation
# instance fields
.field L$0:Ljava/lang/Object;
.field label:I
.field synthetic result:Ljava/lang/Object;
.field final synthetic this$0:Landroidx/datastore/migrations/SharedPreferencesMigration;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/migrations/SharedPreferencesMigration<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/migrations/SharedPreferencesMigration;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/migrations/SharedPreferencesMigration<",
"TT;>;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->this$0:Landroidx/datastore/migrations/SharedPreferencesMigration;
invoke-direct {p0, p2}, Lkotlin/coroutines/jvm/internal/ContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iput-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->result:Ljava/lang/Object;
iget p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->label:I
const/high16 v0, -0x80000000
or-int/2addr p1, v0
iput p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->label:I
iget-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->this$0:Landroidx/datastore/migrations/SharedPreferencesMigration;
const/4 v0, 0x0
invoke-virtual {p1, v0, p0}, Landroidx/datastore/migrations/SharedPreferencesMigration;->shouldMigrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,999 @@
.class public final Landroidx/datastore/migrations/SharedPreferencesMigration;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/core/DataMigration;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Landroidx/datastore/core/DataMigration<",
"TT;>;"
}
.end annotation
# instance fields
.field private final context:Landroid/content/Context;
.field private final keySet:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final migrate:Lkotlin/jvm/functions/Function3;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function3;"
}
.end annotation
.end field
.field private final name:Ljava/lang/String;
.field private final sharedPrefs$delegate:Lkotlin/Lazy;
.field private final shouldRunMigration:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;)V
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/jvm/functions/Function3;",
")V"
}
.end annotation
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "sharedPreferencesName"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "keysToMigrate"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "shouldRunMigration"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrate"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 126
new-instance v2, Landroidx/datastore/migrations/SharedPreferencesMigration$4;
invoke-direct {v2, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$4;-><init>(Landroid/content/Context;Ljava/lang/String;)V
move-object v1, p0
move-object v3, p3
move-object v4, p4
move-object v5, p5
move-object v6, p1
move-object v7, p2
.line 125
invoke-direct/range {v1 .. v7}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
.method public synthetic constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 6
and-int/lit8 p7, p6, 0x4
if-eqz p7, :cond_0
.line 122
invoke-static {}, Landroidx/datastore/migrations/SharedPreferencesMigrationKt;->getMIGRATE_ALL_KEYS()Ljava/util/Set;
move-result-object p3
:cond_0
move-object v3, p3
and-int/lit8 p3, p6, 0x8
if-eqz p3, :cond_1
.line 123
new-instance p4, Landroidx/datastore/migrations/SharedPreferencesMigration$3;
const/4 p3, 0x0
invoke-direct {p4, p3}, Landroidx/datastore/migrations/SharedPreferencesMigration$3;-><init>(Lkotlin/coroutines/Continuation;)V
:cond_1
move-object v4, p4
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-object v5, p5
.line 119
invoke-direct/range {v0 .. v5}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function3;)V
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;",
"Lkotlin/jvm/functions/Function3;",
")V"
}
.end annotation
.line 0
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "sharedPreferencesName"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "keysToMigrate"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrate"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v5, 0x0
const/16 v7, 0x8
const/4 v8, 0x0
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v4, p3
move-object v6, p4
invoke-direct/range {v1 .. v8}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Lkotlin/jvm/functions/Function3;)V
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Lkotlin/jvm/functions/Function3;",
")V"
}
.end annotation
.line 0
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "sharedPreferencesName"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrate"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v4, 0x0
const/4 v5, 0x0
const/16 v7, 0xc
const/4 v8, 0x0
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v6, p3
invoke-direct/range {v1 .. v8}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;)V
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/jvm/functions/Function3;",
")V"
}
.end annotation
const-string v0, "produceSharedPreferences"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "keysToMigrate"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "shouldRunMigration"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrate"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v6, 0x0
const/4 v7, 0x0
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v4, p3
move-object v5, p4
.line 78
invoke-direct/range {v1 .. v7}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
and-int/lit8 p6, p5, 0x2
if-eqz p6, :cond_0
.line 75
invoke-static {}, Landroidx/datastore/migrations/SharedPreferencesMigrationKt;->getMIGRATE_ALL_KEYS()Ljava/util/Set;
move-result-object p2
:cond_0
and-int/lit8 p5, p5, 0x4
if-eqz p5, :cond_1
.line 76
new-instance p3, Landroidx/datastore/migrations/SharedPreferencesMigration$2;
const/4 p5, 0x0
invoke-direct {p3, p5}, Landroidx/datastore/migrations/SharedPreferencesMigration$2;-><init>(Lkotlin/coroutines/Continuation;)V
.line 73
:cond_1
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;)V
return-void
.end method
.method private constructor <init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Landroid/content/Context;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/jvm/functions/Function3;",
"Landroid/content/Context;",
"Ljava/lang/String;",
")V"
}
.end annotation
.line 32
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->shouldRunMigration:Lkotlin/jvm/functions/Function2;
iput-object p4, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->migrate:Lkotlin/jvm/functions/Function3;
iput-object p5, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->context:Landroid/content/Context;
iput-object p6, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->name:Ljava/lang/String;
.line 134
invoke-static {p1}, Lkotlin/LazyKt;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object p1
iput-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->sharedPrefs$delegate:Lkotlin/Lazy;
.line 140
invoke-static {}, Landroidx/datastore/migrations/SharedPreferencesMigrationKt;->getMIGRATE_ALL_KEYS()Ljava/util/Set;
move-result-object p1
if-ne p2, p1, :cond_0
const/4 p1, 0x0
goto :goto_0
.line 143
:cond_0
invoke-static {p2}, Lkotlin/collections/CollectionsKt;->toMutableSet(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object p1
:goto_0
iput-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->keySet:Ljava/util/Set;
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Landroid/content/Context;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 7
and-int/lit8 p7, p7, 0x4
if-eqz p7, :cond_0
.line 36
new-instance p3, Landroidx/datastore/migrations/SharedPreferencesMigration$1;
const/4 p7, 0x0
invoke-direct {p3, p7}, Landroidx/datastore/migrations/SharedPreferencesMigration$1;-><init>(Lkotlin/coroutines/Continuation;)V
:cond_0
move-object v3, p3
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-object v4, p4
move-object v5, p5
move-object v6, p6
.line 33
invoke-direct/range {v0 .. v6}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function3;)V
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;",
"Lkotlin/jvm/functions/Function3;",
")V"
}
.end annotation
.line 0
const-string v0, "produceSharedPreferences"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "keysToMigrate"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrate"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v4, 0x0
const/4 v6, 0x4
const/4 v7, 0x0
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v5, p3
invoke-direct/range {v1 .. v7}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>(Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function3;)V
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
"Lkotlin/jvm/functions/Function3;",
")V"
}
.end annotation
.line 0
const-string v0, "produceSharedPreferences"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "migrate"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x6
const/4 v7, 0x0
move-object v1, p0
move-object v2, p1
move-object v5, p2
invoke-direct/range {v1 .. v7}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method private final deleteSharedPreferences(Landroid/content/Context;Ljava/lang/String;)V
.locals 1
.line 192
invoke-static {p1, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$Api24Impl;->deleteSharedPreferences(Landroid/content/Context;Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_0
return-void
.line 193
:cond_0
new-instance p1, Ljava/io/IOException;
const-string v0, "Unable to delete SharedPreferences: "
invoke-static {v0, p2}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method private final getSharedPrefs()Landroid/content/SharedPreferences;
.locals 1
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->sharedPrefs$delegate:Lkotlin/Lazy;
.line 134
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/SharedPreferences;
return-object v0
.end method
.method private final getSharedPrefsBackup(Ljava/io/File;)Ljava/io/File;
.locals 2
.line 213
new-instance v0, Ljava/io/File;
invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object p1
const-string v1, ".bak"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method private final getSharedPrefsFile(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
.locals 2
.line 208
new-instance v0, Ljava/io/File;
invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object p1
iget-object p1, p1, Landroid/content/pm/ApplicationInfo;->dataDir:Ljava/lang/String;
const-string v1, "shared_prefs"
invoke-direct {v0, p1, v1}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 209
new-instance p1, Ljava/io/File;
const-string v1, ".xml"
invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, v0, p2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
return-object p1
.end method
# virtual methods
.method public cleanUp(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 169
invoke-direct {p0}, Landroidx/datastore/migrations/SharedPreferencesMigration;->getSharedPrefs()Landroid/content/SharedPreferences;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p1
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->keySet:Ljava/util/Set;
if-nez v0, :cond_0
.line 172
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;
goto :goto_1
.line 324
:cond_0
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
.line 175
invoke-interface {p1, v1}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
goto :goto_0
.line 179
:cond_1
:goto_1
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->commit()Z
move-result p1
if-eqz p1, :cond_5
.line 183
invoke-direct {p0}, Landroidx/datastore/migrations/SharedPreferencesMigration;->getSharedPrefs()Landroid/content/SharedPreferences;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
move-result-object p1
invoke-interface {p1}, Ljava/util/Map;->isEmpty()Z
move-result p1
if-eqz p1, :cond_2
iget-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->context:Landroid/content/Context;
if-eqz p1, :cond_2
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->name:Ljava/lang/String;
if-eqz v0, :cond_2
.line 184
invoke-direct {p0, p1, v0}, Landroidx/datastore/migrations/SharedPreferencesMigration;->deleteSharedPreferences(Landroid/content/Context;Ljava/lang/String;)V
:cond_2
iget-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->keySet:Ljava/util/Set;
if-nez p1, :cond_3
const/4 p1, 0x0
goto :goto_2
.line 187
:cond_3
invoke-interface {p1}, Ljava/util/Set;->clear()V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:goto_2
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
if-ne p1, v0, :cond_4
return-object p1
.line 188
:cond_4
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.line 180
:cond_5
new-instance p1, Ljava/io/IOException;
const-string v0, "Unable to delete migrated keys from SharedPreferences."
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public migrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->migrate:Lkotlin/jvm/functions/Function3;
.line 160
new-instance v1, Landroidx/datastore/migrations/SharedPreferencesView;
.line 161
invoke-direct {p0}, Landroidx/datastore/migrations/SharedPreferencesMigration;->getSharedPrefs()Landroid/content/SharedPreferences;
move-result-object v2
iget-object v3, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->keySet:Ljava/util/Set;
.line 160
invoke-direct {v1, v2, v3}, Landroidx/datastore/migrations/SharedPreferencesView;-><init>(Landroid/content/SharedPreferences;Ljava/util/Set;)V
.line 159
invoke-interface {v0, v1, p1, p2}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public shouldMigrate(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
instance-of v0, p2, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;
if-eqz v0, :cond_0
move-object v0, p2
check-cast v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;
iget v1, v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->label:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_0
sub-int/2addr v1, v2
iput v1, v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->label:I
goto :goto_0
:cond_0
new-instance v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;
invoke-direct {v0, p0, p2}, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;-><init>(Landroidx/datastore/migrations/SharedPreferencesMigration;Lkotlin/coroutines/Continuation;)V
:goto_0
iget-object p2, v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->result:Ljava/lang/Object;
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v1
.line 146
iget v2, v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->label:I
const/4 v3, 0x1
if-eqz v2, :cond_2
if-ne v2, v3, :cond_1
iget-object p1, v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/migrations/SharedPreferencesMigration;
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_1
.line 151
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 146
:cond_2
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p2, p0, Landroidx/datastore/migrations/SharedPreferencesMigration;->shouldRunMigration:Lkotlin/jvm/functions/Function2;
.line 147
iput-object p0, v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->L$0:Ljava/lang/Object;
iput v3, v0, Landroidx/datastore/migrations/SharedPreferencesMigration$shouldMigrate$1;->label:I
invoke-interface {p2, p1, v0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
if-ne p2, v1, :cond_3
return-object v1
:cond_3
move-object p1, p0
:goto_1
check-cast p2, Ljava/lang/Boolean;
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z
move-result p2
const/4 v0, 0x0
if-nez p2, :cond_4
.line 148
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.line 151
:cond_4
iget-object p2, p1, Landroidx/datastore/migrations/SharedPreferencesMigration;->keySet:Ljava/util/Set;
if-nez p2, :cond_6
.line 152
invoke-direct {p1}, Landroidx/datastore/migrations/SharedPreferencesMigration;->getSharedPrefs()Landroid/content/SharedPreferences;
move-result-object p1
invoke-interface {p1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
move-result-object p1
const-string p2, "sharedPrefs.all"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p1}, Ljava/util/Map;->isEmpty()Z
move-result p1
if-nez p1, :cond_5
goto :goto_3
:cond_5
:goto_2
move v3, v0
goto :goto_3
.line 154
:cond_6
invoke-direct {p1}, Landroidx/datastore/migrations/SharedPreferencesMigration;->getSharedPrefs()Landroid/content/SharedPreferences;
move-result-object p1
.line 321
instance-of v1, p2, Ljava/util/Collection;
if-eqz v1, :cond_7
invoke-interface {p2}, Ljava/util/Collection;->isEmpty()Z
move-result v1
if-eqz v1, :cond_7
goto :goto_2
.line 322
:cond_7
invoke-interface {p2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p2
:cond_8
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_5
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
.line 154
invoke-interface {p1, v1}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z
move-result v1
invoke-static {v1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_8
.line 323
:goto_3
invoke-static {v3}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,46 @@
.class public final Landroidx/datastore/migrations/SharedPreferencesMigrationKt;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final MIGRATE_ALL_KEYS:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 319
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
sput-object v0, Landroidx/datastore/migrations/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
return-void
.end method
.method public static final getMIGRATE_ALL_KEYS()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
sget-object v0, Landroidx/datastore/migrations/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
return-object v0
.end method

View File

@@ -0,0 +1,448 @@
.class public final Landroidx/datastore/migrations/SharedPreferencesView;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final keySet:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final prefs:Landroid/content/SharedPreferences;
# direct methods
.method public constructor <init>(Landroid/content/SharedPreferences;Ljava/util/Set;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/SharedPreferences;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
const-string v0, "prefs"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 228
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
iput-object p2, p0, Landroidx/datastore/migrations/SharedPreferencesView;->keySet:Ljava/util/Set;
return-void
.end method
.method private final checkKey(Ljava/lang/String;)Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->keySet:Ljava/util/Set;
if-nez v0, :cond_0
goto :goto_0
.line 312
:cond_0
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
:goto_0
return-object p1
:cond_1
const-string v0, "Can\'t access key outside migration: "
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static synthetic getString$default(Landroidx/datastore/migrations/SharedPreferencesView;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
const/4 p2, 0x0
.line 285
:cond_0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesView;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic getStringSet$default(Landroidx/datastore/migrations/SharedPreferencesView;Ljava/lang/String;Ljava/util/Set;ILjava/lang/Object;)Ljava/util/Set;
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
const/4 p2, 0x0
.line 295
:cond_0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/migrations/SharedPreferencesView;->getStringSet(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final contains(Ljava/lang/String;)Z
.locals 1
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 238
invoke-direct {p0, p1}, Landroidx/datastore/migrations/SharedPreferencesView;->checkKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z
move-result p1
return p1
.end method
.method public final getAll()Ljava/util/Map;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 300
invoke-interface {v0}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
move-result-object v0
const-string v1, "prefs.all"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 321
new-instance v1, Ljava/util/LinkedHashMap;
invoke-direct {v1}, Ljava/util/LinkedHashMap;-><init>()V
.line 494
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
.line 300
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
iget-object v4, p0, Landroidx/datastore/migrations/SharedPreferencesView;->keySet:Ljava/util/Set;
if-nez v4, :cond_1
goto :goto_1
.line 301
:cond_1
invoke-interface {v4, v3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_0
.line 496
:goto_1
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
.line 328
:cond_2
new-instance v0, Ljava/util/LinkedHashMap;
invoke-interface {v1}, Ljava/util/Map;->size()I
move-result v2
invoke-static {v2}, Lkotlin/collections/MapsKt;->mapCapacity(I)I
move-result v2
invoke-direct {v0, v2}, Ljava/util/LinkedHashMap;-><init>(I)V
.line 329
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
.line 330
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_2
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_4
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
.line 331
check-cast v2, Ljava/util/Map$Entry;
.line 329
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
.line 302
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
.line 303
instance-of v4, v2, Ljava/util/Set;
if-eqz v4, :cond_3
.line 304
check-cast v2, Ljava/lang/Iterable;
invoke-static {v2}, Lkotlin/collections/CollectionsKt;->toSet(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object v2
.line 303
:cond_3
invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_2
:cond_4
return-object v0
.end method
.method public final getBoolean(Ljava/lang/String;Z)Z
.locals 1
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 248
invoke-direct {p0, p1}, Landroidx/datastore/migrations/SharedPreferencesView;->checkKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result p1
return p1
.end method
.method public final getFloat(Ljava/lang/String;F)F
.locals 1
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 258
invoke-direct {p0, p1}, Landroidx/datastore/migrations/SharedPreferencesView;->checkKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences;->getFloat(Ljava/lang/String;F)F
move-result p1
return p1
.end method
.method public final getInt(Ljava/lang/String;I)I
.locals 1
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 267
invoke-direct {p0, p1}, Landroidx/datastore/migrations/SharedPreferencesView;->checkKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
move-result p1
return p1
.end method
.method public final getLong(Ljava/lang/String;J)J
.locals 1
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 276
invoke-direct {p0, p1}, Landroidx/datastore/migrations/SharedPreferencesView;->checkKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1, p2, p3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J
move-result-wide p1
return-wide p1
.end method
.method public final getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 1
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 286
invoke-direct {p0, p1}, Landroidx/datastore/migrations/SharedPreferencesView;->checkKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public final getStringSet(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;)",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/migrations/SharedPreferencesView;->prefs:Landroid/content/SharedPreferences;
.line 296
invoke-direct {p0, p1}, Landroidx/datastore/migrations/SharedPreferencesView;->checkKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences;->getStringSet(Ljava/lang/String;Ljava/util/Set;)Ljava/util/Set;
move-result-object p1
if-nez p1, :cond_0
const/4 p1, 0x0
goto :goto_0
:cond_0
invoke-static {p1}, Lkotlin/collections/CollectionsKt;->toMutableSet(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object p1
:goto_0
return-object p1
.end method

View File

@@ -0,0 +1,93 @@
.class final Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt;->preferencesDataStore$default(Ljava/lang/String;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;ILjava/lang/Object;)Lkotlin/properties/ReadOnlyProperty;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
# static fields
.field public static final INSTANCE:Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;
invoke-direct {v0}, Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;-><init>()V
sput-object v0, Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;->INSTANCE:Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 69
check-cast p1, Landroid/content/Context;
invoke-virtual {p0, p1}, Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;->invoke(Landroid/content/Context;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
.method public final invoke(Landroid/content/Context;)Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/List<",
"Landroidx/datastore/core/DataMigration<",
"Landroidx/datastore/preferences/core/Preferences;",
">;>;"
}
.end annotation
const-string v0, "it"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 69
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,92 @@
.class public final Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final preferencesDataStore(Ljava/lang/String;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)Lkotlin/properties/ReadOnlyProperty;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"Landroidx/datastore/preferences/core/Preferences;",
">;",
"Lkotlin/jvm/functions/Function1;",
"Lkotlinx/coroutines/CoroutineScope;",
")",
"Lkotlin/properties/ReadOnlyProperty;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceMigrations"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "scope"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 72
new-instance v0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;
invoke-direct {v0, p0, p1, p2, p3}, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;-><init>(Ljava/lang/String;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)V
return-object v0
.end method
.method public static synthetic preferencesDataStore$default(Ljava/lang/String;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;ILjava/lang/Object;)Lkotlin/properties/ReadOnlyProperty;
.locals 1
and-int/lit8 p5, p4, 0x2
const/4 v0, 0x0
if-eqz p5, :cond_0
move-object p1, v0
:cond_0
and-int/lit8 p5, p4, 0x4
if-eqz p5, :cond_1
sget-object p2, Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;->INSTANCE:Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt$preferencesDataStore$1;
:cond_1
and-int/lit8 p4, p4, 0x8
if-eqz p4, :cond_2
.line 70
invoke-static {}, Lkotlinx/coroutines/Dispatchers;->getIO()Lkotlinx/coroutines/CoroutineDispatcher;
move-result-object p3
const/4 p4, 0x1
invoke-static {v0, p4, v0}, Lkotlinx/coroutines/SupervisorKt;->SupervisorJob$default(Lkotlinx/coroutines/Job;ILjava/lang/Object;)Lkotlinx/coroutines/CompletableJob;
move-result-object p4
invoke-virtual {p3, p4}, Lkotlin/coroutines/AbstractCoroutineContextElement;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
move-result-object p3
invoke-static {p3}, Lkotlinx/coroutines/CoroutineScopeKt;->CoroutineScope(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineScope;
move-result-object p3
.line 66
:cond_2
invoke-static {p0, p1, p2, p3}, Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt;->preferencesDataStore(Ljava/lang/String;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)Lkotlin/properties/ReadOnlyProperty;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,30 @@
.class public final Landroidx/datastore/preferences/PreferenceDataStoreFile;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final preferencesDataStoreFile(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
.locals 1
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "name"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, ".preferences_pb"
.line 38
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-static {p0, p1}, Landroidx/datastore/DataStoreFile;->dataStoreFile(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,82 @@
.class final Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->getValue(Landroid/content/Context;Lkotlin/reflect/KProperty;)Landroidx/datastore/core/DataStore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function0;"
}
.end annotation
# instance fields
.field final synthetic $applicationContext:Landroid/content/Context;
.field final synthetic this$0:Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;)V
.locals 0
iput-object p1, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;->$applicationContext:Landroid/content/Context;
iput-object p2, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;->this$0:Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public final invoke()Ljava/io/File;
.locals 2
iget-object v0, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;->$applicationContext:Landroid/content/Context;
const-string v1, "applicationContext"
.line 107
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v1, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;->this$0:Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;
invoke-static {v1}, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->access$getName$p(Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;)Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroidx/datastore/preferences/PreferenceDataStoreFile;->preferencesDataStoreFile(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 106
invoke-virtual {p0}, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;->invoke()Ljava/io/File;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,235 @@
.class public final Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlin/properties/ReadOnlyProperty;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lkotlin/properties/ReadOnlyProperty;"
}
.end annotation
# instance fields
.field private volatile INSTANCE:Landroidx/datastore/core/DataStore;
.annotation build Landroidx/annotation/GuardedBy;
value = "lock"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.end field
.field private final corruptionHandler:Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.end field
.field private final lock:Ljava/lang/Object;
.field private final name:Ljava/lang/String;
.field private final produceMigrations:Lkotlin/jvm/functions/Function1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
.end field
.field private final scope:Lkotlinx/coroutines/CoroutineScope;
# direct methods
.method public constructor <init>(Ljava/lang/String;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function1;Lkotlinx/coroutines/CoroutineScope;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"Landroidx/datastore/preferences/core/Preferences;",
">;",
"Lkotlin/jvm/functions/Function1;",
"Lkotlinx/coroutines/CoroutineScope;",
")V"
}
.end annotation
const-string v0, "name"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceMigrations"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "scope"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 78
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->name:Ljava/lang/String;
iput-object p2, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->corruptionHandler:Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;
iput-object p3, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->produceMigrations:Lkotlin/jvm/functions/Function1;
iput-object p4, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->scope:Lkotlinx/coroutines/CoroutineScope;
.line 85
new-instance p1, Ljava/lang/Object;
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->lock:Ljava/lang/Object;
return-void
.end method
.method public static final synthetic access$getName$p(Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;)Ljava/lang/String;
.locals 0
.line 78
iget-object p0, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->name:Ljava/lang/String;
return-object p0
.end method
# virtual methods
.method public getValue(Landroid/content/Context;Lkotlin/reflect/KProperty;)Landroidx/datastore/core/DataStore;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lkotlin/reflect/KProperty;",
")",
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
const-string v0, "thisRef"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "property"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p2, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
if-nez p2, :cond_1
iget-object p2, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->lock:Ljava/lang/Object;
.line 98
monitor-enter p2
:try_start_0
iget-object v0, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
if-nez v0, :cond_0
.line 100
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
.line 102
sget-object v0, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->INSTANCE:Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;
iget-object v1, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->corruptionHandler:Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;
iget-object v2, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->produceMigrations:Lkotlin/jvm/functions/Function1;
const-string v3, "applicationContext"
.line 104
invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/List;
iget-object v3, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->scope:Lkotlinx/coroutines/CoroutineScope;
.line 106
new-instance v4, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;
invoke-direct {v4, p1, p0}, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate$getValue$1$1;-><init>(Landroid/content/Context;Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;)V
.line 102
invoke-virtual {v0, v1, v2, v3, v4}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->create(Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
move-result-object p1
iput-object p1, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
:cond_0
:goto_0
iget-object p1, p0, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->INSTANCE:Landroidx/datastore/core/DataStore;
.line 110
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 98
monitor-exit p2
move-object p2, p1
goto :goto_2
:goto_1
monitor-exit p2
throw p1
:cond_1
:goto_2
return-object p2
.end method
.method public bridge synthetic getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
.locals 0
.line 78
check-cast p1, Landroid/content/Context;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/PreferenceDataStoreSingletonDelegate;->getValue(Landroid/content/Context;Lkotlin/reflect/KProperty;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,71 @@
.class public final Landroidx/datastore/preferences/PreferencesMapCompat$Companion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesMapCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesMapCompat$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final readFrom(Ljava/io/InputStream;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 2
const-string v0, "input"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 31
:try_start_0
invoke-static {p1}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->parseFrom(Ljava/io/InputStream;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
move-result-object p1
const-string v0, "{\n PreferencesProto.PreferenceMap.parseFrom(input)\n }"
.line 30
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_0
.catch Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
.line 33
new-instance v0, Landroidx/datastore/core/CorruptionException;
const-string v1, "Unable to parse preferences proto."
invoke-direct {v0, v1, p1}, Landroidx/datastore/core/CorruptionException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method

View File

@@ -0,0 +1,40 @@
.class public final Landroidx/datastore/preferences/PreferencesMapCompat;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/preferences/PreferencesMapCompat$Companion;
}
.end annotation
# static fields
.field public static final Companion:Landroidx/datastore/preferences/PreferencesMapCompat$Companion;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/datastore/preferences/PreferencesMapCompat$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/datastore/preferences/PreferencesMapCompat$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Landroidx/datastore/preferences/PreferencesMapCompat;->Companion:Landroidx/datastore/preferences/PreferencesMapCompat$Companion;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,147 @@
.class synthetic Landroidx/datastore/preferences/PreferencesProto$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 352
invoke-static {}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->values()[Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
:try_start_0
sget-object v1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->NEW_MUTABLE_INSTANCE:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
sget-object v1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->NEW_BUILDER:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
sget-object v1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->BUILD_MESSAGE_INFO:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
:try_start_3
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
sget-object v1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->GET_DEFAULT_INSTANCE:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x4
aput v2, v0, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
:try_start_4
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
sget-object v1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->GET_PARSER:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x5
aput v2, v0, v1
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
:catch_4
:try_start_5
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
sget-object v1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->GET_MEMOIZED_IS_INITIALIZED:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x6
aput v2, v0, v1
:try_end_5
.catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_5
:catch_5
:try_start_6
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
sget-object v1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;->SET_MEMOIZED_IS_INITIALIZED:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x7
aput v2, v0, v1
:try_end_6
.catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_6
:catch_6
return-void
.end method

View File

@@ -0,0 +1,322 @@
.class public final Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
.super Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/PreferencesProto$PreferenceMapOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder<",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;",
">;",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMapOrBuilder;"
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 1
.line 243
invoke-static {}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->access$000()Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
move-result-object v0
invoke-direct {p0, v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;-><init>(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)V
return-void
.end method
.method public synthetic constructor <init>(Landroidx/datastore/preferences/PreferencesProto$1;)V
.locals 0
.line 236
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;-><init>()V
return-void
.end method
# virtual methods
.method public clearPreferences()Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
.locals 1
.line 264
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 265
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->access$100(Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;)Ljava/util/Map;
move-result-object v0
invoke-interface {v0}, Ljava/util/Map;->clear()V
return-object p0
.end method
.method public containsPreferences(Ljava/lang/String;)Z
.locals 1
.line 259
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 260
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->getPreferencesMap()Ljava/util/Map;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public getPreferences()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 285
invoke-virtual {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;->getPreferencesMap()Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public getPreferencesCount()I
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 250
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->getPreferencesMap()Ljava/util/Map;
move-result-object v0
invoke-interface {v0}, Ljava/util/Map;->size()I
move-result v0
return v0
.end method
.method public getPreferencesMap()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 292
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 293
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->getPreferencesMap()Ljava/util/Map;
move-result-object v0
.line 292
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public getPreferencesOrDefault(Ljava/lang/String;Landroidx/datastore/preferences/PreferencesProto$Value;)Landroidx/datastore/preferences/PreferencesProto$Value;
.locals 2
.line 303
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 304
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 305
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->getPreferencesMap()Ljava/util/Map;
move-result-object v0
.line 306
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
move-object p2, p1
check-cast p2, Landroidx/datastore/preferences/PreferencesProto$Value;
:cond_0
return-object p2
.end method
.method public getPreferencesOrThrow(Ljava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$Value;
.locals 2
.line 315
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 316
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 317
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->getPreferencesMap()Ljava/util/Map;
move-result-object v0
.line 318
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 321
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroidx/datastore/preferences/PreferencesProto$Value;
return-object p1
.line 319
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
.end method
.method public putAllPreferences(Ljava/util/Map;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;)",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;"
}
.end annotation
.line 340
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 341
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->access$100(Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;)Ljava/util/Map;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
return-object p0
.end method
.method public putPreferences(Ljava/lang/String;Landroidx/datastore/preferences/PreferencesProto$Value;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
.locals 1
.line 329
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 330
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 331
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 332
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->access$100(Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;)Ljava/util/Map;
move-result-object v0
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object p0
.end method
.method public removePreferences(Ljava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
.locals 1
.line 274
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 275
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 276
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->access$100(Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;)Ljava/util/Map;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
return-object p0
.end method

View File

@@ -0,0 +1,63 @@
.class final Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$PreferencesDefaultEntryHolder;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "PreferencesDefaultEntryHolder"
.end annotation
# static fields
.field static final defaultEntry:Landroidx/datastore/preferences/protobuf/MapEntryLite;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/MapEntryLite<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 4
.line 62
sget-object v0, Landroidx/datastore/preferences/protobuf/WireFormat$FieldType;->STRING:Landroidx/datastore/preferences/protobuf/WireFormat$FieldType;
sget-object v1, Landroidx/datastore/preferences/protobuf/WireFormat$FieldType;->MESSAGE:Landroidx/datastore/preferences/protobuf/WireFormat$FieldType;
.line 68
invoke-static {}, Landroidx/datastore/preferences/PreferencesProto$Value;->getDefaultInstance()Landroidx/datastore/preferences/PreferencesProto$Value;
move-result-object v2
const-string v3, ""
.line 64
invoke-static {v0, v3, v1, v2}, Landroidx/datastore/preferences/protobuf/MapEntryLite;->newDefaultInstance(Landroidx/datastore/preferences/protobuf/WireFormat$FieldType;Ljava/lang/Object;Landroidx/datastore/preferences/protobuf/WireFormat$FieldType;Ljava/lang/Object;)Landroidx/datastore/preferences/protobuf/MapEntryLite;
move-result-object v0
sput-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$PreferencesDefaultEntryHolder;->defaultEntry:Landroidx/datastore/preferences/protobuf/MapEntryLite;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 60
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,780 @@
.class public final Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.super Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/PreferencesProto$PreferenceMapOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "PreferenceMap"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;,
Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$PreferencesDefaultEntryHolder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/GeneratedMessageLite<",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;",
">;",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMapOrBuilder;"
}
.end annotation
# static fields
.field private static final DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.field private static volatile PARSER:Landroidx/datastore/preferences/protobuf/Parser; = null
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/Parser<",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;",
">;"
}
.end annotation
.end field
.field public static final PREFERENCES_FIELD_NUMBER:I = 0x1
# instance fields
.field private preferences_:Landroidx/datastore/preferences/protobuf/MapFieldLite;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/MapFieldLite<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 2
.line 401
new-instance v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-direct {v0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;-><init>()V
sput-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
const-class v1, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 405
invoke-static {v1, v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->registerDefaultInstance(Ljava/lang/Class;Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)V
return-void
.end method
.method private constructor <init>()V
.locals 1
.line 57
invoke-direct {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;-><init>()V
.line 72
invoke-static {}, Landroidx/datastore/preferences/protobuf/MapFieldLite;->emptyMapField()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
iput-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->preferences_:Landroidx/datastore/preferences/protobuf/MapFieldLite;
return-void
.end method
.method public static synthetic access$000()Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object v0
.end method
.method public static synthetic access$100(Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;)Ljava/util/Map;
.locals 0
.line 52
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->getMutablePreferencesMap()Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static getDefaultInstance()Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object v0
.end method
.method private getMutablePreferencesMap()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.line 149
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->internalGetMutablePreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
return-object v0
.end method
.method private internalGetMutablePreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/preferences/protobuf/MapFieldLite<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->preferences_:Landroidx/datastore/preferences/protobuf/MapFieldLite;
.line 79
invoke-virtual {v0}, Landroidx/datastore/preferences/protobuf/MapFieldLite;->isMutable()Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->preferences_:Landroidx/datastore/preferences/protobuf/MapFieldLite;
.line 80
invoke-virtual {v0}, Landroidx/datastore/preferences/protobuf/MapFieldLite;->mutableCopy()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
iput-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->preferences_:Landroidx/datastore/preferences/protobuf/MapFieldLite;
:cond_0
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->preferences_:Landroidx/datastore/preferences/protobuf/MapFieldLite;
return-object v0
.end method
.method private internalGetPreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/preferences/protobuf/MapFieldLite<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->preferences_:Landroidx/datastore/preferences/protobuf/MapFieldLite;
return-object v0
.end method
.method public static newBuilder()Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 227
invoke-virtual {v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->createBuilder()Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;
move-result-object v0
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
return-object v0
.end method
.method public static newBuilder(Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 230
invoke-virtual {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->createBuilder(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
return-object p0
.end method
.method public static parseDelimitedFrom(Ljava/io/InputStream;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 204
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseDelimitedFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseDelimitedFrom(Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 210
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseDelimitedFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/ByteString;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 168
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/ByteString;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/ByteString;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 175
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/ByteString;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/CodedInputStream;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 215
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/CodedInputStream;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/CodedInputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 222
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/CodedInputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Ljava/io/InputStream;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 192
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 199
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Ljava/nio/ByteBuffer;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 155
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/nio/ByteBuffer;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom(Ljava/nio/ByteBuffer;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 162
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/nio/ByteBuffer;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom([B)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 180
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;[B)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parseFrom([BLandroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 187
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;[BLandroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p0
.end method
.method public static parser()Landroidx/datastore/preferences/protobuf/Parser;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/preferences/protobuf/Parser<",
"Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;",
">;"
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 416
invoke-virtual {v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->getParserForType()Landroidx/datastore/preferences/protobuf/Parser;
move-result-object v0
return-object v0
.end method
# virtual methods
.method public containsPreferences(Ljava/lang/String;)Z
.locals 1
.line 96
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 97
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->internalGetPreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/util/AbstractMap;->containsKey(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public final dynamicMethod(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 352
sget-object p2, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
move-result p1
aget p1, p2, p1
const/4 p2, 0x0
packed-switch p1, :pswitch_data_0
.line 394
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
:pswitch_0
return-object p2
:pswitch_1
const/4 p1, 0x1
.line 388
invoke-static {p1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object p1
return-object p1
:pswitch_2
sget-object p1, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->PARSER:Landroidx/datastore/preferences/protobuf/Parser;
if-nez p1, :cond_1
const-class p2, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 375
monitor-enter p2
:try_start_0
sget-object p1, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->PARSER:Landroidx/datastore/preferences/protobuf/Parser;
if-nez p1, :cond_0
.line 378
new-instance p1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$DefaultInstanceBasedParser;
sget-object p3, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-direct {p1, p3}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$DefaultInstanceBasedParser;-><init>(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)V
sput-object p1, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->PARSER:Landroidx/datastore/preferences/protobuf/Parser;
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
.line 383
:cond_0
:goto_0
monitor-exit p2
goto :goto_2
:goto_1
monitor-exit p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
:cond_1
:goto_2
return-object p1
:pswitch_3
sget-object p1, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
return-object p1
:pswitch_4
const-string p1, "preferences_"
.line 360
sget-object p2, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$PreferencesDefaultEntryHolder;->defaultEntry:Landroidx/datastore/preferences/protobuf/MapEntryLite;
filled-new-array {p1, p2}, [Ljava/lang/Object;
move-result-object p1
const-string p2, "\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012"
sget-object p3, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
.line 366
invoke-static {p3, p2, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->newMessageInfo(Landroidx/datastore/preferences/protobuf/MessageLite;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.line 357
:pswitch_5
new-instance p1, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;
invoke-direct {p1, p2}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap$Builder;-><init>(Landroidx/datastore/preferences/PreferencesProto$1;)V
return-object p1
.line 354
:pswitch_6
new-instance p1, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;
invoke-direct {p1}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;-><init>()V
return-object p1
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public getPreferences()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 105
invoke-virtual {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->getPreferencesMap()Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public getPreferencesCount()I
.locals 1
.line 87
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->internalGetPreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
invoke-virtual {v0}, Ljava/util/AbstractMap;->size()I
move-result v0
return v0
.end method
.method public getPreferencesMap()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.line 114
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->internalGetPreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
.line 113
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public getPreferencesOrDefault(Ljava/lang/String;Landroidx/datastore/preferences/PreferencesProto$Value;)Landroidx/datastore/preferences/PreferencesProto$Value;
.locals 2
.line 124
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 126
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->internalGetPreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
.line 127
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
move-object p2, p1
check-cast p2, Landroidx/datastore/preferences/PreferencesProto$Value;
:cond_0
return-object p2
.end method
.method public getPreferencesOrThrow(Ljava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$Value;
.locals 2
.line 136
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 138
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;->internalGetPreferences()Landroidx/datastore/preferences/protobuf/MapFieldLite;
move-result-object v0
.line 139
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 142
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroidx/datastore/preferences/PreferencesProto$Value;
return-object p1
.line 140
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
.end method

View File

@@ -0,0 +1,58 @@
.class public interface abstract Landroidx/datastore/preferences/PreferencesProto$PreferenceMapOrBuilder;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/protobuf/MessageLiteOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "PreferenceMapOrBuilder"
.end annotation
# virtual methods
.method public abstract containsPreferences(Ljava/lang/String;)Z
.end method
.method public abstract getPreferences()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end method
.method public abstract getPreferencesCount()I
.end method
.method public abstract getPreferencesMap()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
">;"
}
.end annotation
.end method
.method public abstract getPreferencesOrDefault(Ljava/lang/String;Landroidx/datastore/preferences/PreferencesProto$Value;)Landroidx/datastore/preferences/PreferencesProto$Value;
.end method
.method public abstract getPreferencesOrThrow(Ljava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$Value;
.end method

View File

@@ -0,0 +1,216 @@
.class public final Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.super Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/PreferencesProto$StringSetOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto$StringSet;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder<",
"Landroidx/datastore/preferences/PreferencesProto$StringSet;",
"Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;",
">;",
"Landroidx/datastore/preferences/PreferencesProto$StringSetOrBuilder;"
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 1
.line 1592
invoke-static {}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->access$2300()Landroidx/datastore/preferences/PreferencesProto$StringSet;
move-result-object v0
invoke-direct {p0, v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;-><init>(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)V
return-void
.end method
.method public synthetic constructor <init>(Landroidx/datastore/preferences/PreferencesProto$1;)V
.locals 0
.line 1585
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;-><init>()V
return-void
.end method
# virtual methods
.method public addAllStrings(Ljava/lang/Iterable;)Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"Ljava/lang/String;",
">;)",
"Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;"
}
.end annotation
.line 1663
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1664
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->access$2600(Landroidx/datastore/preferences/PreferencesProto$StringSet;Ljava/lang/Iterable;)V
return-object p0
.end method
.method public addStrings(Ljava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.locals 1
.line 1652
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1653
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->access$2500(Landroidx/datastore/preferences/PreferencesProto$StringSet;Ljava/lang/String;)V
return-object p0
.end method
.method public addStringsBytes(Landroidx/datastore/preferences/protobuf/ByteString;)Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.locals 1
.line 1683
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1684
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->access$2800(Landroidx/datastore/preferences/PreferencesProto$StringSet;Landroidx/datastore/preferences/protobuf/ByteString;)V
return-object p0
.end method
.method public clearStrings()Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.locals 1
.line 1672
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1673
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->access$2700(Landroidx/datastore/preferences/PreferencesProto$StringSet;)V
return-object p0
.end method
.method public getStrings(I)Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1621
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-virtual {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->getStrings(I)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getStringsBytes(I)Landroidx/datastore/preferences/protobuf/ByteString;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1631
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-virtual {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->getStringsBytes(I)Landroidx/datastore/preferences/protobuf/ByteString;
move-result-object p1
return-object p1
.end method
.method public getStringsCount()I
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1612
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->getStringsCount()I
move-result v0
return v0
.end method
.method public getStringsList()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1603
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1604
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->getStringsList()Ljava/util/List;
move-result-object v0
.line 1603
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public setStrings(ILjava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.locals 1
.line 1641
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1642
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-static {v0, p1, p2}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->access$2400(Landroidx/datastore/preferences/PreferencesProto$StringSet;ILjava/lang/String;)V
return-object p0
.end method

View File

@@ -0,0 +1,768 @@
.class public final Landroidx/datastore/preferences/PreferencesProto$StringSet;
.super Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/PreferencesProto$StringSetOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "StringSet"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/GeneratedMessageLite<",
"Landroidx/datastore/preferences/PreferencesProto$StringSet;",
"Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;",
">;",
"Landroidx/datastore/preferences/PreferencesProto$StringSetOrBuilder;"
}
.end annotation
# static fields
.field private static final DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.field private static volatile PARSER:Landroidx/datastore/preferences/protobuf/Parser; = null
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/Parser<",
"Landroidx/datastore/preferences/PreferencesProto$StringSet;",
">;"
}
.end annotation
.end field
.field public static final STRINGS_FIELD_NUMBER:I = 0x1
# instance fields
.field private strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/Internal$ProtobufList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 2
.line 1743
new-instance v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-direct {v0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;-><init>()V
sput-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
const-class v1, Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1747
invoke-static {v1, v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->registerDefaultInstance(Ljava/lang/Class;Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)V
return-void
.end method
.method private constructor <init>()V
.locals 1
.line 1400
invoke-direct {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;-><init>()V
.line 1401
invoke-static {}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->emptyProtobufList()Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
move-result-object v0
iput-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
return-void
.end method
.method public static synthetic access$2300()Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object v0
.end method
.method public static synthetic access$2400(Landroidx/datastore/preferences/PreferencesProto$StringSet;ILjava/lang/String;)V
.locals 0
.line 1395
invoke-direct {p0, p1, p2}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->setStrings(ILjava/lang/String;)V
return-void
.end method
.method public static synthetic access$2500(Landroidx/datastore/preferences/PreferencesProto$StringSet;Ljava/lang/String;)V
.locals 0
.line 1395
invoke-direct {p0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->addStrings(Ljava/lang/String;)V
return-void
.end method
.method public static synthetic access$2600(Landroidx/datastore/preferences/PreferencesProto$StringSet;Ljava/lang/Iterable;)V
.locals 0
.line 1395
invoke-direct {p0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->addAllStrings(Ljava/lang/Iterable;)V
return-void
.end method
.method public static synthetic access$2700(Landroidx/datastore/preferences/PreferencesProto$StringSet;)V
.locals 0
.line 1395
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->clearStrings()V
return-void
.end method
.method public static synthetic access$2800(Landroidx/datastore/preferences/PreferencesProto$StringSet;Landroidx/datastore/preferences/protobuf/ByteString;)V
.locals 0
.line 1395
invoke-direct {p0, p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->addStringsBytes(Landroidx/datastore/preferences/protobuf/ByteString;)V
return-void
.end method
.method private addAllStrings(Ljava/lang/Iterable;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 1478
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->ensureStringsIsMutable()V
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1479
invoke-static {p1, v0}, Landroidx/datastore/preferences/protobuf/AbstractMessageLite;->addAll(Ljava/lang/Iterable;Ljava/util/List;)V
return-void
.end method
.method private addStrings(Ljava/lang/String;)V
.locals 1
.line 1467
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 1469
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->ensureStringsIsMutable()V
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1470
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private addStringsBytes(Landroidx/datastore/preferences/protobuf/ByteString;)V
.locals 1
.line 1495
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 1497
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->ensureStringsIsMutable()V
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1498
invoke-virtual {p1}, Landroidx/datastore/preferences/protobuf/ByteString;->toStringUtf8()Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private clearStrings()V
.locals 1
.line 1486
invoke-static {}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->emptyProtobufList()Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
move-result-object v0
iput-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
return-void
.end method
.method private ensureStringsIsMutable()V
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1442
invoke-interface {v0}, Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;->isModifiable()Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1444
invoke-static {v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->mutableCopy(Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;)Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
move-result-object v0
iput-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
:cond_0
return-void
.end method
.method public static getDefaultInstance()Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object v0
.end method
.method public static newBuilder()Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1576
invoke-virtual {v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->createBuilder()Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;
move-result-object v0
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
return-object v0
.end method
.method public static newBuilder(Landroidx/datastore/preferences/PreferencesProto$StringSet;)Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1579
invoke-virtual {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->createBuilder(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
return-object p0
.end method
.method public static parseDelimitedFrom(Ljava/io/InputStream;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1553
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseDelimitedFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseDelimitedFrom(Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1559
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseDelimitedFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/ByteString;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1517
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/ByteString;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/ByteString;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1524
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/ByteString;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/CodedInputStream;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1564
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/CodedInputStream;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Landroidx/datastore/preferences/protobuf/CodedInputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1571
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Landroidx/datastore/preferences/protobuf/CodedInputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Ljava/io/InputStream;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1541
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1548
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/io/InputStream;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Ljava/nio/ByteBuffer;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1504
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/nio/ByteBuffer;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom(Ljava/nio/ByteBuffer;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1511
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;Ljava/nio/ByteBuffer;Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom([B)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1529
invoke-static {v0, p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;[B)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parseFrom([BLandroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/datastore/preferences/protobuf/InvalidProtocolBufferException;
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1536
invoke-static {v0, p0, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->parseFrom(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;[BLandroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p0
.end method
.method public static parser()Landroidx/datastore/preferences/protobuf/Parser;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/preferences/protobuf/Parser<",
"Landroidx/datastore/preferences/PreferencesProto$StringSet;",
">;"
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1758
invoke-virtual {v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->getParserForType()Landroidx/datastore/preferences/protobuf/Parser;
move-result-object v0
return-object v0
.end method
.method private setStrings(ILjava/lang/String;)V
.locals 1
.line 1455
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 1457
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$StringSet;->ensureStringsIsMutable()V
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1458
invoke-interface {v0, p1, p2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final dynamicMethod(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$MethodToInvoke;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1695
sget-object p2, Landroidx/datastore/preferences/PreferencesProto$1;->$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke:[I
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
move-result p1
aget p1, p2, p1
const/4 p2, 0x0
packed-switch p1, :pswitch_data_0
.line 1736
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
:pswitch_0
return-object p2
:pswitch_1
const/4 p1, 0x1
.line 1730
invoke-static {p1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object p1
return-object p1
:pswitch_2
sget-object p1, Landroidx/datastore/preferences/PreferencesProto$StringSet;->PARSER:Landroidx/datastore/preferences/protobuf/Parser;
if-nez p1, :cond_1
const-class p2, Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1717
monitor-enter p2
:try_start_0
sget-object p1, Landroidx/datastore/preferences/PreferencesProto$StringSet;->PARSER:Landroidx/datastore/preferences/protobuf/Parser;
if-nez p1, :cond_0
.line 1720
new-instance p1, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$DefaultInstanceBasedParser;
sget-object p3, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-direct {p1, p3}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$DefaultInstanceBasedParser;-><init>(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)V
sput-object p1, Landroidx/datastore/preferences/PreferencesProto$StringSet;->PARSER:Landroidx/datastore/preferences/protobuf/Parser;
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
.line 1725
:cond_0
:goto_0
monitor-exit p2
goto :goto_2
:goto_1
monitor-exit p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
:cond_1
:goto_2
return-object p1
:pswitch_3
sget-object p1, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
return-object p1
:pswitch_4
const-string p1, "strings_"
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string p2, "\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001a"
sget-object p3, Landroidx/datastore/preferences/PreferencesProto$StringSet;->DEFAULT_INSTANCE:Landroidx/datastore/preferences/PreferencesProto$StringSet;
.line 1708
invoke-static {p3, p2, p1}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;->newMessageInfo(Landroidx/datastore/preferences/protobuf/MessageLite;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.line 1700
:pswitch_5
new-instance p1, Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;
invoke-direct {p1, p2}, Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;-><init>(Landroidx/datastore/preferences/PreferencesProto$1;)V
return-object p1
.line 1697
:pswitch_6
new-instance p1, Landroidx/datastore/preferences/PreferencesProto$StringSet;
invoke-direct {p1}, Landroidx/datastore/preferences/PreferencesProto$StringSet;-><init>()V
return-object p1
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public getStrings(I)Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1428
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
return-object p1
.end method
.method public getStringsBytes(I)Landroidx/datastore/preferences/protobuf/ByteString;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1439
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
.line 1438
invoke-static {p1}, Landroidx/datastore/preferences/protobuf/ByteString;->copyFromUtf8(Ljava/lang/String;)Landroidx/datastore/preferences/protobuf/ByteString;
move-result-object p1
return-object p1
.end method
.method public getStringsCount()I
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
.line 1419
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
return v0
.end method
.method public getStringsList()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/PreferencesProto$StringSet;->strings_:Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;
return-object v0
.end method

View File

@@ -0,0 +1,39 @@
.class public interface abstract Landroidx/datastore/preferences/PreferencesProto$StringSetOrBuilder;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/protobuf/MessageLiteOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "StringSetOrBuilder"
.end annotation
# virtual methods
.method public abstract getStrings(I)Ljava/lang/String;
.end method
.method public abstract getStringsBytes(I)Landroidx/datastore/preferences/protobuf/ByteString;
.end method
.method public abstract getStringsCount()I
.end method
.method public abstract getStringsList()Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end method

View File

@@ -0,0 +1,581 @@
.class public final Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.super Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/PreferencesProto$ValueOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto$Value;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder<",
"Landroidx/datastore/preferences/PreferencesProto$Value;",
"Landroidx/datastore/preferences/PreferencesProto$Value$Builder;",
">;",
"Landroidx/datastore/preferences/PreferencesProto$ValueOrBuilder;"
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 1
.line 984
invoke-static {}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$300()Landroidx/datastore/preferences/PreferencesProto$Value;
move-result-object v0
invoke-direct {p0, v0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;-><init>(Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;)V
return-void
.end method
.method public synthetic constructor <init>(Landroidx/datastore/preferences/PreferencesProto$1;)V
.locals 0
.line 977
invoke-direct {p0}, Landroidx/datastore/preferences/PreferencesProto$Value$Builder;-><init>()V
return-void
.end method
# virtual methods
.method public clearBoolean()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1031
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1032
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$600(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public clearDouble()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1280
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1281
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$2100(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public clearFloat()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1067
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1068
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$800(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public clearInteger()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1103
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1104
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1000(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public clearLong()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1139
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1140
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1200(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public clearString()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1185
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1186
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1400(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public clearStringSet()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1244
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1245
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1900(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public clearValue()Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 994
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 995
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$400(Landroidx/datastore/preferences/PreferencesProto$Value;)V
return-object p0
.end method
.method public getBoolean()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1014
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getBoolean()Z
move-result v0
return v0
.end method
.method public getDouble()D
.locals 2
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1263
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getDouble()D
move-result-wide v0
return-wide v0
.end method
.method public getFloat()F
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1050
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getFloat()F
move-result v0
return v0
.end method
.method public getInteger()I
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1086
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getInteger()I
move-result v0
return v0
.end method
.method public getLong()J
.locals 2
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1122
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getLong()J
move-result-wide v0
return-wide v0
.end method
.method public getString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1158
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getStringBytes()Landroidx/datastore/preferences/protobuf/ByteString;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1167
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getStringBytes()Landroidx/datastore/preferences/protobuf/ByteString;
move-result-object v0
return-object v0
.end method
.method public getStringSet()Landroidx/datastore/preferences/PreferencesProto$StringSet;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1213
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getStringSet()Landroidx/datastore/preferences/PreferencesProto$StringSet;
move-result-object v0
return-object v0
.end method
.method public getValueCase()Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 990
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->getValueCase()Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
move-result-object v0
return-object v0
.end method
.method public hasBoolean()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1006
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->hasBoolean()Z
move-result v0
return v0
.end method
.method public hasDouble()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1255
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->hasDouble()Z
move-result v0
return v0
.end method
.method public hasFloat()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1042
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->hasFloat()Z
move-result v0
return v0
.end method
.method public hasInteger()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1078
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->hasInteger()Z
move-result v0
return v0
.end method
.method public hasLong()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1114
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->hasLong()Z
move-result v0
return v0
.end method
.method public hasString()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1150
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->hasString()Z
move-result v0
return v0
.end method
.method public hasStringSet()Z
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1206
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-virtual {v0}, Landroidx/datastore/preferences/PreferencesProto$Value;->hasStringSet()Z
move-result v0
return v0
.end method
.method public mergeStringSet(Landroidx/datastore/preferences/PreferencesProto$StringSet;)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1236
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1237
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1800(Landroidx/datastore/preferences/PreferencesProto$Value;Landroidx/datastore/preferences/PreferencesProto$StringSet;)V
return-object p0
.end method
.method public setBoolean(Z)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1022
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1023
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$500(Landroidx/datastore/preferences/PreferencesProto$Value;Z)V
return-object p0
.end method
.method public setDouble(D)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1271
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1272
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1, p2}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$2000(Landroidx/datastore/preferences/PreferencesProto$Value;D)V
return-object p0
.end method
.method public setFloat(F)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1058
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1059
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$700(Landroidx/datastore/preferences/PreferencesProto$Value;F)V
return-object p0
.end method
.method public setInteger(I)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1094
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1095
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$900(Landroidx/datastore/preferences/PreferencesProto$Value;I)V
return-object p0
.end method
.method public setLong(J)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1130
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1131
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1, p2}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1100(Landroidx/datastore/preferences/PreferencesProto$Value;J)V
return-object p0
.end method
.method public setString(Ljava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1176
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1177
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1300(Landroidx/datastore/preferences/PreferencesProto$Value;Ljava/lang/String;)V
return-object p0
.end method
.method public setStringBytes(Landroidx/datastore/preferences/protobuf/ByteString;)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1196
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1197
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1500(Landroidx/datastore/preferences/PreferencesProto$Value;Landroidx/datastore/preferences/protobuf/ByteString;)V
return-object p0
.end method
.method public setStringSet(Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1228
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1229
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1700(Landroidx/datastore/preferences/PreferencesProto$Value;Landroidx/datastore/preferences/PreferencesProto$StringSet$Builder;)V
return-object p0
.end method
.method public setStringSet(Landroidx/datastore/preferences/PreferencesProto$StringSet;)Landroidx/datastore/preferences/PreferencesProto$Value$Builder;
.locals 1
.line 1219
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->copyOnWrite()V
iget-object v0, p0, Landroidx/datastore/preferences/protobuf/GeneratedMessageLite$Builder;->instance:Landroidx/datastore/preferences/protobuf/GeneratedMessageLite;
.line 1220
check-cast v0, Landroidx/datastore/preferences/PreferencesProto$Value;
invoke-static {v0, p1}, Landroidx/datastore/preferences/PreferencesProto$Value;->access$1600(Landroidx/datastore/preferences/PreferencesProto$Value;Landroidx/datastore/preferences/PreferencesProto$StringSet;)V
return-object p0
.end method

View File

@@ -0,0 +1,293 @@
.class public final enum Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto$Value;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "ValueCase"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum BOOLEAN:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum DOUBLE:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum FLOAT:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum INTEGER:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum LONG:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum STRING:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum STRING_SET:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.field public static final enum VALUE_NOT_SET:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
# instance fields
.field private final value:I
# direct methods
.method static constructor <clinit>()V
.locals 11
.line 523
new-instance v0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v1, "BOOLEAN"
const/4 v2, 0x0
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->BOOLEAN:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 524
new-instance v1, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v4, "FLOAT"
const/4 v5, 0x2
invoke-direct {v1, v4, v3, v5}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v1, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->FLOAT:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 525
new-instance v3, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v4, "INTEGER"
const/4 v6, 0x3
invoke-direct {v3, v4, v5, v6}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v3, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->INTEGER:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 526
new-instance v4, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v5, "LONG"
const/4 v7, 0x4
invoke-direct {v4, v5, v6, v7}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v4, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->LONG:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 527
new-instance v5, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v6, "STRING"
const/4 v8, 0x5
invoke-direct {v5, v6, v7, v8}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v5, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->STRING:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 528
new-instance v6, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v7, "STRING_SET"
const/4 v9, 0x6
invoke-direct {v6, v7, v8, v9}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v6, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->STRING_SET:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 529
new-instance v7, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v8, "DOUBLE"
const/4 v10, 0x7
invoke-direct {v7, v8, v9, v10}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v7, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->DOUBLE:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 530
new-instance v8, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
const-string v9, "VALUE_NOT_SET"
invoke-direct {v8, v9, v10, v2}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;-><init>(Ljava/lang/String;II)V
sput-object v8, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->VALUE_NOT_SET:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
move-object v2, v3
move-object v3, v4
move-object v4, v5
move-object v5, v6
move-object v6, v7
move-object v7, v8
filled-new-array/range {v0 .. v7}, [Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
move-result-object v0
sput-object v0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->$VALUES:[Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 532
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->value:I
return-void
.end method
.method public static forNumber(I)Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.locals 0
packed-switch p0, :pswitch_data_0
const/4 p0, 0x0
return-object p0
:pswitch_0
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->DOUBLE:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
:pswitch_1
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->STRING_SET:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
:pswitch_2
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->STRING:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
:pswitch_3
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->LONG:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
:pswitch_4
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->INTEGER:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
:pswitch_5
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->FLOAT:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
:pswitch_6
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->BOOLEAN:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
:pswitch_7
sget-object p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->VALUE_NOT_SET:Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
nop
:pswitch_data_0
.packed-switch 0x0
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public static valueOf(I)Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 540
invoke-static {p0}, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->forNumber(I)Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
move-result-object p0
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.locals 1
const-class v0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 522
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object p0
.end method
.method public static values()[Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.locals 1
sget-object v0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->$VALUES:[Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.line 522
invoke-virtual {v0}, [Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
return-object v0
.end method
# virtual methods
.method public getNumber()I
.locals 1
iget v0, p0, Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;->value:I
return v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,67 @@
.class public interface abstract Landroidx/datastore/preferences/PreferencesProto$ValueOrBuilder;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/preferences/protobuf/MessageLiteOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/PreferencesProto;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ValueOrBuilder"
.end annotation
# virtual methods
.method public abstract getBoolean()Z
.end method
.method public abstract getDouble()D
.end method
.method public abstract getFloat()F
.end method
.method public abstract getInteger()I
.end method
.method public abstract getLong()J
.end method
.method public abstract getString()Ljava/lang/String;
.end method
.method public abstract getStringBytes()Landroidx/datastore/preferences/protobuf/ByteString;
.end method
.method public abstract getStringSet()Landroidx/datastore/preferences/PreferencesProto$StringSet;
.end method
.method public abstract getValueCase()Landroidx/datastore/preferences/PreferencesProto$Value$ValueCase;
.end method
.method public abstract hasBoolean()Z
.end method
.method public abstract hasDouble()Z
.end method
.method public abstract hasFloat()Z
.end method
.method public abstract hasInteger()Z
.end method
.method public abstract hasLong()Z
.end method
.method public abstract hasString()Z
.end method
.method public abstract hasStringSet()Z
.end method

View File

@@ -0,0 +1,39 @@
.class public final Landroidx/datastore/preferences/PreferencesProto;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/preferences/PreferencesProto$StringSet;,
Landroidx/datastore/preferences/PreferencesProto$StringSetOrBuilder;,
Landroidx/datastore/preferences/PreferencesProto$Value;,
Landroidx/datastore/preferences/PreferencesProto$ValueOrBuilder;,
Landroidx/datastore/preferences/PreferencesProto$PreferenceMap;,
Landroidx/datastore/preferences/PreferencesProto$PreferenceMapOrBuilder;
}
.end annotation
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static registerAllExtensions(Landroidx/datastore/preferences/protobuf/ExtensionRegistryLite;)V
.locals 0
return-void
.end method

View File

@@ -0,0 +1,13 @@
.class public final Landroidx/datastore/preferences/R;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,413 @@
.class final Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function3;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getMigrationFunction()Lkotlin/jvm/functions/Function3;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function3;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.preferences.SharedPreferencesMigrationKt$getMigrationFunction$1"
f = "SharedPreferencesMigration.kt"
l = {}
m = "invokeSuspend"
.end annotation
# instance fields
.field synthetic L$0:Ljava/lang/Object;
.field synthetic L$1:Ljava/lang/Object;
.field label:I
# direct methods
.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
const/4 v0, 0x3
invoke-direct {p0, v0, p1}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final invoke(Landroidx/datastore/migrations/SharedPreferencesView;Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/migrations/SharedPreferencesView;",
"Landroidx/datastore/preferences/core/Preferences;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
new-instance v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;
invoke-direct {v0, p3}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;-><init>(Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;->L$0:Ljava/lang/Object;
iput-object p2, v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;->L$1:Ljava/lang/Object;
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {v0, p1}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Landroidx/datastore/migrations/SharedPreferencesView;
check-cast p2, Landroidx/datastore/preferences/core/Preferences;
check-cast p3, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2, p3}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;->invoke(Landroidx/datastore/migrations/SharedPreferencesView;Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 5
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
iget v0, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;->label:I
if-nez v0, :cond_b
.line 102
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/migrations/SharedPreferencesView;
iget-object v0, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;->L$1:Ljava/lang/Object;
check-cast v0, Landroidx/datastore/preferences/core/Preferences;
.line 105
invoke-virtual {v0}, Landroidx/datastore/preferences/core/Preferences;->asMap()Ljava/util/Map;
move-result-object v1
invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v1
.line 155
new-instance v2, Ljava/util/ArrayList;
const/16 v3, 0xa
invoke-static {v1, v3}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v3
invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(I)V
.line 156
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_0
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
.line 157
check-cast v3, Landroidx/datastore/preferences/core/Preferences$Key;
.line 105
invoke-virtual {v3}, Landroidx/datastore/preferences/core/Preferences$Key;->getName()Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 108
:cond_0
invoke-virtual {p1}, Landroidx/datastore/migrations/SharedPreferencesView;->getAll()Ljava/util/Map;
move-result-object p1
.line 159
new-instance v1, Ljava/util/LinkedHashMap;
invoke-direct {v1}, Ljava/util/LinkedHashMap;-><init>()V
.line 494
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p1
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1
:goto_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/Map$Entry;
.line 108
invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
invoke-interface {v2, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v4
xor-int/lit8 v4, v4, 0x1
invoke-static {v4}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z
move-result v4
if-eqz v4, :cond_1
.line 496
invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v3
invoke-interface {v1, v4, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
.line 110
:cond_2
invoke-virtual {v0}, Landroidx/datastore/preferences/core/Preferences;->toMutablePreferences()Landroidx/datastore/preferences/core/MutablePreferences;
move-result-object p1
.line 111
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_3
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_a
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/Map$Entry;
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
.line 113
instance-of v3, v1, Ljava/lang/Boolean;
if-eqz v3, :cond_4
.line 114
invoke-static {v2}, Landroidx/datastore/preferences/core/PreferencesKeys;->booleanKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
move-result-object v2
.line 113
invoke-virtual {p1, v2, v1}, Landroidx/datastore/preferences/core/MutablePreferences;->set(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
goto :goto_2
.line 116
:cond_4
instance-of v3, v1, Ljava/lang/Float;
if-eqz v3, :cond_5
.line 117
invoke-static {v2}, Landroidx/datastore/preferences/core/PreferencesKeys;->floatKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
move-result-object v2
.line 116
invoke-virtual {p1, v2, v1}, Landroidx/datastore/preferences/core/MutablePreferences;->set(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
goto :goto_2
.line 119
:cond_5
instance-of v3, v1, Ljava/lang/Integer;
if-eqz v3, :cond_6
.line 120
invoke-static {v2}, Landroidx/datastore/preferences/core/PreferencesKeys;->intKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
move-result-object v2
.line 119
invoke-virtual {p1, v2, v1}, Landroidx/datastore/preferences/core/MutablePreferences;->set(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
goto :goto_2
.line 122
:cond_6
instance-of v3, v1, Ljava/lang/Long;
if-eqz v3, :cond_7
.line 123
invoke-static {v2}, Landroidx/datastore/preferences/core/PreferencesKeys;->longKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
move-result-object v2
.line 122
invoke-virtual {p1, v2, v1}, Landroidx/datastore/preferences/core/MutablePreferences;->set(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
goto :goto_2
.line 125
:cond_7
instance-of v3, v1, Ljava/lang/String;
if-eqz v3, :cond_8
.line 126
invoke-static {v2}, Landroidx/datastore/preferences/core/PreferencesKeys;->stringKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
move-result-object v2
.line 125
invoke-virtual {p1, v2, v1}, Landroidx/datastore/preferences/core/MutablePreferences;->set(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
goto :goto_2
.line 128
:cond_8
instance-of v3, v1, Ljava/util/Set;
if-eqz v3, :cond_3
.line 131
invoke-static {v2}, Landroidx/datastore/preferences/core/PreferencesKeys;->stringSetKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
move-result-object v2
if-eqz v1, :cond_9
.line 132
check-cast v1, Ljava/util/Set;
.line 130
invoke-virtual {p1, v2, v1}, Landroidx/datastore/preferences/core/MutablePreferences;->set(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
goto :goto_2
.line 132
:cond_9
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "null cannot be cast to non-null type kotlin.collections.Set<kotlin.String>"
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.line 137
:cond_a
invoke-virtual {p1}, Landroidx/datastore/preferences/core/Preferences;->toPreferences()Landroidx/datastore/preferences/core/Preferences;
move-result-object p1
return-object p1
:cond_b
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,293 @@
.class final Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getShouldRunMigration(Ljava/util/Set;)Lkotlin/jvm/functions/Function2;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.preferences.SharedPreferencesMigrationKt$getShouldRunMigration$1"
f = "SharedPreferencesMigration.kt"
l = {}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $keysToMigrate:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field synthetic L$0:Ljava/lang/Object;
.field label:I
# direct methods
.method public constructor <init>(Ljava/util/Set;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->$keysToMigrate:Ljava/util/Set;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;
iget-object v1, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->$keysToMigrate:Ljava/util/Set;
invoke-direct {v0, v1, p2}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;-><init>(Ljava/util/Set;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public final invoke(Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/preferences/core/Preferences;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Landroidx/datastore/preferences/core/Preferences;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->invoke(Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
iget v0, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->label:I
if-nez v0, :cond_5
.line 141
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/preferences/core/Preferences;
.line 144
invoke-virtual {p1}, Landroidx/datastore/preferences/core/Preferences;->asMap()Ljava/util/Map;
move-result-object p1
invoke-interface {p1}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object p1
.line 155
new-instance v0, Ljava/util/ArrayList;
const/16 v1, 0xa
invoke-static {p1, v1}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
move-result v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
.line 156
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 157
check-cast v1, Landroidx/datastore/preferences/core/Preferences$Key;
.line 144
invoke-virtual {v1}, Landroidx/datastore/preferences/core/Preferences$Key;->getName()Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
iget-object p1, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->$keysToMigrate:Ljava/util/Set;
.line 146
invoke-static {}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getMIGRATE_ALL_KEYS()Ljava/util/Set;
move-result-object v1
const/4 v2, 0x1
if-ne p1, v1, :cond_1
goto :goto_1
:cond_1
iget-object p1, p0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;->$keysToMigrate:Ljava/util/Set;
.line 159
instance-of v1, p1, Ljava/util/Collection;
const/4 v3, 0x0
if-eqz v1, :cond_3
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
move-result v1
if-eqz v1, :cond_3
:cond_2
move v2, v3
goto :goto_1
.line 160
:cond_3
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_4
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
.line 149
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v1
xor-int/2addr v1, v2
invoke-static {v1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_4
.line 161
:goto_1
invoke-static {v2}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.line 146
:cond_5
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,367 @@
.class public final Landroidx/datastore/preferences/SharedPreferencesMigrationKt;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final MIGRATE_ALL_KEYS:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 153
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
sput-object v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
return-void
.end method
.method public static final SharedPreferencesMigration(Landroid/content/Context;Ljava/lang/String;)Landroidx/datastore/migrations/SharedPreferencesMigration;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
")",
"Landroidx/datastore/migrations/SharedPreferencesMigration<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.line 0
const-string v0, "context"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "sharedPreferencesName"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const/4 v1, 0x4
invoke-static {p0, p1, v0, v1, v0}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->SharedPreferencesMigration$default(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;ILjava/lang/Object;)Landroidx/datastore/migrations/SharedPreferencesMigration;
move-result-object p0
return-object p0
.end method
.method public static final SharedPreferencesMigration(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;)Landroidx/datastore/migrations/SharedPreferencesMigration;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;)",
"Landroidx/datastore/migrations/SharedPreferencesMigration<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
const-string v0, "context"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "sharedPreferencesName"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "keysToMigrate"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
if-ne p2, v0, :cond_0
.line 85
new-instance v0, Landroidx/datastore/migrations/SharedPreferencesMigration;
const/4 v5, 0x0
.line 88
invoke-static {p2}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getShouldRunMigration(Ljava/util/Set;)Lkotlin/jvm/functions/Function2;
move-result-object v6
.line 89
invoke-static {}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getMigrationFunction()Lkotlin/jvm/functions/Function3;
move-result-object v7
const/4 v8, 0x4
const/4 v9, 0x0
move-object v1, v0
move-object v2, p0
move-object v3, p1
move-object v4, v5
move-object v5, v6
move-object v6, v7
move v7, v8
move-object v8, v9
.line 85
invoke-direct/range {v1 .. v8}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
goto :goto_0
.line 92
:cond_0
new-instance v6, Landroidx/datastore/migrations/SharedPreferencesMigration;
.line 96
invoke-static {p2}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getShouldRunMigration(Ljava/util/Set;)Lkotlin/jvm/functions/Function2;
move-result-object v5
.line 97
invoke-static {}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getMigrationFunction()Lkotlin/jvm/functions/Function3;
move-result-object v7
move-object v0, v6
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v4, v5
move-object v5, v7
.line 92
invoke-direct/range {v0 .. v5}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;)V
:goto_0
return-object v0
.end method
.method public static final SharedPreferencesMigration(Lkotlin/jvm/functions/Function0;)Landroidx/datastore/migrations/SharedPreferencesMigration;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/migrations/SharedPreferencesMigration<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.line 0
const-string v0, "produceSharedPreferences"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const/4 v1, 0x2
invoke-static {p0, v0, v1, v0}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->SharedPreferencesMigration$default(Lkotlin/jvm/functions/Function0;Ljava/util/Set;ILjava/lang/Object;)Landroidx/datastore/migrations/SharedPreferencesMigration;
move-result-object p0
return-object p0
.end method
.method public static final SharedPreferencesMigration(Lkotlin/jvm/functions/Function0;Ljava/util/Set;)Landroidx/datastore/migrations/SharedPreferencesMigration;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;)",
"Landroidx/datastore/migrations/SharedPreferencesMigration<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
const-string v0, "produceSharedPreferences"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "keysToMigrate"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
if-ne p1, v0, :cond_0
.line 50
new-instance v0, Landroidx/datastore/migrations/SharedPreferencesMigration;
const/4 v3, 0x0
.line 52
invoke-static {p1}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getShouldRunMigration(Ljava/util/Set;)Lkotlin/jvm/functions/Function2;
move-result-object v4
.line 53
invoke-static {}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getMigrationFunction()Lkotlin/jvm/functions/Function3;
move-result-object v5
const/4 v6, 0x2
const/4 v7, 0x0
move-object v1, v0
move-object v2, p0
.line 50
invoke-direct/range {v1 .. v7}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
goto :goto_0
.line 56
:cond_0
new-instance v0, Landroidx/datastore/migrations/SharedPreferencesMigration;
.line 59
invoke-static {p1}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getShouldRunMigration(Ljava/util/Set;)Lkotlin/jvm/functions/Function2;
move-result-object v1
.line 60
invoke-static {}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->getMigrationFunction()Lkotlin/jvm/functions/Function3;
move-result-object v2
.line 56
invoke-direct {v0, p0, p1, v1, v2}, Landroidx/datastore/migrations/SharedPreferencesMigration;-><init>(Lkotlin/jvm/functions/Function0;Ljava/util/Set;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;)V
:goto_0
return-object v0
.end method
.method public static synthetic SharedPreferencesMigration$default(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;ILjava/lang/Object;)Landroidx/datastore/migrations/SharedPreferencesMigration;
.locals 0
and-int/lit8 p3, p3, 0x4
if-eqz p3, :cond_0
sget-object p2, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
.line 79
:cond_0
invoke-static {p0, p1, p2}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->SharedPreferencesMigration(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;)Landroidx/datastore/migrations/SharedPreferencesMigration;
move-result-object p0
return-object p0
.end method
.method public static synthetic SharedPreferencesMigration$default(Lkotlin/jvm/functions/Function0;Ljava/util/Set;ILjava/lang/Object;)Landroidx/datastore/migrations/SharedPreferencesMigration;
.locals 0
and-int/lit8 p2, p2, 0x2
if-eqz p2, :cond_0
sget-object p1, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
.line 45
:cond_0
invoke-static {p0, p1}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->SharedPreferencesMigration(Lkotlin/jvm/functions/Function0;Ljava/util/Set;)Landroidx/datastore/migrations/SharedPreferencesMigration;
move-result-object p0
return-object p0
.end method
.method public static final getMIGRATE_ALL_KEYS()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
sget-object v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt;->MIGRATE_ALL_KEYS:Ljava/util/Set;
return-object v0
.end method
.method private static final getMigrationFunction()Lkotlin/jvm/functions/Function3;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlin/jvm/functions/Function3;"
}
.end annotation
.line 102
new-instance v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getMigrationFunction$1;-><init>(Lkotlin/coroutines/Continuation;)V
return-object v0
.end method
.method private static final getShouldRunMigration(Ljava/util/Set;)Lkotlin/jvm/functions/Function2;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;)",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.line 141
new-instance v0, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Landroidx/datastore/preferences/SharedPreferencesMigrationKt$getShouldRunMigration$1;-><init>(Ljava/util/Set;Lkotlin/coroutines/Continuation;)V
return-object v0
.end method

View File

@@ -0,0 +1,123 @@
.class final Landroidx/datastore/preferences/core/MutablePreferences$toString$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/core/MutablePreferences;->toString()Ljava/lang/String;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function1;"
}
.end annotation
# static fields
.field public static final INSTANCE:Landroidx/datastore/preferences/core/MutablePreferences$toString$1;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/preferences/core/MutablePreferences$toString$1;
invoke-direct {v0}, Landroidx/datastore/preferences/core/MutablePreferences$toString$1;-><init>()V
sput-object v0, Landroidx/datastore/preferences/core/MutablePreferences$toString$1;->INSTANCE:Landroidx/datastore/preferences/core/MutablePreferences$toString$1;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public final invoke(Ljava/util/Map$Entry;)Ljava/lang/CharSequence;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map$Entry<",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;",
"Ljava/lang/Object;",
">;)",
"Ljava/lang/CharSequence;"
}
.end annotation
const-string v0, "entry"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 287
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, " "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-virtual {v1}, Landroidx/datastore/preferences/core/Preferences$Key;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 286
check-cast p1, Ljava/util/Map$Entry;
invoke-virtual {p0, p1}, Landroidx/datastore/preferences/core/MutablePreferences$toString$1;->invoke(Ljava/util/Map$Entry;)Ljava/lang/CharSequence;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,554 @@
.class public final Landroidx/datastore/preferences/core/MutablePreferences;
.super Landroidx/datastore/preferences/core/Preferences;
.source "SourceFile"
# instance fields
.field private final frozen:Ljava/util/concurrent/atomic/AtomicBoolean;
.field private final preferencesMap:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 3
.line 0
const/4 v0, 0x0
const/4 v1, 0x3
const/4 v2, 0x0
invoke-direct {p0, v2, v0, v1, v2}, Landroidx/datastore/preferences/core/MutablePreferences;-><init>(Ljava/util/Map;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>(Ljava/util/Map;Z)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;",
"Ljava/lang/Object;",
">;Z)V"
}
.end annotation
const-string v0, "preferencesMap"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 129
invoke-direct {p0}, Landroidx/datastore/preferences/core/Preferences;-><init>()V
iput-object p1, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 134
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
iput-object p1, p0, Landroidx/datastore/preferences/core/MutablePreferences;->frozen:Ljava/util/concurrent/atomic/AtomicBoolean;
return-void
.end method
.method public synthetic constructor <init>(Ljava/util/Map;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
and-int/lit8 p4, p3, 0x1
if-eqz p4, :cond_0
.line 127
new-instance p1, Ljava/util/LinkedHashMap;
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
:cond_0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_1
const/4 p2, 0x1
.line 126
:cond_1
invoke-direct {p0, p1, p2}, Landroidx/datastore/preferences/core/MutablePreferences;-><init>(Ljava/util/Map;Z)V
return-void
.end method
# virtual methods
.method public asMap()Ljava/util/Map;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 157
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
const-string v1, "unmodifiableMap(preferencesMap)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method
.method public final checkNotFrozen$datastore_preferences_core()V
.locals 2
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->frozen:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 137
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Do mutate preferences once returned to DataStore."
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final clear()V
.locals 1
.line 262
invoke-virtual {p0}, Landroidx/datastore/preferences/core/MutablePreferences;->checkNotFrozen$datastore_preferences_core()V
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 263
invoke-interface {v0}, Ljava/util/Map;->clear()V
return-void
.end method
.method public contains(Landroidx/datastore/preferences/core/Preferences$Key;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;)Z"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 148
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
.line 268
instance-of v0, p1, Landroidx/datastore/preferences/core/MutablePreferences;
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 269
check-cast p1, Landroidx/datastore/preferences/core/MutablePreferences;
iget-object p1, p1, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public final freeze$datastore_preferences_core()V
.locals 2
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->frozen:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
.line 144
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
return-void
.end method
.method public get(Landroidx/datastore/preferences/core/Preferences$Key;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;)TT;"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 153
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final getPreferencesMap$datastore_preferences_core()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
return-object v0
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 275
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
return v0
.end method
.method public final minusAssign(Landroidx/datastore/preferences/core/Preferences$Key;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;)V"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 232
invoke-virtual {p0}, Landroidx/datastore/preferences/core/MutablePreferences;->checkNotFrozen$datastore_preferences_core()V
.line 233
invoke-virtual {p0, p1}, Landroidx/datastore/preferences/core/MutablePreferences;->remove(Landroidx/datastore/preferences/core/Preferences$Key;)Ljava/lang/Object;
return-void
.end method
.method public final plusAssign(Landroidx/datastore/preferences/core/Preferences$Pair;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/preferences/core/Preferences$Pair<",
"*>;)V"
}
.end annotation
const-string v0, "pair"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 218
invoke-virtual {p0}, Landroidx/datastore/preferences/core/MutablePreferences;->checkNotFrozen$datastore_preferences_core()V
filled-new-array {p1}, [Landroidx/datastore/preferences/core/Preferences$Pair;
move-result-object p1
.line 219
invoke-virtual {p0, p1}, Landroidx/datastore/preferences/core/MutablePreferences;->putAll([Landroidx/datastore/preferences/core/Preferences$Pair;)V
return-void
.end method
.method public final plusAssign(Landroidx/datastore/preferences/core/Preferences;)V
.locals 1
const-string v0, "prefs"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 205
invoke-virtual {p0}, Landroidx/datastore/preferences/core/MutablePreferences;->checkNotFrozen$datastore_preferences_core()V
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 206
invoke-virtual {p1}, Landroidx/datastore/preferences/core/Preferences;->asMap()Ljava/util/Map;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
return-void
.end method
.method public final varargs putAll([Landroidx/datastore/preferences/core/Preferences$Pair;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Landroidx/datastore/preferences/core/Preferences$Pair<",
"*>;)V"
}
.end annotation
const-string v0, "pairs"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 242
invoke-virtual {p0}, Landroidx/datastore/preferences/core/MutablePreferences;->checkNotFrozen$datastore_preferences_core()V
.line 334
array-length v0, p1
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
aget-object v2, p1, v1
.line 244
invoke-virtual {v2}, Landroidx/datastore/preferences/core/Preferences$Pair;->getKey$datastore_preferences_core()Landroidx/datastore/preferences/core/Preferences$Key;
move-result-object v3
invoke-virtual {v2}, Landroidx/datastore/preferences/core/Preferences$Pair;->getValue$datastore_preferences_core()Ljava/lang/Object;
move-result-object v2
invoke-virtual {p0, v3, v2}, Landroidx/datastore/preferences/core/MutablePreferences;->setUnchecked$datastore_preferences_core(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public final remove(Landroidx/datastore/preferences/core/Preferences$Key;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;)TT;"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 256
invoke-virtual {p0}, Landroidx/datastore/preferences/core/MutablePreferences;->checkNotFrozen$datastore_preferences_core()V
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 257
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final set(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;TT;)V"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 177
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/core/MutablePreferences;->setUnchecked$datastore_preferences_core(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
return-void
.end method
.method public final setUnchecked$datastore_preferences_core(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;",
"Ljava/lang/Object;",
")V"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 184
invoke-virtual {p0}, Landroidx/datastore/preferences/core/MutablePreferences;->checkNotFrozen$datastore_preferences_core()V
if-nez p2, :cond_0
.line 187
invoke-virtual {p0, p1}, Landroidx/datastore/preferences/core/MutablePreferences;->remove(Landroidx/datastore/preferences/core/Preferences$Key;)Ljava/lang/Object;
goto :goto_0
.line 190
:cond_0
instance-of v0, p2, Ljava/util/Set;
if-eqz v0, :cond_1
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
check-cast p2, Ljava/lang/Iterable;
invoke-static {p2}, Lkotlin/collections/CollectionsKt;->toSet(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object p2
invoke-static {p2}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object p2
const-string v1, "unmodifiableSet(value.toSet())"
invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_1
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 191
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:goto_0
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 10
iget-object v0, p0, Landroidx/datastore/preferences/core/MutablePreferences;->preferencesMap:Ljava/util/Map;
.line 282
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
const-string v2, ",\n"
const-string v3, "{\n"
const-string v4, "\n}"
const/4 v5, 0x0
const/4 v6, 0x0
sget-object v7, Landroidx/datastore/preferences/core/MutablePreferences$toString$1;->INSTANCE:Landroidx/datastore/preferences/core/MutablePreferences$toString$1;
const/16 v8, 0x18
const/4 v9, 0x0
invoke-static/range {v1 .. v9}, Lkotlin/collections/CollectionsKt;->joinToString$default(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,203 @@
.class final Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/core/PreferenceDataStore;->updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.preferences.core.PreferenceDataStore$updateData$2"
f = "PreferenceDataStoreFactory.kt"
l = {
0x55
}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $transform:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.end field
.field synthetic L$0:Ljava/lang/Object;
.field label:I
# direct methods
.method public constructor <init>(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->$transform:Lkotlin/jvm/functions/Function2;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;
iget-object v1, p0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->$transform:Lkotlin/jvm/functions/Function2;
invoke-direct {v0, v1, p2}, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;-><init>(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public final invoke(Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/preferences/core/Preferences;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Landroidx/datastore/preferences/core/Preferences;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->invoke(Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-ne v1, v2, :cond_0
.line 84
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_0
.line 91
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 84
:cond_1
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/preferences/core/Preferences;
iget-object v1, p0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->$transform:Lkotlin/jvm/functions/Function2;
iput v2, p0, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;->label:I
.line 85
invoke-interface {v1, p1, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_2
return-object v0
.line 84
:cond_2
:goto_0
check-cast p1, Landroidx/datastore/preferences/core/Preferences;
.line 90
move-object v0, p1
check-cast v0, Landroidx/datastore/preferences/core/MutablePreferences;
invoke-virtual {v0}, Landroidx/datastore/preferences/core/MutablePreferences;->freeze$datastore_preferences_core()V
return-object p1
.end method

View File

@@ -0,0 +1,102 @@
.class public final Landroidx/datastore/preferences/core/PreferenceDataStore;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/datastore/core/DataStore;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
# instance fields
.field private final delegate:Landroidx/datastore/core/DataStore;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/core/DataStore;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;)V"
}
.end annotation
const-string v0, "delegate"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 80
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/preferences/core/PreferenceDataStore;->delegate:Landroidx/datastore/core/DataStore;
return-void
.end method
# virtual methods
.method public getData()Lkotlinx/coroutines/flow/Flow;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlinx/coroutines/flow/Flow;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/core/PreferenceDataStore;->delegate:Landroidx/datastore/core/DataStore;
invoke-interface {v0}, Landroidx/datastore/core/DataStore;->getData()Lkotlinx/coroutines/flow/Flow;
move-result-object v0
return-object v0
.end method
.method public updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/core/PreferenceDataStore;->delegate:Landroidx/datastore/core/DataStore;
.line 84
new-instance v1, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Landroidx/datastore/preferences/core/PreferenceDataStore$updateData$2;-><init>(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)V
invoke-interface {v0, v1, p2}, Landroidx/datastore/core/DataStore;->updateData(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,139 @@
.class final Landroidx/datastore/preferences/core/PreferenceDataStoreFactory$create$delegate$1;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->create(Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function0;"
}
.end annotation
# instance fields
.field final synthetic $produceFile:Lkotlin/jvm/functions/Function0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function0;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkotlin/jvm/functions/Function0;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory$create$delegate$1;->$produceFile:Lkotlin/jvm/functions/Function0;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public final invoke()Ljava/io/File;
.locals 4
iget-object v0, p0, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory$create$delegate$1;->$produceFile:Lkotlin/jvm/functions/Function0;
.line 69
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/io/File;
.line 70
invoke-static {v0}, Lkotlin/io/FilesKt;->getExtension(Ljava/io/File;)Ljava/lang/String;
move-result-object v1
sget-object v2, Landroidx/datastore/preferences/core/PreferencesSerializer;->INSTANCE:Landroidx/datastore/preferences/core/PreferencesSerializer;
invoke-virtual {v2}, Landroidx/datastore/preferences/core/PreferencesSerializer;->getFileExtension()Ljava/lang/String;
move-result-object v3
invoke-static {v1, v3}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
return-object v0
.line 71
:cond_0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "File extension for file: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, " does not match required extension for Preferences file: "
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 72
invoke-virtual {v2}, Landroidx/datastore/preferences/core/PreferencesSerializer;->getFileExtension()Ljava/lang/String;
move-result-object v0
.line 71
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 70
new-instance v1, Ljava/lang/IllegalStateException;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 68
invoke-virtual {p0}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory$create$delegate$1;->invoke()Ljava/io/File;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,282 @@
.class public final Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final INSTANCE:Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;
invoke-direct {v0}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;-><init>()V
sput-object v0, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->INSTANCE:Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 32
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic create$default(Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
.locals 1
and-int/lit8 p6, p5, 0x1
const/4 v0, 0x0
if-eqz p6, :cond_0
move-object p1, v0
:cond_0
and-int/lit8 p6, p5, 0x2
if-eqz p6, :cond_1
.line 59
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
move-result-object p2
:cond_1
and-int/lit8 p5, p5, 0x4
if-eqz p5, :cond_2
.line 60
invoke-static {}, Lkotlinx/coroutines/Dispatchers;->getIO()Lkotlinx/coroutines/CoroutineDispatcher;
move-result-object p3
const/4 p5, 0x1
invoke-static {v0, p5, v0}, Lkotlinx/coroutines/SupervisorKt;->SupervisorJob$default(Lkotlinx/coroutines/Job;ILjava/lang/Object;)Lkotlinx/coroutines/CompletableJob;
move-result-object p5
invoke-virtual {p3, p5}, Lkotlin/coroutines/AbstractCoroutineContextElement;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
move-result-object p3
invoke-static {p3}, Lkotlinx/coroutines/CoroutineScopeKt;->CoroutineScope(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineScope;
move-result-object p3
.line 57
:cond_2
invoke-virtual {p0, p1, p2, p3, p4}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->create(Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final create(Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"Landroidx/datastore/preferences/core/Preferences;",
">;",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"Landroidx/datastore/preferences/core/Preferences;",
">;>;",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.line 0
const-string v0, "migrations"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceFile"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v4, 0x0
const/4 v6, 0x4
const/4 v7, 0x0
move-object v1, p0
move-object v2, p1
move-object v3, p2
move-object v5, p3
invoke-static/range {v1 .. v7}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->create$default(Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method
.method public final create(Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"Landroidx/datastore/preferences/core/Preferences;",
">;",
"Ljava/util/List<",
"+",
"Landroidx/datastore/core/DataMigration<",
"Landroidx/datastore/preferences/core/Preferences;",
">;>;",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
const-string v0, "migrations"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "scope"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "produceFile"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 63
sget-object v1, Landroidx/datastore/core/DataStoreFactory;->INSTANCE:Landroidx/datastore/core/DataStoreFactory;
.line 64
sget-object v2, Landroidx/datastore/preferences/core/PreferencesSerializer;->INSTANCE:Landroidx/datastore/preferences/core/PreferencesSerializer;
.line 68
new-instance v6, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory$create$delegate$1;
invoke-direct {v6, p4}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory$create$delegate$1;-><init>(Lkotlin/jvm/functions/Function0;)V
move-object v3, p1
move-object v4, p2
move-object v5, p3
.line 63
invoke-virtual/range {v1 .. v6}, Landroidx/datastore/core/DataStoreFactory;->create(Landroidx/datastore/core/Serializer;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
move-result-object p1
.line 76
new-instance p2, Landroidx/datastore/preferences/core/PreferenceDataStore;
invoke-direct {p2, p1}, Landroidx/datastore/preferences/core/PreferenceDataStore;-><init>(Landroidx/datastore/core/DataStore;)V
return-object p2
.end method
.method public final create(Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler<",
"Landroidx/datastore/preferences/core/Preferences;",
">;",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.line 0
const-string v0, "produceFile"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x6
const/4 v7, 0x0
move-object v1, p0
move-object v2, p1
move-object v5, p2
invoke-static/range {v1 .. v7}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->create$default(Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method
.method public final create(Lkotlin/jvm/functions/Function0;)Landroidx/datastore/core/DataStore;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0;",
")",
"Landroidx/datastore/core/DataStore<",
"Landroidx/datastore/preferences/core/Preferences;",
">;"
}
.end annotation
.line 0
const-string v0, "produceFile"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x7
const/4 v7, 0x0
move-object v1, p0
move-object v5, p1
invoke-static/range {v1 .. v7}, Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;->create$default(Landroidx/datastore/preferences/core/PreferenceDataStoreFactory;Landroidx/datastore/core/handlers/ReplaceFileCorruptionHandler;Ljava/util/List;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)Landroidx/datastore/core/DataStore;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,121 @@
.class public final Landroidx/datastore/preferences/core/Preferences$Key;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/core/Preferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Key"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private final name:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
const-string v0, "name"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 37
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/preferences/core/Preferences$Key;->name:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
.line 47
instance-of v0, p1, Landroidx/datastore/preferences/core/Preferences$Key;
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/datastore/preferences/core/Preferences$Key;->name:Ljava/lang/String;
.line 48
check-cast p1, Landroidx/datastore/preferences/core/Preferences$Key;
iget-object p1, p1, Landroidx/datastore/preferences/core/Preferences$Key;->name:Ljava/lang/String;
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public final getName()Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/core/Preferences$Key;->name:Ljava/lang/String;
return-object v0
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/core/Preferences$Key;->name:Ljava/lang/String;
.line 54
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v0
return v0
.end method
.method public final to(Ljava/lang/Object;)Landroidx/datastore/preferences/core/Preferences$Pair;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Landroidx/datastore/preferences/core/Preferences$Pair<",
"TT;>;"
}
.end annotation
.line 44
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Pair;
invoke-direct {v0, p0, p1}, Landroidx/datastore/preferences/core/Preferences$Pair;-><init>(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/datastore/preferences/core/Preferences$Key;->name:Ljava/lang/String;
return-object v0
.end method

View File

@@ -0,0 +1,98 @@
.class public final Landroidx/datastore/preferences/core/Preferences$Pair;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/core/Preferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Pair"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private final key:Landroidx/datastore/preferences/core/Preferences$Key;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;"
}
.end annotation
.end field
.field private final value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroidx/datastore/preferences/core/Preferences$Key;Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;TT;)V"
}
.end annotation
const-string v0, "key"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 65
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/datastore/preferences/core/Preferences$Pair;->key:Landroidx/datastore/preferences/core/Preferences$Key;
iput-object p2, p0, Landroidx/datastore/preferences/core/Preferences$Pair;->value:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final getKey$datastore_preferences_core()Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/core/Preferences$Pair;->key:Landroidx/datastore/preferences/core/Preferences$Key;
return-object v0
.end method
.method public final getValue$datastore_preferences_core()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Landroidx/datastore/preferences/core/Preferences$Pair;->value:Ljava/lang/Object;
return-object v0
.end method

View File

@@ -0,0 +1,104 @@
.class public abstract Landroidx/datastore/preferences/core/Preferences;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/datastore/preferences/core/Preferences$Key;,
Landroidx/datastore/preferences/core/Preferences$Pair;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public abstract asMap()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end method
.method public abstract contains(Landroidx/datastore/preferences/core/Preferences$Key;)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;)Z"
}
.end annotation
.end method
.method public abstract get(Landroidx/datastore/preferences/core/Preferences$Key;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"TT;>;)TT;"
}
.end annotation
.end method
.method public final toMutablePreferences()Landroidx/datastore/preferences/core/MutablePreferences;
.locals 3
.line 108
new-instance v0, Landroidx/datastore/preferences/core/MutablePreferences;
invoke-virtual {p0}, Landroidx/datastore/preferences/core/Preferences;->asMap()Ljava/util/Map;
move-result-object v1
invoke-static {v1}, Lkotlin/collections/MapsKt;->toMutableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v1
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Landroidx/datastore/preferences/core/MutablePreferences;-><init>(Ljava/util/Map;Z)V
return-object v0
.end method
.method public final toPreferences()Landroidx/datastore/preferences/core/Preferences;
.locals 3
.line 119
new-instance v0, Landroidx/datastore/preferences/core/MutablePreferences;
invoke-virtual {p0}, Landroidx/datastore/preferences/core/Preferences;->asMap()Ljava/util/Map;
move-result-object v1
invoke-static {v1}, Lkotlin/collections/MapsKt;->toMutableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v1
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Landroidx/datastore/preferences/core/MutablePreferences;-><init>(Ljava/util/Map;Z)V
return-object v0
.end method

View File

@@ -0,0 +1,90 @@
.class public final Landroidx/datastore/preferences/core/PreferencesFactory;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final varargs create([Landroidx/datastore/preferences/core/Preferences$Pair;)Landroidx/datastore/preferences/core/Preferences;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Landroidx/datastore/preferences/core/Preferences$Pair<",
"*>;)",
"Landroidx/datastore/preferences/core/Preferences;"
}
.end annotation
const-string v0, "pairs"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 42
array-length v0, p0
invoke-static {p0, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p0
check-cast p0, [Landroidx/datastore/preferences/core/Preferences$Pair;
invoke-static {p0}, Landroidx/datastore/preferences/core/PreferencesFactory;->createMutable([Landroidx/datastore/preferences/core/Preferences$Pair;)Landroidx/datastore/preferences/core/MutablePreferences;
move-result-object p0
return-object p0
.end method
.method public static final createEmpty()Landroidx/datastore/preferences/core/Preferences;
.locals 3
.line 27
new-instance v0, Landroidx/datastore/preferences/core/MutablePreferences;
const/4 v1, 0x0
const/4 v2, 0x1
invoke-direct {v0, v1, v2, v2, v1}, Landroidx/datastore/preferences/core/MutablePreferences;-><init>(Ljava/util/Map;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-object v0
.end method
.method public static final varargs createMutable([Landroidx/datastore/preferences/core/Preferences$Pair;)Landroidx/datastore/preferences/core/MutablePreferences;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Landroidx/datastore/preferences/core/Preferences$Pair<",
"*>;)",
"Landroidx/datastore/preferences/core/MutablePreferences;"
}
.end annotation
const-string v0, "pairs"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 56
new-instance v0, Landroidx/datastore/preferences/core/MutablePreferences;
const/4 v1, 0x0
const/4 v2, 0x1
const/4 v3, 0x0
invoke-direct {v0, v3, v1, v2, v3}, Landroidx/datastore/preferences/core/MutablePreferences;-><init>(Ljava/util/Map;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
array-length v1, p0
invoke-static {p0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p0
check-cast p0, [Landroidx/datastore/preferences/core/Preferences$Pair;
invoke-virtual {v0, p0}, Landroidx/datastore/preferences/core/MutablePreferences;->putAll([Landroidx/datastore/preferences/core/Preferences$Pair;)V
return-object v0
.end method

View File

@@ -0,0 +1,181 @@
.class public final Landroidx/datastore/preferences/core/PreferencesKeys;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final booleanKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 63
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/core/Preferences$Key;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static final doubleKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"Ljava/lang/Double;",
">;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 41
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/core/Preferences$Key;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static final floatKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"Ljava/lang/Float;",
">;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 74
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/core/Preferences$Key;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static final intKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 30
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/core/Preferences$Key;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static final longKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"Ljava/lang/Long;",
">;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 85
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/core/Preferences$Key;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static final stringKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"Ljava/lang/String;",
">;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 52
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/core/Preferences$Key;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static final stringSetKey(Ljava/lang/String;)Landroidx/datastore/preferences/core/Preferences$Key;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Landroidx/datastore/preferences/core/Preferences$Key<",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;>;"
}
.end annotation
const-string v0, "name"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 99
new-instance v0, Landroidx/datastore/preferences/core/Preferences$Key;
invoke-direct {v0, p0}, Landroidx/datastore/preferences/core/Preferences$Key;-><init>(Ljava/lang/String;)V
return-object v0
.end method

View File

@@ -0,0 +1,205 @@
.class final Landroidx/datastore/preferences/core/PreferencesKt$edit$2;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/datastore/preferences/core/PreferencesKt;->edit(Landroidx/datastore/core/DataStore;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "androidx.datastore.preferences.core.PreferencesKt$edit$2"
f = "Preferences.kt"
l = {
0x149
}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $transform:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2;"
}
.end annotation
.end field
.field synthetic L$0:Ljava/lang/Object;
.field label:I
# direct methods
.method public constructor <init>(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function2;",
"Lkotlin/coroutines/Continuation;",
")V"
}
.end annotation
iput-object p1, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->$transform:Lkotlin/jvm/functions/Function2;
const/4 p1, 0x2
invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation;",
")",
"Lkotlin/coroutines/Continuation;"
}
.end annotation
new-instance v0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;
iget-object v1, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->$transform:Lkotlin/jvm/functions/Function2;
invoke-direct {v0, v1, p2}, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;-><init>(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)V
iput-object p1, v0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->L$0:Ljava/lang/Object;
return-object v0
.end method
.method public final invoke(Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/datastore/preferences/core/Preferences;",
"Lkotlin/coroutines/Continuation;",
")",
"Ljava/lang/Object;"
}
.end annotation
.line 0
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 0
check-cast p1, Landroidx/datastore/preferences/core/Preferences;
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->invoke(Landroidx/datastore/preferences/core/Preferences;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_1
if-ne v1, v2, :cond_0
iget-object v0, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->L$0:Ljava/lang/Object;
.line 326
check-cast v0, Landroidx/datastore/preferences/core/MutablePreferences;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_0
.line 329
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 326
:cond_1
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->L$0:Ljava/lang/Object;
check-cast p1, Landroidx/datastore/preferences/core/Preferences;
.line 329
invoke-virtual {p1}, Landroidx/datastore/preferences/core/Preferences;->toMutablePreferences()Landroidx/datastore/preferences/core/MutablePreferences;
move-result-object p1
iget-object v1, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->$transform:Lkotlin/jvm/functions/Function2;
iput-object p1, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->L$0:Ljava/lang/Object;
iput v2, p0, Landroidx/datastore/preferences/core/PreferencesKt$edit$2;->label:I
invoke-interface {v1, p1, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
if-ne v1, v0, :cond_2
return-object v0
:cond_2
move-object v0, p1
:goto_0
return-object v0
.end method

Some files were not shown because too many files have changed in this diff Show More