From d67f86ada55db3d07f6eecaf7aa7f16ffb9da173 Mon Sep 17 00:00:00 2001 From: sh <37271604+shumvgolove@users.noreply.github.com> Date: Wed, 3 Aug 2022 15:52:16 +0300 Subject: [PATCH 1/6] install: add android build script (#877) --- build-android.sh | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100755 build-android.sh diff --git a/build-android.sh b/build-android.sh new file mode 100755 index 000000000..d5518c054 --- /dev/null +++ b/build-android.sh @@ -0,0 +1,87 @@ +#!/usr/bin/env sh +# Safety measures +set -eu + +u="$USER" +tmp=$(mktemp -d -t) +conf="${XDG_CONFIG_HOME:-$HOME/.config}" +commands="nix git gradle unzip curl" + +nix_setup() { + # Pre-setup nix + [ ! -d /nix ] && sudo sh -c "mkdir -p /nix && chown -R $u /nix" + + [ ! -d "$conf/nix" ] && mkdir -p "$conf/nix" + + printf "sandbox = true\nmax-jobs = auto\nexperimental-features = nix-command flakes\nextra-substituters = https://cache.zw3rk.com\ntrusted-public-keys = loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=" > "$conf/nix/nix.conf" + + # Install nix + curl -L https://nixos.org/nix/install -o "$tmp/nix-install" + chmod +x "$tmp/nix-install" && "$tmp/nix-install" --no-daemon + + . "$HOME/.nix-profile/etc/profile.d/nix.sh" +} + +git_setup() { + # Clone simplex + git clone https://github.com/simplex-chat/simplex-chat "$tmp/simplex-chat" + + # Switch to nix-android branch + git -C "$tmp/simplex-chat" switch nix-android + + # Create missing folders + mkdir -p "$tmp/simplex-chat/apps/android/app/src/main/cpp/libs/arm64-v8a" +} + +checks() { + for i in $commands; do + case $i in + nix) + if ! command -v "$i" > /dev/null 2>&1 || [ ! -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then + nix_setup + fi + ;; + *) + if ! command -v "$i" > /dev/null 2>&1; then + commands_failed="$i $commands_failed" + fi + ;; + esac + done + + set +u + + if [ -n "$commands_failed" ]; then + commands_failed=${commands_failed% *} + printf "%s is not found in your \$PATH. Please install them and re-run the script.\n" "$commands_failed" + exit 1 + fi + + set -u +} + +build() { + # Build simplex lib + nix build "$tmp/simplex-chat/#packages.x86_64-linux.aarch64-android:lib:simplex-chat" + unzip -o "$PWD/result/pkg-aarch64-android-libsimplex.zip" -d "$tmp/simplex-chat/apps/android/app/src/main/cpp/libs/arm64-v8a" + + # Build android suppprt lib + nix build "$tmp/simplex-chat/#packages.x86_64-linux.aarch64-android:lib:support" + unzip -o "$PWD/result/pkg-aarch64-android-libsupport.zip" -d "$tmp/simplex-chat/apps/android/app/src/main/cpp/libs/arm64-v8a" + + gradle -p "$tmp/simplex-chat/apps/android/" clean build +} + +final() { + cp "$tmp/simplex-chat/apps/android/app/build/outputs/apk/release/app-release-unsigned.apk" "$PWD/simplex-chat.apk" + printf "Simplex-chat was successfully compiled: %s/simplex-chat.apk\nDelete nix and gradle caches with 'rm -rf /nix && rm \$HOME/.nix* && \$HOME/.gradle/caches' in case if no longer needed.\n" "$PWD" +} + +main() { + checks + git_setup + build + final +} + +main From 90ab6f34bf5f59ae3fe2333fb9d036c964d35247 Mon Sep 17 00:00:00 2001 From: sh <37271604+shumvgolove@users.noreply.github.com> Date: Wed, 3 Aug 2022 23:04:27 +0300 Subject: [PATCH 2/6] android: add fastlane metadata (#885) * android: add fastlane metadata * update fastlane info Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> --- .../android/en-US/full_description.txt | 23 ++++++++++++++++++ .../metadata/android/en-US/images/icon.png | Bin 0 -> 34268 bytes .../en-US/images/phoneScreenshots/1.jpg | Bin 0 -> 110562 bytes .../en-US/images/phoneScreenshots/2.jpg | Bin 0 -> 115417 bytes .../en-US/images/phoneScreenshots/3.jpg | Bin 0 -> 189856 bytes .../en-US/images/phoneScreenshots/4.jpg | Bin 0 -> 120788 bytes .../en-US/images/phoneScreenshots/5.jpg | Bin 0 -> 32315 bytes .../en-US/images/phoneScreenshots/6.jpg | Bin 0 -> 101320 bytes .../android/en-US/short_description.txt | 1 + fastlane/metadata/android/en-US/title.txt | 1 + 10 files changed, 25 insertions(+) create mode 100644 fastlane/metadata/android/en-US/full_description.txt create mode 100644 fastlane/metadata/android/en-US/images/icon.png create mode 100644 fastlane/metadata/android/en-US/images/phoneScreenshots/1.jpg create mode 100644 fastlane/metadata/android/en-US/images/phoneScreenshots/2.jpg create mode 100644 fastlane/metadata/android/en-US/images/phoneScreenshots/3.jpg create mode 100644 fastlane/metadata/android/en-US/images/phoneScreenshots/4.jpg create mode 100644 fastlane/metadata/android/en-US/images/phoneScreenshots/5.jpg create mode 100644 fastlane/metadata/android/en-US/images/phoneScreenshots/6.jpg create mode 100644 fastlane/metadata/android/en-US/short_description.txt create mode 100644 fastlane/metadata/android/en-US/title.txt diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txt new file mode 100644 index 000000000..399395cf1 --- /dev/null +++ b/fastlane/metadata/android/en-US/full_description.txt @@ -0,0 +1,23 @@ +
Full privacy of your identity, profile, contacts and metadata: unlike any other existing messaging platform, SimpleX uses no phone numbers or any other identifiers assigned to the users - not even random numbers. This protects the privacy of who you are communicating with, hiding it from SimpleX platform servers and from any observers.
+ +Complete protection against spam and abuse: as you have no identifier on SimpleX platform, you cannot be contacted unless you share a one-time invitation link or an optional temporary user address. Read more.
+ +Full ownership, control and security of your data: SimpleX stores all user data on client devices, the messages are only held temporarily on SimpleX relay servers until they are received.
+ +Decentralized network: you can use SimpleX with your own servers and still communicate with people using the servers that are pre-configured in the apps or any other SimpleX servers.
+ +You can connect to anybody you know via link or scan QR code (in the video call or in person) and start sending messages instantly - no emails, phone numbers or passwords needed.
+ +Your profile and contacts are only stored in the app on your device - our servers do not have access to this information.
+ +All messages are end-to-end encrypted using open-source double-ratchet protocol; the messages are routed via our servers using open-source SimpleX Messaging Protocol.
+ +The app sends local notifications only when messages or connection requests arrive - the app checks for the new messages every 10-15 min, but if you stop using the app it may stop checking for the new messages.
+ +Please send us any questions via the app (connect to the team via settings!), email chat@simplex.chat or submit issues on GitHub (https://github.com/simplex-chat/simplex-chat/issues)
+ +Source code: https://github.com/simplex-chat/simplex-chat
+ +Follow us on Twitter (@SimpleXChat) and Reddit (r/SimpleXChat/) for the latest updates.
diff --git a/fastlane/metadata/android/en-US/images/icon.png b/fastlane/metadata/android/en-US/images/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9c9a5c017fad7ceafcf4338e1241b179ff572f2b GIT binary patch literal 34268 zcmeFZ=_8cwA2xo?7z|m)7G)jT%AF;IY-1}zln}DD$*%0gjGZJ(WnZF@ZQS;d8B|)V z$&z)XED2M#!I*i@xxc>`zyINRUYQqN=k+kqn;<1