plugins {id "com.moowork.node" version "1.2.0"}apply plugin: 'com.android.application'apply plugin: 'ru.tinkoff.gradle.jarjar'android {compileSdkVersion 27defaultConfig {applicationId "com.ithit.webdav.samples.androidfsstorage"minSdkVersion 19targetSdkVersion 27versionCode 1versionName "1.0"testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"}buildTypes {release {minifyEnabled trueproguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}}applicationVariants.all { variant ->variant.mergeAssets.doLast {delete(fileTree(dir: variant.mergeAssets.outputDir, includes: ['**/webdav.client/Help/**', '**/webdav.client/Tests/**']))}}}jarJar {rules = ['stax-api-1.0.1.jar' : 'javax.xml.** com.ithit.webdav.xml.@1','webdav-server-4.2.2822.jar': 'javax.xml.stream.** com.ithit.webdav.xml.stream.@1']}node {// Version of node to use.version = '4.6.0'// Version of npm to use.npmVersion = '2.15.9'// Base URL for fetching node distributions (change if you have a mirror).distBaseUrl = 'https://nodejs.org/dist'// If true, it will download node using above parameters.// If false, it will try to use globally installed node.download = true// Set the work directory for unpacking nodeworkDir = file("${project.buildDir}/node")// Set the work directory for NPMnpmWorkDir = file("${project.buildDir}/npm")// Set the work directory where node_modules should be locatednodeModulesDir = file("${project.projectDir}/src/main/assets/wwwroot/js")}build.dependsOn(npmInstall)dependencies {implementation fileTree(dir: 'libs', include: ['*.jar'])implementation fileTree(dir: 'build/libs', include: ['*.jar'])androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {exclude group: 'com.android.support', module: 'support-annotations'})implementation 'io.apisense:rhino-android:1.0'implementation 'commons-io:commons-io:2.4'implementation 'com.google.code.gson:gson:2.7'implementation 'com.android.support:appcompat-v7:27.1.1'implementation('com.ithit.webdav.integration:android-integration:4.2.2822', {exclude group: 'org.nanohttpd', module: 'nanohttpd'})implementation 'com.android.support.constraint:constraint-layout:1.0.2'jarJar 'stax:stax-api:1.0.1'jarJar 'com.ithit.webdav:webdav-server:4.2.2822'testImplementation 'junit:junit:4.12'}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。