目录
编译配置gradle
因为mupdf编译的体积不小,之前也发过编译的文章,现在更新一下.
建一个mupdf_c目录,名字自己取,在里面git下载mupdf源码,把目录修改为libmupdf
mupdf_c目录下建build.gradle文件,内容如下
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
group = 'com.artifex.mupdf'
version = '1.22.2'
buildscript {
repositories {
maven {
url "https://maven.aliyun.com/repository/public"
}
maven {
url "https://maven.aliyun.com/repository/google"
}
maven { url "https://jitpack.io" }
google()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url "https://kotlin.bintray.com/kotlinx/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.1'
}
}
allprojects {
repositories {
mave