Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- jcenter()
- mavenCentral()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:2.1.2'
- classpath 'com.google.gms:google-services:2.1.0'
- }
- }
- apply plugin: 'com.android.application'
- allprojects {
- repositories {
- jcenter()
- mavenCentral()
- }
- }
- //below script worked but I dont want it run every click on run button, so I disable it
- //task build_native << {
- // def script = "bash build_native.sh".execute()
- // script.in.eachLine { line -> println line }
- // script.err.eachLine { line -> println "ERROR: " + line }
- // script.waitFor()
- //}
- //
- //preBuild.dependsOn(build_native)
- dependencies {
- compile fileTree(dir: 'libs', include: '*.jar')
- compile project(':ZaloSDK')
- compile project(':libcocos2dx')
- compile project(':ZMP_SDK_v1')
- compile('com.facebook.android:facebook-android-sdk:[4,5)') {
- exclude group: 'com.android.support', module: 'support-annotations'
- exclude group: 'com.android.support', module: 'cardview-v7'
- exclude group: 'com.android.support', module: 'support-v4'
- }
- compile('com.google.android.gms:play-services-games:8.4.0') {
- exclude group: 'com.android.support', module: 'support-v4'
- exclude group: 'com.android.support', module: 'support-annotations'
- exclude module: 'play-services-basement'
- }
- compile('com.google.android.gms:play-services-gcm:8.4.0') {
- exclude group: 'com.android.support', module: 'support-v4'
- exclude group: 'com.android.support', module: 'support-annotations'
- exclude module: 'play-services-basement'
- exclude module: 'play-services-drive'
- exclude module: 'play-services-base'
- }
- compile('com.android.support:cardview-v7:23.2.0')
- }
- apply plugin: 'com.google.gms.google-services'
- android {
- signingConfigs {
- debug {
- storeFile file('../debug.keystore')
- }
- release {
- storeFile file('../releasekeystore.jks')
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- }
- debug {
- signingConfig signingConfigs.release
- }
- }
- lintOptions {
- checkReleaseBuilds false
- abortOnError false
- }
- compileSdkVersion 23
- buildToolsVersion '23.0.2'
- defaultConfig {
- }
- sourceSets {
- main {
- manifest.srcFile 'AndroidManifest.xml'
- java.srcDirs = ['src']
- resources.srcDirs = ['src']
- aidl.srcDirs = ['src']
- renderscript.srcDirs = ['src']
- res.srcDirs = ['res']
- assets.srcDirs = ['assets']
- jniLibs.srcDirs = ["libs"]
- }
- // Move the tests to tests/java, tests/res, etc...
- instrumentTest.setRoot('tests')
- // Move the build types to build-types/<type>
- // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
- // This moves them out of them default location under src/<type>/... which would
- // conflict with src/ being used by the main source set.
- // Adding new build types or product flavors should be accompanied
- // by a similar customization.
- debug.setRoot('build-types/debug')
- release.setRoot('build-types/release')
- }
- }
Add Comment
Please, Sign In to add comment