mirror of
https://github.com/etesync/android
synced 2024-11-22 16:08:13 +00:00
Version bump to 0.8.1
* use slf4j-android as it's required by ical4j/2 * disable i18n lint warnings * retain ServerInfo when activity is re-created (fixes #543)
This commit is contained in:
parent
0b56d2a966
commit
59088086fd
@ -29,6 +29,7 @@ android {
|
|||||||
}
|
}
|
||||||
lintOptions {
|
lintOptions {
|
||||||
abortOnError false
|
abortOnError false
|
||||||
|
disable 'ExtraTranslation'
|
||||||
}
|
}
|
||||||
|
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
@ -53,6 +54,7 @@ dependencies {
|
|||||||
// we don't need content builders, see https://github.com/ical4j/ical4j/wiki/Groovy
|
// we don't need content builders, see https://github.com/ical4j/ical4j/wiki/Groovy
|
||||||
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
|
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
|
||||||
}
|
}
|
||||||
|
compile('org.slf4j:slf4j-android:1.7.12') // slf4j is used by ical4j
|
||||||
// ez-vcard for parsing/generating VCards
|
// ez-vcard for parsing/generating VCards
|
||||||
compile('com.googlecode.ez-vcard:ez-vcard:0.9.6') {
|
compile('com.googlecode.ez-vcard:ez-vcard:0.9.6') {
|
||||||
// hCard functionality not needed
|
// hCard functionality not needed
|
||||||
|
@ -32,3 +32,6 @@
|
|||||||
|
|
||||||
# DAVdroid
|
# DAVdroid
|
||||||
-keep class at.bitfire.davdroid.** { *; } # all DAVdroid code is required
|
-keep class at.bitfire.davdroid.** { *; } # all DAVdroid code is required
|
||||||
|
|
||||||
|
# unneeded libraries
|
||||||
|
-dontwarn aQute.**
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="at.bitfire.davdroid"
|
package="at.bitfire.davdroid"
|
||||||
android:versionCode="66" android:versionName="0.8.0"
|
android:versionCode="68" android:versionName="0.8.1"
|
||||||
android:installLocation="internalOnly">
|
android:installLocation="internalOnly">
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
|
@ -12,7 +12,7 @@ import net.fortuna.ical4j.model.property.ProdId;
|
|||||||
|
|
||||||
public class Constants {
|
public class Constants {
|
||||||
public static final String
|
public static final String
|
||||||
APP_VERSION = "0.8.0",
|
APP_VERSION = "0.8.1",
|
||||||
ACCOUNT_TYPE = "bitfire.at.davdroid",
|
ACCOUNT_TYPE = "bitfire.at.davdroid",
|
||||||
WEB_URL_HELP = "https://davdroid.bitfire.at/configuration?pk_campaign=davdroid-app",
|
WEB_URL_HELP = "https://davdroid.bitfire.at/configuration?pk_campaign=davdroid-app",
|
||||||
WEB_URL_VIEW_LOGS = "https://github.com/bitfireAT/davdroid/wiki/How-to-view-the-logs";
|
WEB_URL_VIEW_LOGS = "https://github.com/bitfireAT/davdroid/wiki/How-to-view-the-logs";
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
*/
|
*/
|
||||||
package at.bitfire.davdroid.resource;
|
package at.bitfire.davdroid.resource;
|
||||||
|
|
||||||
|
import android.os.Parcel;
|
||||||
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
@ -18,7 +22,7 @@ import lombok.RequiredArgsConstructor;
|
|||||||
|
|
||||||
@RequiredArgsConstructor(suppressConstructorProperties=true)
|
@RequiredArgsConstructor(suppressConstructorProperties=true)
|
||||||
@Data
|
@Data
|
||||||
public class ServerInfo {
|
public class ServerInfo implements Serializable {
|
||||||
final private URI baseURI;
|
final private URI baseURI;
|
||||||
final private String userName, password;
|
final private String userName, password;
|
||||||
final boolean authPreemptive;
|
final boolean authPreemptive;
|
||||||
@ -38,8 +42,8 @@ public class ServerInfo {
|
|||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequiredArgsConstructor(suppressConstructorProperties=true)
|
@RequiredArgsConstructor(suppressConstructorProperties=true)
|
||||||
@Data
|
@Data
|
||||||
public static class ResourceInfo {
|
public static class ResourceInfo {
|
||||||
|
@ -20,14 +20,17 @@ import at.bitfire.davdroid.R;
|
|||||||
import at.bitfire.davdroid.resource.ServerInfo;
|
import at.bitfire.davdroid.resource.ServerInfo;
|
||||||
|
|
||||||
public class AddAccountActivity extends Activity {
|
public class AddAccountActivity extends Activity {
|
||||||
|
final private static String KEY_SERVER_INFO = "serverInfo";
|
||||||
|
|
||||||
protected ServerInfo serverInfo;
|
protected ServerInfo serverInfo;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
if (savedInstanceState != null)
|
||||||
|
serverInfo = (ServerInfo)savedInstanceState.getSerializable(KEY_SERVER_INFO);
|
||||||
|
|
||||||
setContentView(R.layout.setup_add_account);
|
setContentView(R.layout.setup_add_account);
|
||||||
|
|
||||||
if (savedInstanceState == null) { // first call
|
if (savedInstanceState == null) { // first call
|
||||||
@ -37,6 +40,12 @@ public class AddAccountActivity extends Activity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onSaveInstanceState(Bundle outState) {
|
||||||
|
super.onSaveInstanceState(outState);
|
||||||
|
outState.putSerializable(KEY_SERVER_INFO, serverInfo);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
MenuInflater inflater = getMenuInflater();
|
MenuInflater inflater = getMenuInflater();
|
||||||
|
@ -10,6 +10,7 @@ package at.bitfire.davdroid.ui.setup;
|
|||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
@ -9,6 +9,7 @@ package at.bitfire.davdroid.ui.setup;
|
|||||||
|
|
||||||
import android.app.ListFragment;
|
import android.app.ListFragment;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuInflater;
|
import android.view.MenuInflater;
|
||||||
@ -53,7 +54,7 @@ public class SelectCollectionsFragment extends ListFragment {
|
|||||||
|
|
||||||
View header = getActivity().getLayoutInflater().inflate(R.layout.setup_select_collections_header, getListView(), false);
|
View header = getActivity().getLayoutInflater().inflate(R.layout.setup_select_collections_header, getListView(), false);
|
||||||
listView.addHeaderView(header, getListView(), false);
|
listView.addHeaderView(header, getListView(), false);
|
||||||
|
|
||||||
final SelectCollectionsAdapter adapter = new SelectCollectionsAdapter(view.getContext(), serverInfo);
|
final SelectCollectionsAdapter adapter = new SelectCollectionsAdapter(view.getContext(), serverInfo);
|
||||||
setListAdapter(adapter);
|
setListAdapter(adapter);
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:scrollHorizontally="true"
|
android:scrollHorizontally="true"
|
||||||
android:scrollbars="horizontal"
|
android:scrollbars="horizontal"
|
||||||
android:hint="my.webhost.com/">
|
android:hint="my.webhost.com">
|
||||||
<requestFocus />
|
<requestFocus />
|
||||||
</EditText>
|
</EditText>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user