2020-05-24 21:48:01 +02:00
|
|
|
import com.google.gms.googleservices.GoogleServicesPlugin
|
|
|
|
|
2020-05-23 08:49:00 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2020-02-27 19:20:06 +01:00
|
|
|
|
|
|
|
android {
|
2020-05-23 08:49:00 +02:00
|
|
|
compileSdkVersion 29
|
|
|
|
buildToolsVersion "29.0.1"
|
2020-02-27 19:20:06 +01:00
|
|
|
flavorDimensions "default"
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "io.lbry.browser"
|
2020-05-23 08:49:00 +02:00
|
|
|
minSdkVersion 21
|
|
|
|
targetSdkVersion 29
|
2021-01-25 18:54:00 +01:00
|
|
|
versionCode 1614
|
|
|
|
versionName "0.16.14"
|
2020-05-23 08:49:00 +02:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2020-02-27 19:20:06 +01:00
|
|
|
}
|
2020-05-23 08:49:00 +02:00
|
|
|
|
2021-01-25 18:52:21 +01:00
|
|
|
packagingOptions {
|
2020-08-19 18:23:35 +02:00
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
2020-09-14 12:06:39 +02:00
|
|
|
exclude 'lib/x86_64/darwin/libscrypt.dylib'
|
2020-08-19 18:23:35 +02:00
|
|
|
}
|
|
|
|
|
2020-02-27 19:20:06 +01:00
|
|
|
productFlavors {
|
|
|
|
__32bit {
|
2020-03-03 16:48:22 +01:00
|
|
|
versionCode android.defaultConfig.versionCode * 10 + 1
|
2020-02-27 19:20:06 +01:00
|
|
|
ndk {
|
|
|
|
abiFilter "armeabi-v7a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
__64bit {
|
2020-03-03 16:48:22 +01:00
|
|
|
versionCode android.defaultConfig.versionCode * 10 + 2
|
2020-02-27 19:20:06 +01:00
|
|
|
ndk {
|
|
|
|
abiFilter "arm64-v8a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-23 08:49:00 +02:00
|
|
|
|
2020-02-27 19:20:06 +01:00
|
|
|
buildTypes {
|
2020-08-19 18:23:35 +02:00
|
|
|
debug {
|
2020-08-19 19:09:37 +02:00
|
|
|
Properties twitterProps = new Properties()
|
|
|
|
twitterProps.load(project.file('twitter.properties').newDataInputStream())
|
2020-08-19 18:23:35 +02:00
|
|
|
resValue "string", "TWITTER_CONSUMER_KEY", "\"${twitterProps.getProperty("twitterConsumerKey")}\""
|
|
|
|
resValue "string", "TWITTER_CONSUMER_SECRET", "\"${twitterProps.getProperty("twitterConsumerSecret")}\""
|
|
|
|
}
|
2020-02-27 19:20:06 +01:00
|
|
|
release {
|
2020-08-19 19:09:37 +02:00
|
|
|
Properties twitterProps = new Properties()
|
|
|
|
twitterProps.load(project.file('twitter.properties').newDataInputStream())
|
2020-08-19 18:23:35 +02:00
|
|
|
resValue "string", "TWITTER_CONSUMER_KEY", "\"${twitterProps.getProperty("twitterConsumerKey")}\""
|
|
|
|
resValue "string", "TWITTER_CONSUMER_SECRET", "\"${twitterProps.getProperty("twitterConsumerSecret")}\""
|
2020-05-23 08:49:00 +02:00
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2020-02-27 19:20:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-23 08:49:00 +02:00
|
|
|
task printVersionName {
|
|
|
|
doLast {
|
|
|
|
println android.defaultConfig.versionName
|
2020-02-27 19:20:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-19 18:23:35 +02:00
|
|
|
configurations {
|
|
|
|
all {
|
|
|
|
exclude module: 'httpclient'
|
|
|
|
exclude module: 'commons-logging'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-23 08:49:00 +02:00
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
2020-06-02 09:55:34 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
|
2020-05-23 08:49:00 +02:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2020-06-05 10:30:54 +02:00
|
|
|
implementation 'com.google.android.material:material:1.3.0-alpha01'
|
2020-05-23 08:49:00 +02:00
|
|
|
implementation "androidx.cardview:cardview:1.0.0"
|
2020-11-26 00:04:37 +01:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
|
|
implementation 'androidx.navigation:navigation-fragment:2.3.1'
|
|
|
|
implementation 'androidx.navigation:navigation-ui:2.3.1'
|
2020-05-23 08:49:00 +02:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2020-11-26 00:04:37 +01:00
|
|
|
implementation 'androidx.webkit:webkit:1.4.0-rc01'
|
2020-05-24 11:11:31 +02:00
|
|
|
implementation 'androidx.camera:camera-core:1.0.0-beta03'
|
2020-05-23 08:49:00 +02:00
|
|
|
implementation 'androidx.camera:camera-camera2:1.0.0-beta03'
|
|
|
|
implementation 'androidx.camera:camera-lifecycle:1.0.0-beta03'
|
|
|
|
implementation 'androidx.camera:camera-view:1.0.0-alpha10'
|
2020-06-13 17:14:06 +02:00
|
|
|
implementation 'androidx.browser:browser:1.2.0'
|
2020-10-05 17:56:17 +02:00
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
2020-05-23 08:49:00 +02:00
|
|
|
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.4.1'
|
2020-11-26 00:04:37 +01:00
|
|
|
implementation 'com.google.firebase:firebase-analytics:18.0.0'
|
|
|
|
implementation 'com.google.android.gms:play-services-base:17.5.0'
|
|
|
|
implementation 'com.google.firebase:firebase-messaging:21.0.0'
|
2020-08-19 18:23:35 +02:00
|
|
|
implementation 'com.google.oauth-client:google-oauth-client:1.30.4'
|
|
|
|
|
2020-11-26 00:04:37 +01:00
|
|
|
implementation 'com.android.billingclient:billing:3.0.2'
|
2020-05-23 08:49:00 +02:00
|
|
|
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
2021-01-11 01:10:23 +01:00
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-core:2.12.2'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-dash:2.12.2'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-ui:2.12.2'
|
|
|
|
implementation 'com.google.android.exoplayer:extension-cast:2.12.2'
|
|
|
|
implementation 'com.google.android.exoplayer:extension-mediasession:2.12.2'
|
2020-05-23 08:49:00 +02:00
|
|
|
|
|
|
|
implementation 'com.google.android:flexbox:2.0.1'
|
|
|
|
|
|
|
|
implementation 'com.hbb20:ccp:2.3.8'
|
|
|
|
|
|
|
|
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
|
|
|
implementation 'com.atlassian.commonmark:commonmark:0.14.0'
|
|
|
|
|
|
|
|
implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.3.1.LTS'
|
|
|
|
|
2020-12-14 18:17:13 +01:00
|
|
|
implementation 'commons-codec:commons-codec:1.15'
|
2020-09-10 13:20:49 +02:00
|
|
|
implementation 'org.bitcoinj:bitcoinj-tools:0.14.7'
|
2020-09-09 15:16:22 +02:00
|
|
|
implementation 'org.java-websocket:Java-WebSocket:1.5.1'
|
|
|
|
|
2020-05-23 08:49:00 +02:00
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.10'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.10'
|
|
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2021-01-11 20:44:03 +01:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
2020-10-05 17:56:17 +02:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
2020-05-23 08:49:00 +02:00
|
|
|
|
2021-01-23 19:23:11 +01:00
|
|
|
__32bitImplementation 'io.lbry:lbrysdk32:0.88.0'
|
|
|
|
__64bitImplementation 'io.lbry:lbrysdk64:0.88.0'
|
2020-02-27 19:20:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
2020-05-24 21:48:01 +02:00
|
|
|
GoogleServicesPlugin.config.disableVersionCheck = true
|