wownero
/
wownerujo
Archived
4
0
Fork 0

Compare commits

...

13 Commits

3
.gitignore vendored

@ -10,7 +10,6 @@
opt
vendor
external-libs/monero
external-libs/libsodium
external-libs
tmp
builder

@ -4,7 +4,13 @@ An Android Wallet for Wownero
[<img src="https://f-droid.org/badge/get-it-on.png"
alt="Get it on F-Droid"
height="80">](https://f-droid.org/packages/com.wownero.wownerujo/)
<a href='https://play.google.com/store/apps/details?id=com.wownero.wownerujo&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' height='80'/></a>
<a href='https://play.google.com/store/apps/details?id=com.wownero.wownerujo'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' height='80'/></a>
## Run your own mobile full node for improved speed and privacy
- [CyberWOW]
- [Wownero daemon]
- [Wownero RPC daemon]
## QUICKSTART
- Download it with the F-Droid app or the Google Play app.
@ -14,11 +20,6 @@ An Android Wallet for Wownero
## Disclaimer
You may lose all your Wowneroj if you use this app.
## Random Notes
- Based off Wownero v0.5.
- Use your own daemon.
- Screen stays on until first sync is complete.
## HOW TO BUILD
If you want to build the external libs yourself (recommended) check out [the instructions](doc/BUILDING-external-libs.md).
@ -37,3 +38,6 @@ Then, fire up Android Studio and build the APK.
[beta channel]:https://play.google.com/apps/testing/com.wownero.wownerujo/join
[CyberWOW]: https://play.google.com/store/apps/details?id=org.wownero.cyberwow
[Wownero daemon]: https://github.com/enerc/wownero-daemon/releases
[Wownero RPC daemon]: https://git.wownero.com/wownero/wownero/releases

@ -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
#############
@ -189,6 +201,10 @@ target_link_libraries( monerujo
multisig
version
randomx
hardforks
rpc_base
blocks
boost_chrono
boost_date_time

@ -10,8 +10,8 @@ android {
// https://source.android.com/security/bulletin/2018-03-01
minSdkVersion 23
targetSdkVersion 28
versionCode 1210
versionName '2.6.1.0'
versionCode 1230
versionName '2.7.0.0'
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
@ -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
}
}
@ -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.

@ -374,18 +374,11 @@ public class LoginFragment extends Fragment implements WalletInfoAdapter.OnInter
private static final String PREF_DAEMON_TESTNET = "daemon_testnet";
private static final String PREF_DAEMONLIST_MAINNET
= "node.wowne.ro"
+ ";node.pwned.systems"
+ ";node.wowkira.com"
+ ";localhost"
;
private static final String PREF_DAEMONLIST_STAGENET =
"node.wowne.ro";
private static final String PREF_DAEMONLIST_TESTNET =
"node.wowne.ro";
private static final String PREF_DAEMONLIST_MAINNET = "localhost";
private static final String PREF_DAEMONLIST_STAGENET = "";
private static final String PREF_DAEMONLIST_TESTNET = "";
private NodeList daemonMainNet;
private NodeList daemonStageNet;

@ -57,6 +57,10 @@ public class RestoreHeight {
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;

@ -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 +0,0 @@
boost

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,46 +0,0 @@
#!/bin/bash
#
# -D BOOST_ROOT=/opt/android/boost_1_58_0
set -e
orig_path=$PATH
build_root=$EXTERNAL_LIBS_BUILD_ROOT
packages=(boost openssl monero libsodium)
archs=(arm 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

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

@ -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"

@ -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

@ -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

@ -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=""

@ -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

@ -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.0"
# version="dev-v0.6"
version="v0.7.0"
rm -rf wownero

@ -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)"

@ -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

@ -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

@ -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

@ -94,8 +94,8 @@ with nixpkgs;
export _JAVA_AWT_WM_NONREPARENTING=1
export app_version=1210
export gradle_app_version=2x6x1x0
export app_version=1230
export gradle_app_version=2x7x0x0
export release_key=~/.android/fuwa-release-key.jks
export USE_CCACHE=1