[go: nahoru, domu]

Add Directory Structure for androidx.dataStore

Bug: 149110240
Test: gw bOS
Change-Id: I6b9fde98082939406b03c59a9a053b33f168fa60
diff --git a/buildSrc/src/main/kotlin/androidx/build/LibraryGroups.kt b/buildSrc/src/main/kotlin/androidx/build/LibraryGroups.kt
index 1e5af46..eaab563 100644
--- a/buildSrc/src/main/kotlin/androidx/build/LibraryGroups.kt
+++ b/buildSrc/src/main/kotlin/androidx/build/LibraryGroups.kt
@@ -47,6 +47,7 @@
     val CORE = LibraryGroup("androidx.core", null)
     val CURSORADAPTER = LibraryGroup("androidx.cursoradapter", LibraryVersions.CURSORADAPTER)
     val CUSTOMVIEW = LibraryGroup("androidx.customview", LibraryVersions.CUSTOMVIEW)
+    val DATASTORE = LibraryGroup("androidx.datastore", LibraryVersions.DATASTORE)
     val DOCUMENTFILE = LibraryGroup("androidx.documentfile", LibraryVersions.DOCUMENTFILE)
     val DRAWERLAYOUT = LibraryGroup("androidx.drawerlayout", LibraryVersions.DRAWERLAYOUT)
     val DYNAMICANIMATION = LibraryGroup("androidx.dynamicanimation", null)
diff --git a/buildSrc/src/main/kotlin/androidx/build/LibraryVersions.kt b/buildSrc/src/main/kotlin/androidx/build/LibraryVersions.kt
index 6dc4ea1..352b400 100644
--- a/buildSrc/src/main/kotlin/androidx/build/LibraryVersions.kt
+++ b/buildSrc/src/main/kotlin/androidx/build/LibraryVersions.kt
@@ -51,6 +51,7 @@
     val CORE_ROLE = Version("1.0.0-beta01")
     val CURSORADAPTER = Version("1.1.0-alpha01")
     val CUSTOMVIEW = Version("1.1.0-alpha02")
+    val DATASTORE = Version("1.0.0-alpha01")
     val DOCUMENTFILE = Version("1.1.0-alpha01")
     val DRAWERLAYOUT = Version("1.1.0-alpha03")
     val DYNAMICANIMATION = Version("1.1.0-alpha04")
diff --git a/datastore/OWNERS b/datastore/OWNERS
new file mode 100644
index 0000000..568ad4a
--- /dev/null
+++ b/datastore/OWNERS
@@ -0,0 +1,2 @@
+spf@google.com
+obenabde@google.com
diff --git a/datastore/datastore-core/api/1.0.0-alpha01.txt b/datastore/datastore-core/api/1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-core/api/1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-core/api/current.txt b/datastore/datastore-core/api/current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-core/api/current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-core/api/public_plus_experimental_1.0.0-alpha01.txt b/datastore/datastore-core/api/public_plus_experimental_1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-core/api/public_plus_experimental_1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-core/api/public_plus_experimental_current.txt b/datastore/datastore-core/api/public_plus_experimental_current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-core/api/public_plus_experimental_current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-core/api/res-1.0.0-alpha01.txt b/datastore/datastore-core/api/res-1.0.0-alpha01.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/datastore/datastore-core/api/res-1.0.0-alpha01.txt
diff --git a/datastore/datastore-core/api/restricted_1.0.0-alpha01.txt b/datastore/datastore-core/api/restricted_1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-core/api/restricted_1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-core/api/restricted_current.txt b/datastore/datastore-core/api/restricted_current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-core/api/restricted_current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-core/build.gradle b/datastore/datastore-core/build.gradle
new file mode 100644
index 0000000..b2e4c82
--- /dev/null
+++ b/datastore/datastore-core/build.gradle
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import static androidx.build.dependencies.DependenciesKt.*
+import androidx.build.LibraryGroups
+import androidx.build.LibraryVersions
+import androidx.build.AndroidXExtension
+import androidx.build.Publish
+
+plugins {
+    id("AndroidXPlugin")
+    id("com.android.library")
+}
+
+android {
+    buildTypes {
+        debug {
+            testCoverageEnabled = false // Breaks Kotlin compiler.
+        }
+    }
+}
+
+dependencies {
+    // None yet
+}
+
+androidx {
+    name = "Android DataStore Core"
+    publish = Publish.SNAPSHOT_ONLY
+    mavenGroup = LibraryGroups.DATASTORE
+    inceptionYear = "2020"
+    description = "Android DataStore Core - contains the underlying store used by each serialization method"
+    url = AndroidXExtension.SUPPORT_URL
+}
diff --git a/datastore/datastore-core/src/androidTest/AndroidManifest.xml b/datastore/datastore-core/src/androidTest/AndroidManifest.xml
new file mode 100644
index 0000000..5e89612
--- /dev/null
+++ b/datastore/datastore-core/src/androidTest/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2020 The Android Open Source Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="androidx.datastore.datastore">
+
+</manifest>
diff --git a/datastore/datastore-core/src/main/AndroidManifest.xml b/datastore/datastore-core/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..5e89612
--- /dev/null
+++ b/datastore/datastore-core/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2020 The Android Open Source Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="androidx.datastore.datastore">
+
+</manifest>
diff --git a/datastore/datastore-preferences/api/1.0.0-alpha01.txt b/datastore/datastore-preferences/api/1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-preferences/api/1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-preferences/api/current.txt b/datastore/datastore-preferences/api/current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-preferences/api/current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-preferences/api/public_plus_experimental_1.0.0-alpha01.txt b/datastore/datastore-preferences/api/public_plus_experimental_1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-preferences/api/public_plus_experimental_1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-preferences/api/public_plus_experimental_current.txt b/datastore/datastore-preferences/api/public_plus_experimental_current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-preferences/api/public_plus_experimental_current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-preferences/api/res-1.0.0-alpha01.txt b/datastore/datastore-preferences/api/res-1.0.0-alpha01.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/datastore/datastore-preferences/api/res-1.0.0-alpha01.txt
diff --git a/datastore/datastore-preferences/api/restricted_1.0.0-alpha01.txt b/datastore/datastore-preferences/api/restricted_1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-preferences/api/restricted_1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-preferences/api/restricted_current.txt b/datastore/datastore-preferences/api/restricted_current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-preferences/api/restricted_current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-preferences/build.gradle b/datastore/datastore-preferences/build.gradle
new file mode 100644
index 0000000..2c6e5cc
--- /dev/null
+++ b/datastore/datastore-preferences/build.gradle
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import static androidx.build.dependencies.DependenciesKt.*
+import androidx.build.LibraryGroups
+import androidx.build.LibraryVersions
+import androidx.build.AndroidXExtension
+import androidx.build.Publish
+
+plugins {
+    id("AndroidXPlugin")
+    id("com.android.library")
+    id("kotlin-android")
+}
+
+android {
+    buildTypes {
+        debug {
+            testCoverageEnabled = false // Breaks Kotlin compiler.
+        }
+    }
+}
+
+dependencies {
+    api(KOTLIN_STDLIB)
+    api(project(":datastore:datastore-core"))
+}
+
+androidx {
+    name = "Android Preferences DataStore"
+    publish = Publish.SNAPSHOT_ONLY
+    mavenGroup = LibraryGroups.DATASTORE
+    inceptionYear = "2020"
+    description = "Android Preferences DataStore"
+    url = AndroidXExtension.SUPPORT_URL
+}
diff --git a/datastore/datastore-preferences/src/androidTest/AndroidManifest.xml b/datastore/datastore-preferences/src/androidTest/AndroidManifest.xml
new file mode 100644
index 0000000..3a5a8fe
--- /dev/null
+++ b/datastore/datastore-preferences/src/androidTest/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2019 The Android Open Source Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="androidx.datastore.preferencesdatastore">
+
+</manifest>
diff --git a/datastore/datastore-preferences/src/main/AndroidManifest.xml b/datastore/datastore-preferences/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..5dbbc87
--- /dev/null
+++ b/datastore/datastore-preferences/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2020 The Android Open Source Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="androidx.datastore.protodatastore">
+
+</manifest>
diff --git a/datastore/datastore-proto/api/1.0.0-alpha01.txt b/datastore/datastore-proto/api/1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-proto/api/1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-proto/api/current.txt b/datastore/datastore-proto/api/current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-proto/api/current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-proto/api/public_plus_experimental_1.0.0-alpha01.txt b/datastore/datastore-proto/api/public_plus_experimental_1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-proto/api/public_plus_experimental_1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-proto/api/public_plus_experimental_current.txt b/datastore/datastore-proto/api/public_plus_experimental_current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-proto/api/public_plus_experimental_current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-proto/api/res-1.0.0-alpha01.txt b/datastore/datastore-proto/api/res-1.0.0-alpha01.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/datastore/datastore-proto/api/res-1.0.0-alpha01.txt
diff --git a/datastore/datastore-proto/api/restricted_1.0.0-alpha01.txt b/datastore/datastore-proto/api/restricted_1.0.0-alpha01.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-proto/api/restricted_1.0.0-alpha01.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-proto/api/restricted_current.txt b/datastore/datastore-proto/api/restricted_current.txt
new file mode 100644
index 0000000..da4f6cc
--- /dev/null
+++ b/datastore/datastore-proto/api/restricted_current.txt
@@ -0,0 +1 @@
+// Signature format: 3.0
diff --git a/datastore/datastore-proto/build.gradle b/datastore/datastore-proto/build.gradle
new file mode 100644
index 0000000..a84fdf8
--- /dev/null
+++ b/datastore/datastore-proto/build.gradle
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import static androidx.build.dependencies.DependenciesKt.*
+import androidx.build.LibraryGroups
+import androidx.build.LibraryVersions
+import androidx.build.AndroidXExtension
+import androidx.build.Publish
+
+plugins {
+    id("AndroidXPlugin")
+    id("com.android.library")
+    id("kotlin-android")
+}
+
+android {
+    buildTypes {
+        debug {
+            testCoverageEnabled = false // Breaks Kotlin compiler.
+        }
+    }
+}
+
+dependencies {
+    api(KOTLIN_STDLIB)
+}
+
+androidx {
+    name = "Android Proto DataStore"
+    publish = Publish.SNAPSHOT_ONLY
+    mavenGroup = LibraryGroups.DATASTORE
+    inceptionYear = "2020"
+    description = "Android Proto DataStore"
+    url = AndroidXExtension.SUPPORT_URL
+}
diff --git a/datastore/datastore-proto/src/androidTest/AndroidManifest.xml b/datastore/datastore-proto/src/androidTest/AndroidManifest.xml
new file mode 100644
index 0000000..22b935f
--- /dev/null
+++ b/datastore/datastore-proto/src/androidTest/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2019 The Android Open Source Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="androidx.datastore.protodatastore">
+
+</manifest>
diff --git a/datastore/datastore-proto/src/main/AndroidManifest.xml b/datastore/datastore-proto/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..5dbbc87
--- /dev/null
+++ b/datastore/datastore-proto/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2020 The Android Open Source Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="androidx.datastore.protodatastore">
+
+</manifest>
diff --git a/settings.gradle b/settings.gradle
index 7f9f546..1d96354 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -110,6 +110,9 @@
 includeProject(":core-role", "core/core-role")
 includeProject(":cursoradapter:cursoradapter", "cursoradapter/cursoradapter")
 includeProject(":customview:customview", "customview/customview")
+includeProject(":datastore:datastore-core", "datastore/datastore-core")
+includeProject(":datastore:datastore-preferences", "datastore/datastore-preferences")
+includeProject(":datastore:datastore-proto", "datastore/datastore-proto")
 includeProject(":documentfile:documentfile", "documentfile/documentfile")
 includeProject(":drawerlayout:drawerlayout", "drawerlayout/drawerlayout")
 includeProject(":dynamicanimation:dynamicanimation", "dynamic-animation/dynamic-animation")