1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-07 16:06:18 +00:00

Add build.gradle, as requested by #82

This commit is contained in:
Loic Blot 2016-01-18 07:04:35 +01:00
parent b1d2093563
commit 7e87253d5f
9 changed files with 49 additions and 11 deletions

25
build.gradle Normal file
View File

@ -0,0 +1,25 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "fr.unix_experience.owncloud_sms"
minSdkVersion 14
targetSdkVersion 22
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':owncloudAndroidLibrary')
compile project(':nrzandroidlib')
compile files('libs/android-support-v13.jar')
}

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fr.unix_experience.owncloud_sms"
android:versionCode="30"
android:versionName="0.19.1"> <!-- From Android 4.0 to 5.2 -->
android:versionCode="32"
android:versionName="0.19.3"> <!-- From Android 4.0 to 6.0 -->
<uses-sdk
android:maxSdkVersion="22"
android:maxSdkVersion="23"
android:minSdkVersion="14"
android:targetSdkVersion="23" />

View File

@ -6,7 +6,6 @@ import android.app.ListActivity;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Collections;
import fr.nrz.androidlib.adapters.AndroidAccountAdapter;
import fr.unix_experience.owncloud_sms.R;
@ -22,6 +21,7 @@ public class AccountListActivity extends ListActivity {
AccountManager _accountMgr = AccountManager.get(getBaseContext());
setContentView(R.layout.restore_activity_accountlist);
/*
adapter = new AndroidAccountAdapter(this,
android.R.layout.simple_list_item_1,
listItems,
@ -34,6 +34,7 @@ public class AccountListActivity extends ListActivity {
Collections.addAll(listItems, accountList);
adapter.notifyDataSetChanged();
*/
}
}

View File

@ -274,9 +274,9 @@ public class SmsFetcher {
existingMessages = _existingSentMessages;
}
if (existingMessages == null) {
return "";
}
if (existingMessages == null) {
return "";
}
// Note: The default case isn't possible, we check the mailbox before
StringBuilder sb = new StringBuilder();
@ -292,7 +292,7 @@ public class SmsFetcher {
}
}
return sb.toString();
return sb.toString();
}
public void setExistingInboxMessages(JSONArray inboxMessages) {

View File

@ -135,6 +135,6 @@
android:layout_below="@+id/main_button_choose_account"
android:layout_marginTop="33dp"
android:src="@drawable/next_arrow" />
<!-- android:layout_below="@+id/main_button_sync" -->
<!-- android:layout_below="@+id/main_button_syncruir" -->
</RelativeLayout>

View File

@ -30,10 +30,19 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ListView
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/function_not_available"
android:id="@+id/textView"
android:layout_gravity="center_horizontal"/>
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:drawSelectorOnTop="true" />
android:drawSelectorOnTop="true"
android:clickable="false"/>
</LinearLayout>

View File

@ -165,5 +165,6 @@ Contributors and issue\'s reporters</string>
<string name="subtitle_contact_phones">- Contact phones</string>
<string name="pref_title_bulk_messages">Max messages to send per sync</string>
<string name="contactinfos_list">Contact list</string>
<string name="function_not_available">This function is not available yet.</string>
</resources>

View File

@ -150,4 +150,5 @@ Les contributeurs et rapporteurs de bugs</string>
<string name="err_sync_craft_http_request">Erreur #2: Echec de la création de la requête</string>
<string name="pref_title_bulk_messages">Nombre maximum de messages à envoyer par synchronisation</string>
<string name="contactinfos_list">Liste des contacts</string>
<string name="function_not_available">Cette fonctionnalité n\'est pas encore disponibleeems.</string>
</resources>

View File

@ -194,4 +194,5 @@ Contributors and issue\'s reporters</string>
<string name="subtitle_contact_phones">- Contact phones</string>
<string name="pref_title_bulk_messages">Max messages to send per sync</string>
<string name="contactinfos_list">Contact list</string>
<string name="function_not_available">This function is not available yet.</string>
</resources>