File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22FROM adoptopenjdk/openjdk11:jdk-11.0.12_7-alpine as ECLAIR_CORE_BUILD
33
44# this is necessary to extract the eclair-core version that we need to clone for the build
5- COPY ./app/build.gradle .
6- RUN cat build.gradle | grep "def eclair_version " | cut -d '"' -f2 | sed 's/^/v/' > eclair-core-version.txt
5+ COPY ./buildSrc/src/main/kotlin/Versions.kt .
6+ RUN cat Versions.kt | grep "const val eclair = " | cut -d '"' -f 2 > eclair-core-version.txt
77
88ARG MAVEN_VERSION=3.6.3
99ARG USER_HOME_DIR="/root"
@@ -24,7 +24,7 @@ ENV MAVEN_HOME /usr/share/maven
2424ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
2525
2626# clone eclair at the specified branch
27- RUN git clone https://github.com/ACINQ/eclair -b $(cat eclair-core-version.txt)
27+ RUN git clone https://github.com/ACINQ/eclair -b v $(cat eclair-core-version.txt)
2828
2929# build eclair-core
3030RUN cd eclair && mvn install -pl eclair-core -am -Dmaven.test.skip=true
@@ -74,7 +74,7 @@ RUN git clone https://github.com/ACINQ/Tor_Onion_Proxy_Library && \
7474 ./gradlew :android:build && \
7575 ./gradlew :android:publishToMaven
7676
77- # copy eclair-core dependendency
77+ # copy eclair-core dependency
7878COPY --from=ECLAIR_CORE_BUILD /root/.m2/repository/fr/acinq/eclair /root/.m2/repository/fr/acinq/eclair
7979# copy phoenix project over to docker image
8080COPY . /home/ubuntu/phoenix
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ android {
2929 applicationId = " fr.acinq.phoenix.mainnet"
3030 minSdk = 24
3131 targetSdk = 30
32- versionCode = 33
33- versionName = " 1.4.18 "
32+ versionCode = 34
33+ versionName = gitCommitHash()
3434 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
3535 }
3636 buildTypes {
You can’t perform that action at this time.
0 commit comments