mirror of
https://github.com/etesync/android
synced 2024-11-26 01:48:34 +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 {
|
||||
abortOnError false
|
||||
disable 'ExtraTranslation'
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
@ -53,6 +54,7 @@ dependencies {
|
||||
// we don't need content builders, see https://github.com/ical4j/ical4j/wiki/Groovy
|
||||
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
|
||||
compile('com.googlecode.ez-vcard:ez-vcard:0.9.6') {
|
||||
// hCard functionality not needed
|
||||
|
@ -32,3 +32,6 @@
|
||||
|
||||
# DAVdroid
|
||||
-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"
|
||||
package="at.bitfire.davdroid"
|
||||
android:versionCode="66" android:versionName="0.8.0"
|
||||
android:versionCode="68" android:versionName="0.8.1"
|
||||
android:installLocation="internalOnly">
|
||||
|
||||
<uses-sdk
|
||||
|
@ -12,7 +12,7 @@ import net.fortuna.ical4j.model.property.ProdId;
|
||||
|
||||
public class Constants {
|
||||
public static final String
|
||||
APP_VERSION = "0.8.0",
|
||||
APP_VERSION = "0.8.1",
|
||||
ACCOUNT_TYPE = "bitfire.at.davdroid",
|
||||
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";
|
||||
|
@ -7,6 +7,10 @@
|
||||
*/
|
||||
package at.bitfire.davdroid.resource;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.util.LinkedList;
|
||||
@ -18,7 +22,7 @@ import lombok.RequiredArgsConstructor;
|
||||
|
||||
@RequiredArgsConstructor(suppressConstructorProperties=true)
|
||||
@Data
|
||||
public class ServerInfo {
|
||||
public class ServerInfo implements Serializable {
|
||||
final private URI baseURI;
|
||||
final private String userName, password;
|
||||
final boolean authPreemptive;
|
||||
|
@ -20,14 +20,17 @@ import at.bitfire.davdroid.R;
|
||||
import at.bitfire.davdroid.resource.ServerInfo;
|
||||
|
||||
public class AddAccountActivity extends Activity {
|
||||
final private static String KEY_SERVER_INFO = "serverInfo";
|
||||
|
||||
protected ServerInfo serverInfo;
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
if (savedInstanceState != null)
|
||||
serverInfo = (ServerInfo)savedInstanceState.getSerializable(KEY_SERVER_INFO);
|
||||
|
||||
setContentView(R.layout.setup_add_account);
|
||||
|
||||
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
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
MenuInflater inflater = getMenuInflater();
|
||||
|
@ -10,6 +10,7 @@ package at.bitfire.davdroid.ui.setup;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.text.Html;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
@ -9,6 +9,7 @@ package at.bitfire.davdroid.ui.setup;
|
||||
|
||||
import android.app.ListFragment;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
|
@ -39,7 +39,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:scrollHorizontally="true"
|
||||
android:scrollbars="horizontal"
|
||||
android:hint="my.webhost.com/">
|
||||
android:hint="my.webhost.com">
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user