如何发布android-library
项目的Jar包装?
我发现,classes.jar位于下面build/bundles/release/classes.jar
,我想这是正确的Jar包(包含*.class
文件).
是否有一些官方的方式,将库作为JAR而不是AAR发布?
编辑
我使用Gradle来发布Maven工件,我想发布JAR和AAR包.所以带有签名的JAR,md5,manifest,......
基于https://chris.banes.me/2013/08/27/pushing-aars-to-maven-central/
apply plugin: 'maven'
apply plugin: 'signing'
configurations {
archives {
extendsFrom configurations.default
}
}
def sonatypeRepositoryUrl
if (isReleaseBuild()) {
println 'RELEASE BUILD'
sonatypeRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
} else {
println 'DEBUG BUILD'
sonatypeRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
}
if(!hasProperty('nexusPassword')) {
ext.set('nexusPassword', System.console().readPassword("\n\$ Type in password for Sonatype nexus account " + nexusUsername + ": "))
}
if(!signing.hasProperty('password')) {
ext.set('signing.password', System.console().readPassword("\n\$ Type in GPG key password: "))
}
afterEvaluate { project …
Run Code Online (Sandbox Code Playgroud) 我有一个类似于J2V8的项目,它将v8捆绑到android.但编译完J2V8后,所有的v8符号,但类似的项目丢失所有v8符号.您可以检查原J2V8.so 这里通过使用命令
nm -D libj2v8.so | grep "GetIsolate"
Run Code Online (Sandbox Code Playgroud)
你可以得到类似的东西
003530fc T _ZN2v815SnapshotCreator10GetIsolateEv
003613c4 T _ZN2v86Object10GetIsolateEv
0035f78c T _ZN2v87Context10GetIsolateEv
0038c354 W _ZNK2v88internal10HeapObject10GetIsolateEv
00503a78 T _ZNK2v88internal11MessageImpl10GetIsolateEv
00503b4c T _ZNK2v88internal16EventDetailsImpl10GetIsolateEv
Run Code Online (Sandbox Code Playgroud)
但是在编译示例项目之后,相关的输出是none.