Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Generate sources and javadoc artifacts
Browse files Browse the repository at this point in the history
* The latest versions of Debian don't support openjdk8 anymore. So we gotta run openjdk11.
* wget was failing to download libsodium for whatever reason. So it was replaced with curl.
  • Loading branch information
vitorhugods authored Sep 6, 2021
2 parents 31df406 + 43462bf commit a0f6922
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ build/
dist/
output/
local.properties
*DS_Store*
*.idea*
*.iml
android/.gradle
android/*.aar
android/*.pom
android/*.gz
android/*.iml
android/*.properties
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ USER root
ENV PATH $PATH:/usr/local/sbin:/usr/sbin:/sbin

####### BASE TOOLS #######
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -qqy --no-install-recommends \
RUN apt update
RUN apt upgrade -y
RUN apt install -qqy --no-install-recommends \
git \
wget \
build-essential \
Expand All @@ -21,11 +21,11 @@ RUN apt-get install -qqy --no-install-recommends \
less \
g++-multilib \
libc6-dev-i386 \
sudo \
openjdk-8-jdk-headless \
openjdk-8-jre-headless
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
sudo

RUN apt install -qqy --no-install-recommends openjdk-11-jre-headless openjdk-11-jdk-headless

ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

######## ANDROID #########

Expand Down
33 changes: 32 additions & 1 deletion TEMPLATE.pom
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.wire</groupId>
<artifactId>cryptobox-android</artifactId>
<packaging>aar</packaging>
<description>cryptobox-android</description>
<version>%%VERSION%%</version>
<packaging>aar</packaging>
<url>https://github.com/wireapp/cryptobox-jni</url>

<scm>
<connection>scm:git:git://github.com/wireapp/cryptobox-jni</connection>
<developerConnection>scm:git:git://github.com/wireapp/cryptobox-jni</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/wireapp/cryptobox-jni</url>
</scm>

<licenses>
<license>
<name>GPL-3.0</name>
Expand All @@ -18,4 +26,27 @@
<organization>
<name>com.wire</name>
</organization>

<developers>
<developer>
<id>makingthematrix</id>
<name>Maciej Gorywoda</name>
<email>[email protected]</email>
<organization>Project Zeta GmbH</organization>
<organizationUrl>https://wire.com</organizationUrl>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>vitorhugods</id>
<name>Vitor Hugo Schwaab</name>
<email>[email protected]</email>
<organization>Project Zeta GmbH</organization>
<organizationUrl>https://wire.com</organizationUrl>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
</project>
14 changes: 13 additions & 1 deletion android/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,23 @@ dist/cryptobox-android-$(VERSION).aar: dist-libs dist-jar
cd dist/aar && zip -r ../cryptobox-android-$(VERSION).aar *
rm -rf dist/aar

dist/cryptobox-android-$(VERSION)-sources.jar:
jar -cvf dist/cryptobox-android-$(VERSION)-sources.jar -C ../src/java .

dist/cryptobox-android-$(VERSION)-javadoc.jar: doc
jar -cvf dist/cryptobox-android-$(VERSION)-javadoc.jar -C dist/javadoc .

.PHONY: dist-aar
dist-aar: dist/cryptobox-android-$(VERSION).aar

.PHONY: dist-sources
dist-sources: dist/cryptobox-android-$(VERSION)-sources.jar

.PHONY: dist-javadoc
dist-javadoc: dist/cryptobox-android-$(VERSION)-javadoc.jar

.PHONY: dist
dist: compile dist-tar dist-aar
dist: compile dist-tar dist-aar dist-sources dist-javadoc

#############################################################################
# cryptobox
Expand Down
2 changes: 1 addition & 1 deletion mk/libsodium-src.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ LIBSODIUM_URL := http://download.libsodium.org/libsodium/releases/$(LIBSODIU
build/src/$(LIBSODIUM_NAME):
mkdir -p build/src
cd build/src && \
wget -O $(LIBSODIUM_NAME).tar.gz $(LIBSODIUM_URL) && \
curl -LO $(LIBSODIUM_URL) && \
tar -xzf $(LIBSODIUM_NAME).tar.gz && \
rm $(LIBSODIUM_NAME).tar.gz
2 changes: 1 addition & 1 deletion mk/version.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION := 1.1.2
VERSION := 1.1.3

0 comments on commit a0f6922

Please sign in to comment.