forked from stacks-archive/blockstack-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (77 loc) · 2.67 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
plugins {
id 'org.ajoberstar.git-publish' version '2.1.0'
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'org.jetbrains.dokka-android'
group = 'com.github.blockstack'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
versionCode 2
versionName "0.2.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
debug {
storeFile mySigningConfigs.debug.storeFile
storePassword mySigningConfigs.debug.storePassword
keyAlias mySigningConfigs.debug.keyAlias
keyPassword mySigningConfigs.debug.keyPassword
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
testOptions {
unitTests.returnDefaultValues = true
}
}
dokka {
includes = ['module.md']
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
}
gitPublish {
repoUri = '[email protected]:blockstack/blockstack-android.git'
branch = 'gh-pages'
contents {
from 'build/javadoc/blockstack-sdk'
}
commitMessage = '[skip ci] udpateing docs' // defaults to 'Generated by gradle-git-publish'
}
dependencies {
implementation 'com.eclipsesource.j2v8:j2v8:4.8.4@aar'
implementation 'androidx.browser:browser:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.json:json:20180130'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1'
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
task downloadBlockstackJs(type: Download) {
src 'https://github.com/blockstack/blockstack.js/archive/v19.1.0.zip'
dest new File(buildDir, 'blockstack.js.zip')
}
task updateBlockstackJs(dependsOn: downloadBlockstackJs, type: Copy) {
from zipTree(downloadBlockstackJs.dest)
into 'src/main/res/raw'
include ('*/dist/blockstack.js')
rename ('(.*)', 'org_blockstack_$1')
eachFile { fcp ->
fcp.path = fcp.name
}
}