forked from Slowpoke/Conversations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 64bdd7e
Showing
323 changed files
with
25,921 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.classpath | ||
*.swp | ||
.settings | ||
|
||
# https://github.com/github/gitignore/blob/master/Gradle.gitignore | ||
.gradle/ | ||
gradle/ | ||
build/ | ||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# https://github.com/github/gitignore/blob/master/Android.gitignore | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
*.iml | ||
.idea | ||
|
||
import-summary.txt | ||
|
||
*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "minidns"] | ||
path = minidns | ||
url = https://github.com/rtreffer/minidns.git | ||
[submodule "openpgpapilib"] | ||
path = openpgpapilib | ||
url = https://github.com/open-keychain/openpgp-api-lib.git | ||
[submodule "memorizingTrustManager"] | ||
path = memorizingTrustManager | ||
url = https://github.com/iNPUTmice/MemorizingTrustManager.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Top-level build file where you can add configuration options common to all | ||
// sub-projects/modules. | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:0.12.2' | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
jcenter() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 19 | ||
buildToolsVersion "20.0.0" | ||
|
||
defaultConfig { | ||
applicationId "eu.siacs.conversations" | ||
minSdkVersion 14 | ||
targetSdkVersion 19 | ||
} | ||
|
||
buildTypes { | ||
release { | ||
runProguard false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile project(':minidns') | ||
compile project(':openpgpapilib') | ||
compile project(':memorizingTrustManager') | ||
compile files('libs/android-support-v13.jar') | ||
compile files('libs/bcprov-jdk15on-150.jar') | ||
compile files('libs/otr4j-0.10.jar') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="eu.siacs.conversations" | ||
android:versionCode="32" | ||
android:versionName="0.8-alpha" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="14" | ||
android:targetSdkVersion="19" /> | ||
|
||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_CONTACTS" /> | ||
<uses-permission android:name="android.permission.READ_PROFILE" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||
<uses-permission android:name="android.permission.VIBRATE" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@drawable/ic_launcher" | ||
android:label="@string/app_name" | ||
tools:replace="android:label" | ||
android:theme="@style/ConversationsTheme" > | ||
<service android:name="eu.siacs.conversations.services.XmppConnectionService" /> | ||
|
||
<receiver android:name="eu.siacs.conversations.services.EventReceiver" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.BOOT_COMPLETED" /> | ||
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> | ||
<action android:name="android.intent.action.ACTION_SHUTDOWN" /> | ||
</intent-filter> | ||
</receiver> | ||
|
||
<activity | ||
android:name="eu.siacs.conversations.ui.ConversationActivity" | ||
android:label="@string/title_activity_conversations" | ||
android:launchMode="singleTask" | ||
android:windowSoftInputMode="stateHidden" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.StartConversationActivity" | ||
android:configChanges="orientation|screenSize" | ||
android:label="@string/title_activity_start_conversation" | ||
android:logo="@drawable/ic_activity" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.SENDTO" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
|
||
<data android:scheme="imto" /> | ||
<data android:host="jabber" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data android:scheme="xmpp" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.SettingsActivity" | ||
android:label="@string/title_activity_settings" > | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.ChooseContactActivity" | ||
android:label="@string/title_activity_choose_contact" > | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.ManageAccountActivity" | ||
android:configChanges="orientation|screenSize" | ||
android:label="@string/title_activity_manage_accounts" > | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.EditAccountActivity" | ||
android:windowSoftInputMode="stateHidden|adjustResize" > | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.ConferenceDetailsActivity" | ||
android:label="@string/title_activity_conference_details" | ||
android:windowSoftInputMode="stateHidden" > | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.ContactDetailsActivity" | ||
android:label="@string/title_activity_contact_details" | ||
android:windowSoftInputMode="stateHidden" > | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.PublishProfilePictureActivity" | ||
android:label="@string/mgmt_account_publish_avatar" | ||
android:windowSoftInputMode="stateHidden" > | ||
</activity> | ||
<activity | ||
android:name="eu.siacs.conversations.ui.ShareWithActivity" | ||
android:label="@string/title_activity_conversations" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
|
||
<data android:mimeType="text/plain" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
|
||
<data android:mimeType="image/*" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name="de.duenndns.ssl.MemorizingActivity" /> | ||
</application> | ||
|
||
</manifest> |
25 changes: 25 additions & 0 deletions
25
conversations/src/main/java/eu/siacs/conversations/Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package eu.siacs.conversations; | ||
|
||
import android.graphics.Bitmap; | ||
|
||
public final class Config { | ||
|
||
public static final String LOGTAG = "conversations"; | ||
|
||
public static final int PING_MAX_INTERVAL = 300; | ||
public static final int PING_MIN_INTERVAL = 30; | ||
public static final int PING_TIMEOUT = 10; | ||
public static final int CONNECT_TIMEOUT = 90; | ||
public static final int CARBON_GRACE_PERIOD = 60; | ||
|
||
public static final int AVATAR_SIZE = 192; | ||
public static final Bitmap.CompressFormat AVATAR_FORMAT = Bitmap.CompressFormat.WEBP; | ||
|
||
public static final int MESSAGE_MERGE_WINDOW = 20; | ||
|
||
public static final boolean PARSE_EMOTICONS = false; | ||
|
||
private Config() { | ||
|
||
} | ||
} |
Oops, something went wrong.