Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- mavenCentral()
- maven { url 'http://download.crashlytics.com/maven' }
- }
- dependencies {
- classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.16.0'
- classpath 'com.android.tools.build:gradle:1.5.0'
- }
- }
- apply plugin: 'com.android.application'
- //Since this project is an Android app, the build.gradle file utilises the Android plugin.//
- apply plugin: 'crashlytics'
- apply plugin: 'jacoco'
- repositories {
- mavenCentral()
- maven { url 'http://download.crashlytics.com/maven' }
- flatDir {
- dirs 'aars'
- }
- }
- android {
- // configures all our project’s Android-specific parameters, and tells Gradle which version of Android it should build your project with.
- // If you’ve developed Android applications before, the following should all be familiar.//
- compileSdkVersion 23 // The api project is targeting
- buildToolsVersion '23.0.2' // version of build tools we're using
- testBuildType "coverage"
- // added by amrut to support apace HttpClient in android 6.0
- useLibrary 'org.apache.http.legacy'
- dexOptions {
- incremental true
- javaMaxHeapSize "2048M"
- }
- // different versions of the same application
- // different dimentsions than build types
- // This is combined with buildtypes
- productFlavors {
- def STRING = "String"
- def BOOLEAN = "boolean"
- def LANGUAGE = "language"
- def CLUSTER = "cluster"
- def TRUE = "true"
- def FALSE = "false"
- def GCM_SENDER = "gcm_sender"
- def UA_DEV_KEY = "ua_dev_key"
- def UA_DEV_SECRET = "ua_dev_secret"
- def UA_PROD_KEY = "ua_prod_key"
- def UA_PROD_SECRET = "ua_prod_secret"
- def INMOBI_PROPERTY_ID = "inmobi_property_id"
- def CLIENT_ID = "clientId"
- def CLIENT_SECRET = "clientSecret"
- def HAS_TOP_SITE_SECTION = "top_site_section"
- def HAS_ONBOARDING = "has_onboarding"
- plainCheez {
- applicationId "com.cheezburger.icanhas"
- buildConfigField STRING, LANGUAGE, "\"[\\\"en\\\"]\""
- buildConfigField STRING, CLUSTER, "\"cheezburger\""
- buildConfigField STRING, GCM_SENDER, "\"208614212457\""
- buildConfigField STRING, UA_DEV_KEY, "\"PYz6KyQGRmCy1KvGbrhtgg\""
- buildConfigField STRING, UA_DEV_SECRET, "\"oYJauGtqSyCVfeYK2JoN2A\""
- buildConfigField STRING, UA_PROD_KEY, "\"KNOjpN0KSDeijz5_evW7cQ\""
- buildConfigField STRING, UA_PROD_SECRET, "\"vRld-Ss8Q6S8AwXaLBJDsA\""
- buildConfigField STRING, INMOBI_PROPERTY_ID, "\"903366710ef142dcac8e9986e0c3a897\""
- buildConfigField STRING, CLIENT_ID, "\"729fef12049d485ca4cfdf5441be9196\""
- buildConfigField STRING, CLIENT_SECRET, "\"5c5dfd67753a4c1f868cb1e11afe4533\""
- buildConfigField BOOLEAN, HAS_TOP_SITE_SECTION, TRUE
- buildConfigField BOOLEAN, HAS_ONBOARDING, TRUE
- }
- amazonCheez {
- applicationId "com.cheezburger.icanhas"
- buildConfigField STRING, LANGUAGE, "\"[\\\"en\\\"]\""
- buildConfigField STRING, CLUSTER, "\"cheezburger\""
- buildConfigField STRING, GCM_SENDER, "\"208614212457\""
- buildConfigField STRING, UA_DEV_KEY, "\"PYz6KyQGRmCy1KvGbrhtgg\""
- buildConfigField STRING, UA_DEV_SECRET, "\"oYJauGtqSyCVfeYK2JoN2A\""
- buildConfigField STRING, UA_PROD_KEY, "\"KNOjpN0KSDeijz5_evW7cQ\""
- buildConfigField STRING, UA_PROD_SECRET, "\"vRld-Ss8Q6S8AwXaLBJDsA\""
- buildConfigField STRING, CLIENT_ID, "\"729fef12049d485ca4cfdf5441be9196\""
- buildConfigField STRING, CLIENT_SECRET, "\"5c5dfd67753a4c1f868cb1e11afe4533\""
- buildConfigField BOOLEAN, HAS_TOP_SITE_SECTION, TRUE
- buildConfigField BOOLEAN, HAS_ONBOARDING, TRUE
- }
- spanishCheez {
- applicationId "com.cheezburger.icanhas.espanol"
- buildConfigField STRING, LANGUAGE, "\"[\\\"es\\\"]\""
- buildConfigField STRING, CLUSTER, "\"loquillo\""
- buildConfigField STRING, GCM_SENDER, "\"208614212457\""
- buildConfigField STRING, UA_DEV_KEY, "\"PL1pIZBVRA-w1oeRsxHmgA\""
- buildConfigField STRING, UA_DEV_SECRET, "\"Pk7anFcwRf2jBeMOxvDd2A\""
- buildConfigField STRING, UA_PROD_KEY, "\"g9Ou9lWdRfaAbnMIeFW_CQ\""
- buildConfigField STRING, UA_PROD_SECRET, "\"0vo6gybYSwKdPJXElrFXGg\""
- buildConfigField STRING, CLIENT_ID, "\"492fef120ccd485da4cdfd1441ce7116\""
- buildConfigField STRING, CLIENT_SECRET, "\"2a444a673aab1f868e87cde22afe4538\""
- buildConfigField BOOLEAN, HAS_TOP_SITE_SECTION, FALSE
- buildConfigField BOOLEAN, HAS_ONBOARDING, FALSE
- }
- }
- defaultConfig {
- minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
- targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
- versionCode 90
- versionName "2.0.90"
- testInstrumentationRunner "android.support.multidex.MultiDexTestRunner"
- multiDexEnabled true
- }
- signingConfigs {
- debug {
- storeFile file("jenkinsdebug.keystore")
- }
- }
- packagingOptions {
- exclude 'META-INF/DEPENDENCIES'
- exclude 'META-INF/NOTICE'
- exclude 'META-INF/LICENSE'
- exclude 'META-INF/LICENSE.txt'
- exclude 'META-INF/NOTICE.txt'
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
- }
- buildTypes {
- //‘BuildTypes’ controls how our app is built and packaged. If we want to create our own build variants,
- // we’ll need to add them to this section.//
- def BOOLEAN = "boolean"
- def STRING = "String"
- def TRUE = "true"
- def FALSE = "false"
- def DEBUG_NETWORK = "debugNetwork"
- def RELEASE = "release"
- def SERVER_URL = "serverUrl"
- def ECHO_URL = "echoUrl"
- def COMMENT_DOMAIN = "commentDomain"
- def UA_IS_PRODUCTION = "ua_is_production"
- //Gradle runs ProGuard during the build process.//
- release {
- minifyEnabled true
- //Applies the default ProGuard settings from the Android SDK.//
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules-new.pro', 'proguard/proguard-samsung-only.pro', 'proguard/proguard-crashlytics.pro', 'proguard/proguard-facebook.pro', 'proguard/proguard-google-play-services.pro', 'proguard/proguard-gson.pro', 'proguard/proguard-joda-time.pro', 'proguard/proguard-square-retrofit.pro', 'proguard/proguard-google-admob.pro', 'proguard/proguard-sharethrough.pro', 'proguard/proguard-urban-airship.pro', 'proguard/proguard-kryo.pro', 'proguard/proguard-roboguice.pro', 'proguard/proguard-samsung.pro', 'proguard/proguard-comscore.pro'
- buildConfigField BOOLEAN, DEBUG_NETWORK, FALSE
- buildConfigField BOOLEAN, RELEASE, TRUE
- buildConfigField STRING, SERVER_URL, "\"https://apiv2.cheezburger.com/v2\""
- buildConfigField STRING, ECHO_URL, "\"http://s.chzbgr.com/echo?\""
- buildConfigField STRING, COMMENT_DOMAIN, "\".cheezburger.com\""
- buildConfigField BOOLEAN, UA_IS_PRODUCTION, TRUE
- debuggable false
- }
- stage {
- versionNameSuffix '-STAGE'
- minifyEnabled false
- buildConfigField BOOLEAN, DEBUG_NETWORK, TRUE
- buildConfigField BOOLEAN, RELEASE, FALSE
- buildConfigField STRING, SERVER_URL, "\"https://test-apiv2-01.cloudapp.net/v2\""
- buildConfigField STRING, ECHO_URL, "\"http://s.chzbgr.com/echo?\""
- buildConfigField STRING, COMMENT_DOMAIN, "\".cheezburger.com\""
- buildConfigField BOOLEAN, UA_IS_PRODUCTION, FALSE
- debuggable true
- }
- debug {
- versionNameSuffix '-DEBUG'
- minifyEnabled false
- // testCoverageEnabled true
- buildConfigField BOOLEAN, DEBUG_NETWORK, TRUE
- buildConfigField BOOLEAN, RELEASE, FALSE
- buildConfigField STRING, SERVER_URL, "\"https://test-apiv2-01.cloudapp.net/v2\""
- buildConfigField STRING, ECHO_URL, "\"http://s.chzbgr.com/echo?\""
- buildConfigField STRING, COMMENT_DOMAIN, "\".cheezburger.com\""
- buildConfigField BOOLEAN, UA_IS_PRODUCTION, FALSE
- debuggable true
- }
- coverage {
- versionNameSuffix '-COVERAGE'
- minifyEnabled false
- testCoverageEnabled true
- buildConfigField BOOLEAN, DEBUG_NETWORK, TRUE
- buildConfigField BOOLEAN, RELEASE, FALSE
- buildConfigField STRING, SERVER_URL, "\"https://test-apiv2-01.cloudapp.net/v2\""
- buildConfigField STRING, ECHO_URL, "\"http://s.chzbgr.com/echo?\""
- buildConfigField STRING, COMMENT_DOMAIN, "\".cheezburger.com\""
- buildConfigField BOOLEAN, UA_IS_PRODUCTION, FALSE
- debuggable true
- signingConfig signingConfigs.debug
- }
- }
- lintOptions {
- //checkReleaseBuilds false
- // Or, if you prefer, you can continue to check for errors in release builds,
- // but continue the build even when errors are found:
- abortOnError false
- }
- jacoco {
- version = '0.7.2.201409121644'
- }
- }
- def coverageSourceDirs = [
- '../app/src/main/java'
- ]
- task jacocoTestReport(type: JacocoReport, dependsOn: "connectedAndroidTest") {
- group = "Reporting"
- description = "Generate Jacoco coverage reports"
- classDirectories = fileTree(
- dir: '../app/build/intermediates/classes/coverage',
- excludes: ['**/R.class',
- '**/R$*.class',
- '**/*$ViewInjector*.*',
- '**/BuildConfig.*',
- '**/Manifest*.*']
- )
- //additionalSourceDirs = files(coverageSourceDirs)
- sourceDirectories = files(coverageSourceDirs)
- executionData = files('../app/build/outputs/code-coverage/connected/coverage.ec')
- reports {
- xml.enabled = true
- html.enabled = true
- }
- }
- apply plugin: 'com.android.application'
- dependencies {
- // Although we can add JAR files by compiling them individually, this can be time-consuming if we've lots of JARs.
- // In this example, we’re telling Gradle to add all the JAR files in the app/libs folder.//
- compile fileTree(dir: 'libs', include: ['*.jar'])
- androidTestCompile 'com.android.support:multidex-instrumentation:1.0.1'
- //Android Support Libs
- //Networking Lib
- //Image Lib
- //Time Handling
- //Better String Handling
- //Event Bus
- //Utils Classes
- //Better String Handling
- compile 'com.squareup.phrase:phrase:1.0.3'
- //Event Bus
- //Using with Retrofit (experiment)
- //compile 'com.netflix.rxjava:rxjava-android:0.+'
- //Image Zoom
- //Key Value Database
- //Facebook
- compile project(':paralloid')
- compile project(':mASTAdView')
- //Builder
- plainCheezCompile project(path: ':builder', configuration: 'cheezburgerRelease')
- spanishCheezCompile project(path: ':builder', configuration: 'loquilloRelease')
- amazonCheezCompile project(path: ':builder', configuration: 'cheezburgerRelease')
- compile project(':builder')
- //circle image view
- //circle progress view
- //urban airship
- //apptentive
- //Apptentive
- // Dependency injection
- provided 'org.roboguice:roboblender:3.0.1'
- // MultiDex
- compile(name: 'sharethrough-android-sdk', ext: 'aar')
- compile files('libs/comscore.jar')
- //Chromecast
- // to get around https://code.google.com/p/android/issues/detail?id=52962, we need to
- // depend on both debug and release versions of the library
- releaseCompile project(path: ':CastCompanionLibrary-android', configuration: 'release')
- debugCompile project(path: ':CastCompanionLibrary-android', configuration: 'debug')
- coverageCompile project(path: ':CastCompanionLibrary-android', configuration: 'debug')
- stageCompile project(path: ':CastCompanionLibrary-android', configuration: 'debug')
- compile files('libs/FlurryAnalytics-5.6.0.jar')
- compile 'com.android.support:appcompat-v7:23.1.1'
- compile 'com.android.support:cardview-v7:23.1.1'
- compile 'com.android.support:recyclerview-v7:23.1.1'
- compile 'com.squareup.retrofit:retrofit:1.9.0'
- compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0'
- compile 'com.squareup.okhttp:okhttp:2.4.0'
- compile 'com.github.bumptech.glide:glide:3.6.0'
- compile 'com.github.bumptech.glide:okhttp-integration:1.3.0'
- compile 'joda-time:joda-time:2.3'
- compile 'com.squareup.phrase:phrase:1.0.3'
- compile 'com.squareup:otto:1.3.7'
- compile 'org.apache.commons:commons-lang3:3.3.1'
- compile 'com.github.chrisbanes.photoview:library:1.2.3'
- compile 'com.snappydb:snappydb-lib:0.5.0'
- compile 'com.esotericsoftware.kryo:kryo:2.24.0'
- compile 'com.facebook.android:facebook-android-sdk:3.20.0'
- compile 'de.hdodenhof:circleimageview:1.2.1'
- compile 'com.github.castorflex.smoothprogressbar:library-circular:1.0.0'
- compile 'com.crashlytics.android:crashlytics:1.1.13'
- compile 'com.urbanairship:urbanairship-lib:5.1.2@aar'
- compile 'com.google.android.gms:play-services-base:8.4.0'
- compile 'com.apptentive:apptentive-android:1.6.6@aar'
- compile 'com.etsy.android.grid:library:1.0.5'
- compile 'org.roboguice:roboguice:3.0.1'
- compile 'com.android.support:multidex:1.0.1'
- compile 'org.jsoup:jsoup:1.8.1'
- compile 'com.google.android.gms:play-services-ads:8.4.0'
- compile 'com.google.android.gms:play-services-gcm:8.4.0'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement