Skip to content

Instantly share code, notes, and snippets.

@PrashamTrivedi
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PrashamTrivedi/4d5cc31e85509c4aab70 to your computer and use it in GitHub Desktop.
Save PrashamTrivedi/4d5cc31e85509c4aab70 to your computer and use it in GitHub Desktop.
Files I use to build the project, Includes VMOptions and gradle files.
apply plugin: 'com.android.application'
repositories {
maven {
url 'http://google-api-client-libraries.appspot.com/mavenrepo'
}
mavenCentral()
mavenLocal()
}
android {
compileSdkVersion 20
buildToolsVersion '20.0.0'
signingConfigs {
release {
storeFile file(STORE_FILE)
storePassword STORE_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
}
}
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
versionCode 1
versionName '1.0'
}
buildTypes {
release {
debuggable true
runProguard false
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.1.0'
// You must install or update the Support Repository through the SDK manager to use this dependency.
compile 'com.android.support:support-v4:19.1.0'
compile 'com.google.android.gms:play-services:5.0.77'
compile 'com.github.johnkil.android-robototextview:robototextview:2.0.1'
compile ('com.celites.knowyourscreen.appengine:devicesApi:v1-1.18.0-rc-SNAPSHOT') {
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}
compile ('com.celites.knowyourscreen.appengine:registration:v1-1.18.0-rc-SNAPSHOT') {
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}
compile ('com.celites.knowyourscreen.appengine:messaging:v1-1.18.0-rc-SNAPSHOT') {
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}
// Add the Google API client library.
compile('com.google.api-client:google-api-client:1.18.0-rc') {
// Exclude artifacts that the Android SDK/Runtime provides.
exclude(group: 'xpp3', module: 'xpp3')
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
exclude(group: 'junit', module: 'junit')
exclude(group: 'com.google.android', module: 'android')
}
compile ('com.google.api-client:google-api-client-android:1.18.0-rc'){
exclude(group: 'com.google.android.google-play-services', module: 'google-play-services')
}
compile('com.google.http-client:google-http-client-android:1.18.0-rc') {
exclude(group: 'com.google.android', module: 'android')
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}
compile ('com.google.appengine:appengine-endpoints:1.9.4'){
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}
compile ('com.google.appengine:appengine-endpoints-deps:1.9.4'){
exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}
}
// Currently, the appengine gradle plugin's appengine devappserver launch doesn't interact well with Intellij/AndroidStudio's
// Gradle integration. As a temporary solution, please launch from the command line.
// ./gradlew modulename:appengineRun
// If you would like more information on the gradle-appengine-plugin please refer to the github page
// https://github.com/GoogleCloudPlatform/gradle-appengine-plugin
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.6'
}
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.6'
compile 'com.google.appengine:appengine-endpoints:1.9.6'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.6'
compile 'javax.servlet:servlet-api:2.5'
compile 'com.googlecode.objectify:objectify:4.0b3'
compile 'com.ganyo:gcm-server:1.0.2'
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
endpoints {
getClientLibsOnBuild = true
getDiscoveryDocsOnBuild = true
}
}
-Xms512m
-Xmx2048m
-XX:MaxPermSize=2g
-XX:ReservedCodeCacheSize=96m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Didea.project.structure.max.errors.to.show=0
-Djsse.enableSNIExtension=false
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+HeapDumpOnOutOfMemoryError
-Didea.platform.prefix=AndroidStudio
-Didea.paths.selector=AndroidStudioBeta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment