From 07b47172a08c01c248c6f69bae48d9e60695a14b Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Wed, 22 Oct 2014 15:39:53 -0400 Subject: Add build deps and move build props to build file --- build.gradle | 59 ++++++++++++++++++++++++----- conversations/src/main/AndroidManifest.xml | 8 +--- libs/bcprov-jdk15on-150.jar | Bin 0 -> 2732684 bytes libs/otr4j-0.10.jar | Bin 0 -> 95873 bytes 4 files changed, 51 insertions(+), 16 deletions(-) create mode 100644 libs/bcprov-jdk15on-150.jar create mode 100644 libs/otr4j-0.10.jar diff --git a/build.gradle b/build.gradle index 8942ba1c..ab032571 100644 --- a/build.gradle +++ b/build.gradle @@ -1,16 +1,57 @@ // 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' - } + repositories { + jcenter() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.12.2' + } } allprojects { - repositories { - jcenter() - } + repositories { + jcenter() + mavenCentral() + } +} + +apply plugin: 'android' + +repositories { + mavenCentral() +} + +android { + compileSdkVersion 19 + buildToolsVersion "19.1" + + defaultConfig { + minSdkVersion 14 + targetSdkVersion 19 + versionCode 32 + versionName "0.8-alpha" + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } + buildTypes { + release { + runProguard true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + debug { + runProguard false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } +} + +dependencies { + // ToDo: Move libs here if possible (instead of including the jars) + "compile 'com.android.support:support-v13:19.1.0'" + compile fileTree(dir: 'libs', include: ['*.jar']) } diff --git a/conversations/src/main/AndroidManifest.xml b/conversations/src/main/AndroidManifest.xml index a66de8ba..7bde645f 100644 --- a/conversations/src/main/AndroidManifest.xml +++ b/conversations/src/main/AndroidManifest.xml @@ -1,13 +1,7 @@ - - + package="eu.siacs.conversations"> diff --git a/libs/bcprov-jdk15on-150.jar b/libs/bcprov-jdk15on-150.jar new file mode 100644 index 00000000..d4b510d7 Binary files /dev/null and b/libs/bcprov-jdk15on-150.jar differ diff --git a/libs/otr4j-0.10.jar b/libs/otr4j-0.10.jar new file mode 100644 index 00000000..d4fc3a91 Binary files /dev/null and b/libs/otr4j-0.10.jar differ -- cgit v1.2.3