Skip to content

Instantly share code, notes, and snippets.

@xxnjdlys
Created April 16, 2018 05:10
Show Gist options
  • Save xxnjdlys/8002bc1b73321f958daea2e4399ce6ea to your computer and use it in GitHub Desktop.
Save xxnjdlys/8002bc1b73321f958daea2e4399ce6ea to your computer and use it in GitHub Desktop.
intergrating fabric.
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
/**
* firebase crashlytics
*/
apply plugin: 'io.fabric'
/**
* firebase crashlytics
*/
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.25.1'
}
}
android {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
/**
* includes the MoPub SDK and AVID library
*/
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
/**
* include adincube
*/
// maven { url 'http://repository.adincube.com/maven' }
/**
* The repository required for AdColony 3.0 and above
*/
maven { url "https://adcolony.bintray.com/AdColony" }
flatDir {
dirs 'libs'
}
}
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.cetusplay.remotephone"
minSdkVersion 16
targetSdkVersion 25
versionCode 382
versionName "3.8.2.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "2048M"
}
lintOptions {
fatal(
'MissingTranslation',
'UnknownIdInLayout',
'UniquePermission',
'NewApi',
'InlinedApi'
)
lintConfig file("../lint.xml")
}
signingConfigs {
release {
storeFile file(System.getenv("KEYSTORE_WKTV"))
storePassword System.getenv("KEYSTORE_PWD_WKTV")
keyAlias System.getenv("KEY_ALIAS_WKTV")
keyPassword System.getenv("KEYSTORE_PWD_WKTV")
v2SigningEnabled false
}
debug {
storeFile file(System.getenv("KEYSTORE_WKTV"))
storePassword System.getenv("KEYSTORE_PWD_WKTV")
keyAlias System.getenv("KEY_ALIAS_WKTV")
keyPassword System.getenv("KEYSTORE_PWD_WKTV")
v2SigningEnabled false
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
versionNameSuffix "-DEBUG-TEST"
minifyEnabled false
debuggable true
signingConfig signingConfigs.debug
}
}
productFlavors {
ad {
}
noad {
}
log {
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':common')
compile project(':protocollibrary')
compile project(':wkutil')
compile 'com.bigkoo:convenientbanner:2.0.5'
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:' + rootProject.ext.defSupportVer
//noinspection GradleDependency
compile 'com.android.support:support-v4:' + rootProject.ext.defSupportVer
//noinspection GradleDependency
compile 'com.android.support:recyclerview-v7:' + rootProject.ext.defSupportVer
//noinspection GradleDependency
compile 'com.android.support:palette-v7:' + rootProject.ext.defSupportVer
compile 'com.makeramen:roundedimageview:1.3.0'
compile 'com.squareup:otto:1.3.5'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.satyan:sugar:1.4'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'com.connectsdk:connect-sdk-android-lite:1.6.0'
compile ('com.google.firebase:firebase-core:' + rootProject.ext.playServiceVer){
transitive = true
exclude group: 'com.android.support', module: 'support-annotations'
}
/**
* firebase analytics
*/
compile 'com.google.firebase:firebase-analytics:' + rootProject.ext.playServiceVer
/**
* firebase ads
*/
compile 'com.google.firebase:firebase-ads:' + rootProject.ext.playServiceVer
compile 'com.mopub.mediation:admob:11.8.0.0'
compile('com.mopub:mopub-sdk:4.19.0@aar') {
transitive = true
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'support-v4'
}
compile 'com.moat.analytics.mobile.mpub:moat-mobile-app-kit:2.4.1'
compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'support-v4'
}
/**
* firebase crash report
*/
compile 'com.google.firebase:firebase-crash:' + rootProject.ext.playServiceVer
compile 'com.flurry.android:analytics:6.3.1'
compile('com.facebook.android:audience-network-sdk:4.25.0') {
exclude group: 'com.google.android.gms'
}
compile project(path: ':baserecyclerviewadapter')
/**
* AdinCube
*/
// compile ('com.adincube.sdk:AdinCube-Java-606ebe:1.+@aar') {
// transitive = true
// exclude group: 'com.android.support', module: 'appcompat-v7'
// exclude group: 'com.android.support', module: 'support-v4'
// }
/**
* AdColony
*/
compile 'com.adcolony:sdk:3.3.2'
/**
* MobVista
*/
// compile(name: 'mobvista_alphab', ext: 'aar')
// compile(name: 'mobvista_common', ext: 'aar')
// compile(name: 'mobvista_mvjscommon', ext: 'aar')
// compile(name: 'mobvista_mvnative', ext: 'aar')
// compile(name: 'mobvista_nativeex', ext: 'aar')
// compile(name: 'mobvista_playercommon', ext: 'aar')
// compile(name: 'mobvista_videocommon', ext: 'aar')
// compile project(':mobvista'){
// exclude group: 'com.android.support', module: 'appcompat-v7'
// exclude group: 'com.android.support', module: 'support-v4'
// }
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
apply plugin: 'com.google.gms.google-services'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment