First step syncronization implementation
This commit is contained in:
7
app/src/main/res/xml/authenticator_sync.xml
Normal file
7
app/src/main/res/xml/authenticator_sync.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<account-authenticator
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accountPreferences="@xml/pref_sync"
|
||||
android:accountType="@string/account_type_sync"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name" />
|
||||
10
app/src/main/res/xml/pref_sync.xml
Normal file
10
app/src/main/res/xml/pref_sync.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<Preference
|
||||
android:persistent="false"
|
||||
android:summary="Preference stub"
|
||||
android:title="TODO" />
|
||||
|
||||
</PreferenceScreen>
|
||||
8
app/src/main/res/xml/sync_favourites.xml
Normal file
8
app/src/main/res/xml/sync_favourites.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accountType="@string/account_type_sync"
|
||||
android:allowParallelSyncs="false"
|
||||
android:contentAuthority="org.koitharu.kotatsu.favourites"
|
||||
android:isAlwaysSyncable="true"
|
||||
android:supportsUploading="true"
|
||||
android:userVisible="true" />
|
||||
8
app/src/main/res/xml/sync_history.xml
Normal file
8
app/src/main/res/xml/sync_history.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accountType="@string/account_type_sync"
|
||||
android:allowParallelSyncs="false"
|
||||
android:contentAuthority="org.koitharu.kotatsu.history"
|
||||
android:isAlwaysSyncable="true"
|
||||
android:supportsUploading="true"
|
||||
android:userVisible="true" />
|
||||
Reference in New Issue
Block a user