Matrix源码打包方法

/ 0评 / 4

修改gradle配置进行源码打包

目录samples/sample-android/build.gradle里面compileMatrixWithSrc = true

打包Matrix源码到MavenLocal

matrix\matrix\matrix-android目录下执行./gradlew publishToMavenLocal,初次打包所有模块会比较久,以后修改源码以后,只需要执行对应module下的publishToMavenLocal方法即可

可能存在的问题

如果源码打包不通过,但是Sample工程可以,那么直接比较下dependencies-aar.gradledependencies-src.gradle里面的区别进行修改

如果提示apksigner找不到,那么需要修改samples/sample-android/app/build.gradle按照如下修改

//Notice: You need to modify the  value of $apksignerPath on different platform. the value below only suitable for Mac Platform,
//if on Windows, you may have to  replace apksigner with apksigner.bat.
apksignerPath = "${android.getSdkDirectory().getAbsolutePath()}/build-tools/${android.getBuildToolsVersion()}/apksigner.bat"
zipAlignPath = "${android.getSdkDirectory().getAbsolutePath()}/build-tools/${android.getBuildToolsVersion()}/zipalign.exe"

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注