Skip to content

Commit

Permalink
inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gultsch committed Jan 24, 2014
0 parents commit 35f8ab5
Show file tree
Hide file tree
Showing 118 changed files with 1,473 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .classpath
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SecureConversations</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
48 changes: 48 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.gultsch.chat"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.READ_CONTACTS" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light" >
<activity
android:name="de.gultsch.chat.ui.ConversationActivity"
android:label="Secure Conversations">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="de.gultsch.chat.ui.SettingsActivity"
android:label="Settings"
android:parentActivityName="de.gultsch.chat.ui.ConversationActivity" >
</activity>
<activity
android:name="de.gultsch.chat.ui.ManageAccountActivity"
android:label="Manage Accounts"
android:parentActivityName="de.gultsch.chat.ui.ConversationActivity" >
</activity>
<activity
android:name="de.gultsch.chat.ui.NewConversationActivity"
android:label="@string/title_activity_new_conversation"
android:parentActivityName="de.gultsch.chat.ui.ConversationActivity"
android:windowSoftInputMode="stateHidden">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="de.gultsch.chat.ui.ConversationActivity" />
</activity>
</application>

</manifest>
48 changes: 48 additions & 0 deletions bin/AndroidManifest.xml
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.gultsch.chat"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.READ_CONTACTS" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light" >
<activity
android:name="de.gultsch.chat.ui.ConversationActivity"
android:label="Secure Conversations">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="de.gultsch.chat.ui.SettingsActivity"
android:label="Settings"
android:parentActivityName="de.gultsch.chat.ui.ConversationActivity" >
</activity>
<activity
android:name="de.gultsch.chat.ui.ManageAccountActivity"
android:label="Manage Accounts"
android:parentActivityName="de.gultsch.chat.ui.ConversationActivity" >
</activity>
<activity
android:name="de.gultsch.chat.ui.NewConversationActivity"
android:label="@string/title_activity_new_conversation"
android:parentActivityName="de.gultsch.chat.ui.ConversationActivity"
android:windowSoftInputMode="stateHidden">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="de.gultsch.chat.ui.ConversationActivity" />
</activity>
</application>

</manifest>
Binary file added bin/SecureConversations.apk
Binary file not shown.
Binary file added bin/classes.dex
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/BuildConfig.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/Contact.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/Conversation.class
Binary file not shown.
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/ConversationList$1.class
Binary file not shown.
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/Message.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$array.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$attr.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$dimen.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$drawable.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$id.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$layout.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$menu.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$string.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$style.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R$xml.class
Binary file not shown.
Binary file added bin/classes/de/gultsch/chat/R.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions bin/jarlist.cache
@@ -0,0 +1,3 @@
# cache for current jar dependency. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
Binary file added bin/res/crunch/drawable-hdpi/ic_action_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-hdpi/ic_action_send.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-hdpi/ic_action_send_now.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-hdpi/ic_action_unsecure.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-hdpi/ic_profile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-mdpi/ic_action_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-mdpi/ic_action_send.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-mdpi/ic_action_unsecure.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-mdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-mdpi/ic_profile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xhdpi/ic_action_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xhdpi/ic_action_send.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xhdpi/ic_action_send_now.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xhdpi/ic_action_unsecure.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xhdpi/ic_profile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xxhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/crunch/drawable-xxhdpi/ic_profile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/resources.ap_
Binary file not shown.
6 changes: 6 additions & 0 deletions gen/de/gultsch/chat/BuildConfig.java
@@ -0,0 +1,6 @@
/** Automatically generated file. DO NOT MODIFY */
package de.gultsch.chat;

public final class BuildConfig {
public final static boolean DEBUG = true;
}
123 changes: 123 additions & 0 deletions gen/de/gultsch/chat/R.java
@@ -0,0 +1,123 @@
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/

package de.gultsch.chat;

public final class R {
public static final class array {
public static final int conversation_encryption_type_entries=0x7f050000;
public static final int conversation_encryption_type_values=0x7f050001;
}
public static final class attr {
}
public static final class dimen {
/** Default screen margins, per the Android Design guidelines.
Customize dimensions originally defined in res/values/dimens.xml (such as
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
*/
public static final int activity_horizontal_margin=0x7f060000;
public static final int activity_vertical_margin=0x7f060001;
}
public static final class drawable {
public static final int es_slidingpane_shadow=0x7f020000;
public static final int ic_action_add=0x7f020001;
public static final int ic_action_send=0x7f020002;
public static final int ic_action_send_now=0x7f020003;
public static final int ic_action_unsecure=0x7f020004;
public static final int ic_launcher=0x7f020005;
public static final int ic_profile=0x7f020006;
public static final int section_header=0x7f020007;
}
public static final class id {
public static final int action_accounts=0x7f0a001c;
public static final int action_add=0x7f0a0018;
public static final int action_archive=0x7f0a001b;
public static final int action_details=0x7f0a001a;
public static final int action_security=0x7f0a0019;
public static final int action_settings=0x7f0a001d;
public static final int contact_display_name=0x7f0a000c;
public static final int contact_divider=0x7f0a000e;
public static final int contact_jid=0x7f0a000d;
public static final int contact_photo=0x7f0a000b;
public static final int conversation_lastmsg=0x7f0a0012;
public static final int conversation_name=0x7f0a0011;
public static final int create_new_contact=0x7f0a000a;
public static final int duration=0x7f0a0013;
public static final int editText1=0x7f0a0015;
public static final int imageButton1=0x7f0a0016;
public static final int imageView1=0x7f0a0010;
public static final int jabber_contacts=0x7f0a0008;
public static final int jabber_contacts_header=0x7f0a0007;
public static final int list=0x7f0a0001;
public static final int new_contact_header=0x7f0a0009;
public static final int new_conversation_search=0x7f0a0003;
public static final int phone_contacts=0x7f0a0006;
public static final int phone_contacts_header=0x7f0a0005;
public static final int scrollView1=0x7f0a0004;
public static final int selected_conversation=0x7f0a0002;
public static final int slidingpanelayout=0x7f0a0000;
public static final int textView1=0x7f0a0017;
public static final int textsend=0x7f0a0014;
public static final int thumbnail=0x7f0a000f;
}
public static final class layout {
public static final int activity_conversations=0x7f030000;
public static final int activity_new_conversation=0x7f030001;
public static final int contact=0x7f030002;
public static final int conversation_list_row=0x7f030003;
public static final int frament_conversation=0x7f030004;
}
public static final class menu {
public static final int conversations=0x7f090000;
}
public static final class string {
public static final int action_accounts=0x7f070003;
public static final int action_add=0x7f070002;
public static final int action_archive=0x7f070004;
public static final int action_details=0x7f070005;
public static final int action_secure=0x7f070006;
public static final int action_settings=0x7f070001;
public static final int app_name=0x7f070000;
public static final int hello_world=0x7f070008;
public static final int title_activity_new_conversation=0x7f070007;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=0x7f080000;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f080001;
public static final int Divider=0x7f080003;
public static final int sectionHeader=0x7f080002;
}
public static final class xml {
public static final int preferences=0x7f040000;
}
}
Binary file added ic_launcher-web.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ic_profile-web.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added libs/android-support-v4.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions proguard-project.txt
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
14 changes: 14 additions & 0 deletions project.properties
@@ -0,0 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19
8 changes: 8 additions & 0 deletions res/drawable-hdpi/es_slidingpane_shadow.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:centerColor="#8B0000"
android:endColor="#34FFDD"
android:startColor="#FF00FF" />
<size android:width="5.0dp" android:height="0.5dp" />
</shape>
Binary file added res/drawable-hdpi/ic_action_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_send.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_send_now.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_unsecure.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_launcher.png
Binary file added res/drawable-hdpi/ic_profile.png
8 changes: 8 additions & 0 deletions res/drawable-mdpi/es_slidingpane_shadow.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:centerColor="#8B0000"
android:endColor="#34FFDD"
android:startColor="#FF00FF" />
<size android:width="5.0dp" android:height="0.5dp" />
</shape>
Binary file added res/drawable-mdpi/ic_action_add.png
Binary file added res/drawable-mdpi/ic_action_send.png
Binary file added res/drawable-mdpi/ic_action_unsecure.png
Binary file added res/drawable-mdpi/ic_launcher.png
Binary file added res/drawable-mdpi/ic_profile.png
7 changes: 7 additions & 0 deletions res/drawable-xhdpi/es_slidingpane_shadow.xml
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:endColor="#cccccc"
android:startColor="#f9f9f9" />
<size android:width="3.0dp" android:height="0.5dp" />
</shape>
Binary file added res/drawable-xhdpi/ic_action_add.png
Binary file added res/drawable-xhdpi/ic_action_send.png
Binary file added res/drawable-xhdpi/ic_action_send_now.png
Binary file added res/drawable-xhdpi/ic_action_unsecure.png
Binary file added res/drawable-xhdpi/ic_launcher.png
Binary file added res/drawable-xhdpi/ic_profile.png
10 changes: 10 additions & 0 deletions res/drawable-xhdpi/section_header.xml
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >

<size
android:height="1.5dp"
android:width="1000dp" />

<solid android:color="#b7b7b7" />
</shape>
8 changes: 8 additions & 0 deletions res/drawable-xxhdpi/es_slidingpane_shadow.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:centerColor="#8B0000"
android:endColor="#34FFDD"
android:startColor="#FF00FF" />
<size android:width="5.0dp" android:height="0.5dp" />
</shape>
Binary file added res/drawable-xxhdpi/ic_launcher.png
Binary file added res/drawable-xxhdpi/ic_profile.png
29 changes: 29 additions & 0 deletions res/layout/activity_conversations.xml
@@ -0,0 +1,29 @@
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/slidingpanelayout">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="336dp"
android:layout_height="match_parent"
android:orientation="vertical">

<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="#b5b5b5"
android:dividerHeight="1dp"
android:background="#f9f9f9"
/>

</LinearLayout>
<LinearLayout
android:id="@+id/selected_conversation"
android:layout_width="400dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#e5e5e5"
android:orientation="vertical">
</LinearLayout>
</android.support.v4.widget.SlidingPaneLayout>

0 comments on commit 35f8ab5

Please sign in to comment.