Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc7e84caf4 | ||
|
|
e8da1b723d | ||
|
|
8db579a7c0 | ||
|
|
a0890bfa8b |
@@ -210,7 +210,7 @@ release: release-android release-ios ##@build Build release for Android and iOS
|
||||
build-fdroid: export BUILD_ENV = prod
|
||||
build-fdroid: export BUILD_TYPE = release
|
||||
build-fdroid: export ANDROID_ABI_SPLIT = false
|
||||
build-fdroid: export ANDROID_ABI_INCLUDE = armeabi-v7a;arm64-v8a;x86;x86_64
|
||||
build-fdroid: export ANDROID_ABI_INCLUDE = arm64-v8a;x86_64
|
||||
build-fdroid: ##@build Build release for F-Droid
|
||||
@scripts/build-android.sh
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ android {
|
||||
// For each separate APK per architecture, set a unique version code as described here:
|
||||
|
||||
// https://developer.android.com/studio/build/configure-apk-splits.html
|
||||
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
|
||||
def versionCodes = ["arm64-v8a": 1, "x86_64": 2]
|
||||
def abi = output.getFilter(OutputFile.ABI)
|
||||
if (abi != null) { // null for the universal-debug, universal-release variants
|
||||
output.versionCodeOverride = versionCodes.get(abi) + defaultConfig.versionCode
|
||||
@@ -269,7 +269,9 @@ android {
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main { jniLibs.srcDirs 'libs' }
|
||||
main {
|
||||
jniLibs.srcDirs = ['libs', 'src/main/jniLibs']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
|
||||
APP_ABI := arm64-v8a x86_64
|
||||
APP_LDFLAGS := -Wl,--build-id=none
|
||||
APP_PLATFORM := android-18
|
||||
APP_STL := c++_static
|
||||
|
||||
@@ -116,6 +116,9 @@ class MainActivity : NavigationActivity(), ActivityCompat.OnRequestPermissionsRe
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
System.loadLibrary("rln")
|
||||
System.loadLibrary("waku")
|
||||
|
||||
val splashScreen = installSplashScreen();
|
||||
setTheme(R.style.DarkTheme)
|
||||
// Make sure we get an Alert for every uncaught exceptions
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ callPackage, lib, buildGoPackage
|
||||
, androidPkgs, openjdk, gomobile, xcodeWrapper, removeReferencesTo
|
||||
, go-bindata, mockgen, protobuf3_20, protoc-gen-go
|
||||
, go-bindata, mockgen, protobuf3_20, protoc-gen-go, git, cargo, which
|
||||
, meta
|
||||
, source
|
||||
, platform ? "android"
|
||||
@@ -29,7 +29,7 @@ in buildGoPackage rec {
|
||||
|
||||
extraSrcPaths = [ gomobile ];
|
||||
nativeBuildInputs = [
|
||||
gomobile removeReferencesTo go-bindata mockgen protoc-gen-go protobuf3_20
|
||||
gomobile removeReferencesTo go-bindata mockgen protoc-gen-go protobuf3_20 cargo git which
|
||||
] ++ optional isAndroid openjdk
|
||||
++ optional isIOS xcodeWrapper;
|
||||
|
||||
@@ -53,6 +53,13 @@ in buildGoPackage rec {
|
||||
popd
|
||||
'';
|
||||
|
||||
# cd third_party/nwaku
|
||||
# make clean
|
||||
# make V=1
|
||||
# ls ${androidPkgs.ndk}
|
||||
# export ANDROID_NDK_HOME="${androidPkgs.ndk}"
|
||||
# make libwaku-android SHELL=$SHELL
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
echo -e "\nBuilding $pname for: ${concatStringsSep "," targets}"
|
||||
@@ -62,7 +69,7 @@ in buildGoPackage rec {
|
||||
-target=${concatStringsSep "," targets} \
|
||||
${optionalString isAndroid "-androidapi=${platformVersion}" } \
|
||||
${optionalString isIOS "-iosversion=${platformVersion}" } \
|
||||
-tags='${optionalString isIOS "nowatchdog"} gowaku_skip_migrations gowaku_no_rln' \
|
||||
-tags='${optionalString isIOS "nowatchdog"} use_nwaku gowaku_skip_migrations gowaku_no_rln' \
|
||||
-o ${outputFileName} \
|
||||
${source.goPackagePath}/mobile
|
||||
|
||||
|
||||
@@ -23,15 +23,19 @@ let
|
||||
name = "${repo}-source-${shortRev}";
|
||||
# Keep this filter as restrictive as possible in order
|
||||
# to avoid unnecessary rebuilds and limit closure size
|
||||
filter = lib.mkFilter {
|
||||
root = path;
|
||||
include = [ ".*" ];
|
||||
exclude = [
|
||||
".*/[.]git.*" ".*[.]md" ".*[.]yml" ".*/.*_test.go$"
|
||||
"VERSION" "_assets/.*" "build/.*"
|
||||
".*/.*LICENSE.*" ".*/CONTRIB.*" ".*/AUTHOR.*"
|
||||
];
|
||||
};
|
||||
# filter = lib.mkFilter {
|
||||
# root = path;
|
||||
# name: type: true;
|
||||
# include = [ ".*" ];
|
||||
# exclude = [
|
||||
# ".*[.]md" ".*[.]yml" ".*/.*_test.go$"
|
||||
# "VERSION"
|
||||
# ".*/.*LICENSE.*" ".*/CONTRIB.*" ".*/AUTHOR.*"
|
||||
# ];
|
||||
# };
|
||||
|
||||
# rramos: Using this instead because rec is ignoring files from .gitignore and for now im not building the libraries
|
||||
filter = name: type: true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -50,6 +54,7 @@ let
|
||||
src = fetchFromGitHub {
|
||||
inherit rev owner repo sha256;
|
||||
name = "${repo}-${shortRev}-source";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
|
||||
"owner": "status-im",
|
||||
"repo": "status-go",
|
||||
"version": "v7.0.0",
|
||||
"commit-sha1": "84493728d9ac41553297e8084943c1429cdfe59a",
|
||||
"src-sha256": "11dwdlk9svmc6f8wmya43fis9jfigvh5idxpiwmia9gkad1zal6y"
|
||||
"version": "fe63d6c7b485b6c760c2a545172b637dca27ff3a",
|
||||
"commit-sha1": "fe63d6c7b485b6c760c2a545172b637dca27ff3a",
|
||||
"src-sha256": "1r8jrkmr72ppx3y9p8m8vdypsiqxmhpd9aw4xdcsqn6vbapvdbdc"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user