SHOW:
|
|
- or go back to the newest paste.
| 1 | buildscript {
| |
| 2 | repositories {
| |
| 3 | jcenter() | |
| 4 | mavenCentral() | |
| 5 | } | |
| 6 | dependencies {
| |
| 7 | classpath 'com.android.tools.build:gradle:2.1.2' | |
| 8 | classpath 'com.google.gms:google-services:2.1.0' | |
| 9 | } | |
| 10 | } | |
| 11 | ||
| 12 | apply plugin: 'com.android.application' | |
| 13 | ||
| 14 | allprojects {
| |
| 15 | repositories {
| |
| 16 | jcenter() | |
| 17 | mavenCentral() | |
| 18 | } | |
| 19 | } | |
| 20 | ||
| 21 | //below script worked but I dont want it run every click on run button, so I disable it | |
| 22 | //task build_native << {
| |
| 23 | // def script = "bash build_native.sh".execute() | |
| 24 | // script.in.eachLine { line -> println line }
| |
| 25 | // script.err.eachLine { line -> println "ERROR: " + line }
| |
| 26 | // script.waitFor() | |
| 27 | //} | |
| 28 | // | |
| 29 | //preBuild.dependsOn(build_native) | |
| 30 | ||
| 31 | dependencies {
| |
| 32 | compile fileTree(dir: 'libs', include: '*.jar') | |
| 33 | compile project(':ZaloSDK')
| |
| 34 | compile project(':libcocos2dx')
| |
| 35 | compile project(':ZMP_SDK_v1')
| |
| 36 | compile('com.facebook.android:facebook-android-sdk:[4,5)') {
| |
| 37 | exclude group: 'com.android.support', module: 'support-annotations' | |
| 38 | exclude group: 'com.android.support', module: 'cardview-v7' | |
| 39 | exclude group: 'com.android.support', module: 'support-v4' | |
| 40 | } | |
| 41 | compile('com.google.android.gms:play-services-games:8.4.0') {
| |
| 42 | exclude group: 'com.android.support', module: 'support-v4' | |
| 43 | exclude group: 'com.android.support', module: 'support-annotations' | |
| 44 | exclude module: 'play-services-basement' | |
| 45 | } | |
| 46 | compile('com.google.android.gms:play-services-gcm:8.4.0') {
| |
| 47 | exclude group: 'com.android.support', module: 'support-v4' | |
| 48 | exclude group: 'com.android.support', module: 'support-annotations' | |
| 49 | exclude module: 'play-services-basement' | |
| 50 | exclude module: 'play-services-drive' | |
| 51 | exclude module: 'play-services-base' | |
| 52 | } | |
| 53 | compile('com.android.support:cardview-v7:23.2.0')
| |
| 54 | } | |
| 55 | ||
| 56 | apply plugin: 'com.google.gms.google-services' | |
| 57 | ||
| 58 | android {
| |
| 59 | signingConfigs {
| |
| 60 | debug {
| |
| 61 | storeFile file('../debug.keystore')
| |
| 62 | } | |
| 63 | release {
| |
| 64 | storeFile file('../releasekeystore.jks')
| |
| 65 | } | |
| 66 | } | |
| 67 | buildTypes {
| |
| 68 | release {
| |
| 69 | signingConfig signingConfigs.release | |
| 70 | } | |
| 71 | debug {
| |
| 72 | signingConfig signingConfigs.release | |
| 73 | } | |
| 74 | } | |
| 75 | lintOptions {
| |
| 76 | checkReleaseBuilds false | |
| 77 | abortOnError false | |
| 78 | } | |
| 79 | ||
| 80 | compileSdkVersion 23 | |
| 81 | buildToolsVersion '23.0.2' | |
| 82 | defaultConfig {
| |
| 83 | } | |
| 84 | sourceSets {
| |
| 85 | main {
| |
| 86 | manifest.srcFile 'AndroidManifest.xml' | |
| 87 | java.srcDirs = ['src'] | |
| 88 | resources.srcDirs = ['src'] | |
| 89 | aidl.srcDirs = ['src'] | |
| 90 | renderscript.srcDirs = ['src'] | |
| 91 | res.srcDirs = ['res'] | |
| 92 | assets.srcDirs = ['assets'] | |
| 93 | jniLibs.srcDirs = ["libs"] | |
| 94 | } | |
| 95 | ||
| 96 | // Move the tests to tests/java, tests/res, etc... | |
| 97 | instrumentTest.setRoot('tests')
| |
| 98 | ||
| 99 | // Move the build types to build-types/<type> | |
| 100 | // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... | |
| 101 | // This moves them out of them default location under src/<type>/... which would | |
| 102 | // conflict with src/ being used by the main source set. | |
| 103 | // Adding new build types or product flavors should be accompanied | |
| 104 | // by a similar customization. | |
| 105 | debug.setRoot('build-types/debug')
| |
| 106 | release.setRoot('build-types/release')
| |
| 107 | } | |
| 108 | } |