Skip to content
This repository has been archived by the owner on Jun 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #27 from fuwa0529/dev-v0.7
Browse files Browse the repository at this point in the history
Dev v0.7
  • Loading branch information
fuwa committed Nov 12, 2019
2 parents 1e4e7c2 + e1fcb2c commit c799ae3
Show file tree
Hide file tree
Showing 30 changed files with 89 additions and 126 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
opt

vendor
external-libs/monero
external-libs/libsodium
external-libs
tmp
builder
16 changes: 16 additions & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ add_library(net STATIC IMPORTED)
set_target_properties(net PROPERTIES IMPORTED_LOCATION
${EXTERNAL_LIBS_DIR}/monero/lib/${ANDROID_ABI}/libnet.a)

add_library(hardforks STATIC IMPORTED)
set_target_properties(hardforks PROPERTIES IMPORTED_LOCATION
${EXTERNAL_LIBS_DIR}/monero/lib/${ANDROID_ABI}/libhardforks.a)

add_library(rpc_base STATIC IMPORTED)
set_target_properties(rpc_base PROPERTIES IMPORTED_LOCATION
${EXTERNAL_LIBS_DIR}/monero/lib/${ANDROID_ABI}/librpc_base.a)

add_library(blocks STATIC IMPORTED)
set_target_properties(blocks PROPERTIES IMPORTED_LOCATION
${EXTERNAL_LIBS_DIR}/monero/lib/${ANDROID_ABI}/libblocks.a)

#############
# System
#############
Expand Down Expand Up @@ -189,6 +201,10 @@ target_link_libraries( monerujo
multisig
version
randomx
hardforks
rpc_base
blocks


boost_chrono
boost_date_time
Expand Down
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
// https://source.android.com/security/bulletin/2018-03-01
minSdkVersion 23
targetSdkVersion 28
versionCode 1220
versionName '2.6.1.1'
versionCode 1230
versionName '2.7.0.0'
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
Expand Down Expand Up @@ -50,13 +50,13 @@ android {
}
}
// def abiCodes = ['arm64-v8a': 2]
def abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, 'x86_64': 4]
def abiCodes = ['arm64-v8a': 2, 'x86_64': 4]
splits {
abi {
enable true
reset()
// include 'arm64-v8a'
include 'armeabi-v7a', 'arm64-v8a', 'x86_64'
include 'arm64-v8a', 'x86_64'
universalApk true
}
}
Expand All @@ -68,12 +68,12 @@ android {
// abi {
// enable true
// reset()
// include 'armeabi-v7a', 'arm64-v8a', 'x86_64'
// include 'arm64-v8a', 'x86_64'
// universalApk true
// }
// }
//
// abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, 'x86_64': 4]
// abiCodes = ['arm64-v8a': 2, 'x86_64': 4]
// }
}
// Map for the version code that gives each ABI a value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ static public RestoreHeight getInstance() {
blockheight.put("2019-04", 93000L);
blockheight.put("2019-05", 101000L);
blockheight.put("2019-06", 110000L);
blockheight.put("2019-07", 119000L);
blockheight.put("2019-08", 128000L);
blockheight.put("2019-09", 137000L);
blockheight.put("2019-10", 146000L);
}

long latestHeight = 77000L;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
<string name="send_sweepall">Send all confirmed funds in this account!</string>
<string name="tx_subaddress">Subaddress #%1$d</string>
<string name="generate_address_label_sub">Public Subaddress #%1$d</string>
<string name="default_restore_height">2019-06</string>
<string name="default_restore_height">2019-10</string>
<string name="menu_language">Language</string>
<string name="language_system_default">Use System Language</string>
</resources>
1 change: 0 additions & 1 deletion external-libs/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/boost/lib/arm64-v8a/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/boost/lib/armeabi-v7a/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/boost/lib/x86/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/boost/lib/x86_64/.gitignore

This file was deleted.

46 changes: 0 additions & 46 deletions external-libs/collect.sh

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/monero/lib/arm64-v8a/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/monero/lib/armeabi-v7a/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/monero/lib/x86/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/monero/lib/x86_64/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/openssl/lib/arm64-v8a/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/openssl/lib/armeabi-v7a/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/openssl/lib/x86/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions external-libs/openssl/lib/x86_64/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e
rm -rf prebuilt
mkdir prebuilt

archs=(arm arm64 x86_64)
archs=(arm64 x86_64)

for arch in ${archs[@]}; do
xLIB="/lib"
Expand Down
2 changes: 1 addition & 1 deletion script/build-external-libs/build-boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ args="--build-type=minimal link=static runtime-link=static --with-chrono \
--toolset=clang-android threading=multi threadapi=pthread target-os=android \
"

archs=(arm arm64 x86_64)
archs=(arm64 x86_64)
for arch in ${archs[@]}; do
extra_build_flags=""
case ${arch} in
Expand Down
2 changes: 1 addition & 1 deletion script/build-external-libs/build-libsodium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build_root=$EXTERNAL_LIBS_BUILD_ROOT
cd $build_root/libsodium
./autogen.sh

archs=(arm arm64 x86_64)
archs=(arm64 x86_64)
for arch in ${archs[@]}; do
extra_cmake_flags=""
case ${arch} in
Expand Down
2 changes: 1 addition & 1 deletion script/build-external-libs/build-wownero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build_root=$EXTERNAL_LIBS_BUILD_ROOT

build_type=release # or debug

archs=(arm arm64 x86_64)
archs=(arm64 x86_64)

for arch in ${archs[@]}; do
ldflags=""
Expand Down
43 changes: 40 additions & 3 deletions script/build-external-libs/collect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,46 @@ set -e

source script/build-external-libs/env.sh

rm -rf external-libs
mkdir external-libs
cd external-libs

find . -name "*.a" -exec rm {} \;
find . -name "*.h" -exec rm {} \;
orig_path=$PATH
build_root=$EXTERNAL_LIBS_BUILD_ROOT

./collect.sh
packages=(boost openssl monero libsodium)
archs=(arm64 x86_64)

for arch in ${archs[@]}; do
case ${arch} in
"arm")
xarch="armeabi-v7a"
;;
"arm64")
xarch="arm64-v8a"
;;
"x86")
xarch="x86"
;;
"x86_64")
xarch="x86_64"
;;
*)
exit 16
;;
esac

for package in ${packages[@]}; do
OUTPUT_DIR=`pwd`/$package/lib/$xarch
mkdir -p $OUTPUT_DIR
rm -f $OUTPUT_DIR/*.a
cp -a $build_root/build/$package/$arch/lib/*.a $OUTPUT_DIR

if [ $package = "monero" -a -d "$build_root/build/$package/include" ]; then
rm -rf $OUTPUT_DIR/../../include
cp -a $build_root/build/$package/include $OUTPUT_DIR/../..
fi

done
done
exit 0
4 changes: 1 addition & 3 deletions script/build-external-libs/fetch-wownero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ cd $EXTERNAL_LIBS_BUILD_ROOT


# url="$base_dir/vendor/wownero"
# url="https://github.com/wownero/wownero"
url="https://github.com/wownero/wownero"
version="v0.6.1.1"
# version="dev-v0.6"
version="v0.7.0"


rm -rf wownero
Expand Down
4 changes: 0 additions & 4 deletions script/build-external-libs/patch-wownero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ cd wownero

sed -i 's/-Werror/-Wall/g' CMakeLists.txt
sed -i 's/program_options locale/program_options/g' CMakeLists.txt
sed -i 's/find_path(ZMQ_INCLUDE_PATH zmq.hpp)//g' CMakeLists.txt
sed -i 's/find_library(ZMQ_LIB zmq)//g' CMakeLists.txt
sed -i 's/message(FATAL_ERROR "Could not find required header zmq.hpp")//g' CMakeLists.txt
sed -i 's/message(FATAL_ERROR "Could not find required libzmq")//g' CMakeLists.txt
sed -i 's/bool create_address_file = false/bool create_address_file = true/g' src/wallet/wallet2.h

sodium_pattern="find_library(SODIUM_LIBRARY sodium)"
Expand Down
2 changes: 1 addition & 1 deletion script/build-external-libs/post-build-openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build_root=$EXTERNAL_LIBS_BUILD_ROOT
mkdir -p $build_root/build/openssl/
cp -aL $build_root/android-openssl/openssl-OpenSSL_1_0_2l/include/openssl/ $build_root/build/openssl/include

archs=(arm arm64 x86_64)
archs=(arm64 x86_64)

for arch in ${archs[@]}; do
mkdir -p $build_root/build/openssl/$arch
Expand Down
2 changes: 1 addition & 1 deletion script/build-external-libs/prep-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build_root=$EXTERNAL_LIBS_BUILD_ROOT
PATH=$ANDROID_NDK_ROOT/build/tools/:$PATH

args="--api 23 --stl=libc++"
archs=(arm arm64 x86_64)
archs=(arm64 x86_64)

for arch in ${archs[@]}; do

Expand Down
16 changes: 12 additions & 4 deletions script/nix/f-droid-build-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ with pkgs;
let

fdroid-python-packages = python-packages: with python-packages; [
requests
androguard
clint
defusedxml
GitPython
libcloud
mwclient
paramiko
pillow
pyasn1
pyasn1-modules
clint
python-vagrant
pyyaml

virtualenvwrapper
qrcode
requests
ruamel_yaml
]

; python-with-fdroid-packages = pkgs.python3.withPackages fdroid-python-packages
Expand Down
4 changes: 2 additions & 2 deletions script/nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ with nixpkgs;
export _JAVA_AWT_WM_NONREPARENTING=1
export app_version=1220
export gradle_app_version=2x6x1x1
export app_version=1230
export gradle_app_version=2x7x0x0
export release_key=~/.android/fuwa-release-key.jks
export USE_CCACHE=1
Expand Down

0 comments on commit c799ae3

Please sign in to comment.