Commit Graph

7033 Commits

Author SHA1 Message Date
Gioacchino Mazzurco
d01acbf6b3
Add missing default in Android toolchain script 2022-03-23 13:33:30 +01:00
csoler
506c168024
Merge pull request #18 from csoler/v0.6-FriendServer2
added list of already received peers from FS so that we do not request them again
2022-03-09 21:34:35 +01:00
csoler
2a9304b3d8
Merge pull request #17 from csoler/v0.6-BugFixing_17
fixed wrong verify test in receiveSearchRequest()
2022-03-09 21:34:23 +01:00
csoler
50be16f2c4
Merge pull request #19 from csoler/v0.6-BugFixing_19
fixed certificate pasting bug
2022-03-09 21:34:12 +01:00
Cyril Soler
57042ff63e fixed certificate pasting bug 2022-03-09 21:30:25 +01:00
Cyril Soler
34ede3314c added list of already received peers from FS so that we do not request them again 2022-03-08 21:29:47 +01:00
Cyril Soler
fc42a692df fixed wrong verify test in receiveSearchRequest() 2022-03-08 20:26:55 +01:00
Gioacchino Mazzurco
ac742c869a
Improve gradle build documentation 2022-03-02 20:47:28 +01:00
Gioacchino Mazzurco
6f08e3d059
Improve AuthSSL and AuthPGP diagnostic messages 2022-03-02 20:47:28 +01:00
Gioacchino Mazzurco
6f71861feb
Fix misleading GXS circles documentation
Closes https://github.com/RetroShare/libretroshare/issues/2
2022-03-01 10:15:04 +01:00
Gioacchino Mazzurco
675f964a97
CMake fix RS_DH_PRIME_INIT_CHECK option 2022-02-28 18:02:58 +01:00
Gioacchino Mazzurco
59ebd81369
CMake refinements 2022-02-25 19:29:24 +01:00
Gioacchino Mazzurco
1675899523
Fix Android AAR build 2022-02-25 16:48:39 +01:00
Gioacchino Mazzurco
8df6ef0971
Removed old Dockerfile 2022-02-25 16:32:58 +01:00
Gioacchino Mazzurco
449fcbc3f2
Improve CMake and WebUI support
CMake add option to build WebUI support
CMake install also implementation headers, we need to do this because
  libretroshare doesn't encapsulate implementeation well so C++ user
  needs also implementation headers, not only the public ones to compile
CMake properly links thread and dl libs
CMake use proper flags for status messages
CMake use more target_* specific functions
WebUI improve error checking and reporting
Move test utility header to tests directory
2022-02-25 13:27:24 +01:00
csoler
9bd02834a9
Merge pull request #15 from csoler/v0.6-BugFixing_17
fixed bug in error handling of rsJsonApi->authorizeUser() call
2022-02-23 23:25:53 +01:00
Cyril Soler
2fd248ab1c fixed bug in error handling of rsJsonApi->authorizeUser() call 2022-02-23 23:24:45 +01:00
Gioacchino Mazzurco
1965f20003
fixup! CMake install libretroshare public headers 2022-02-21 21:32:37 +01:00
Gioacchino Mazzurco
9fe4742b7f
Add missing include for std::underlying_type_t in retrocompact header 2022-02-21 21:13:03 +01:00
Gioacchino Mazzurco
fcd4c7b896
CMake install libretroshare public headers 2022-02-21 21:10:22 +01:00
Gioacchino Mazzurco
e3dc90906b
Ship bdboot.txt along with libretroshare Android AAR 2022-02-21 16:37:40 +01:00
Gioacchino Mazzurco
5a6b6fb468
Improve error message in RsThread 2022-02-19 17:18:10 +01:00
G10h4ck
7188212c80
Merge pull request #14 from G10h4ck/gradle_build
Improve gradle build and fix crash in rsGlobalShutDown()
2022-02-18 20:45:39 +01:00
Gioacchino Mazzurco
20733fdc0b
Fix stopping RetroShare process
Avoid crashing in rsGlobalShutDown() if called before login
Avoid RS remaining active when stopped from Android when not yet logged
  in by calling rsGlobalShutDown() always
2022-02-18 18:33:32 +01:00
Gioacchino Mazzurco
fcafb66b26
More parametrizable Android build 2022-02-18 10:43:40 +01:00
G10h4ck
f670ba34b4
Merge pull request #13 from G10h4ck/gitlab_maven_repo
Distribute libretroshare as an Android library AAR
2022-02-16 10:10:46 +01:00
csoler
1f3a831a2a
Merge pull request #12 from csoler/v0.6-TorControl
Improved the logic of certificate handling in UI
2022-02-16 00:21:47 +01:00
Cyril Soler
502483d8e3 merged 2022-02-16 00:21:03 +01:00
Cyril Soler
87fdae9421 fixed adding external IPs and DNS in old cert format 2022-02-15 22:04:36 +01:00
Gioacchino Mazzurco
f343db4ca0
Fix AAR missing native libraries
The key change is:
-build.dependsOn prepareRetroshareNativeLibs
+preBuild.dependsOn prepareRetroshareNativeLibs

This way the native libs are compiled and put in the right place before
the package get assembled
All the rest are improvements to the build system that I made while
investingating the problem
2022-02-15 20:41:30 +01:00
Gioacchino Mazzurco
582dfe9fc8
Change default url in RsPeers::getShortInvite
We don't control retroshare.me anymore so in some cases a certificate
  might be sent to the owner of that domain by browsers after a link
  containing an invite, better preventing that from happening
2022-02-15 17:43:58 +01:00
Gioacchino Mazzurco
c65dda7702
Update README 2022-02-15 17:18:56 +01:00
Gioacchino Mazzurco
cfc6d1513a
GitlabCI tag some jobs to run on own runner with extra storage 2022-02-15 15:35:33 +01:00
Gioacchino Mazzurco
85f9771662
Remove jtipack and update README 2022-02-15 11:11:49 +01:00
Gioacchino Mazzurco
54cd13e510
GitlabCI add Android AAR minapi 21 and 24 2022-02-15 09:52:05 +01:00
Gioacchino Mazzurco
6733885330
Parametrize gradle build
Make API level parameter and get rid of flavours so build take less time
  and require less disk space, and builder can configure it at the API
  level needed
Add Dockerfile to produce AAR
Attempt to use the generated doker images for gitlab.com CI
2022-02-15 08:32:40 +01:00
Cyril Soler
61dbe774d6 added one flag for all possible invite flags 2022-02-13 22:36:28 +01:00
Cyril Soler
d26821b891 improved the logic of certificate handling in UI 2022-02-11 15:10:15 +01:00
csoler
5a6f09ee11
Merge pull request #11 from csoler/v0.6-TorControl
improvements on friend server
2022-02-09 22:03:10 +01:00
Cyril Soler
11e358d0b5 fixed updating friend list when PGP key is received 2022-02-09 15:38:39 +01:00
Cyril Soler
b86968cd17 immediately update friend list when short-cert peer PGP key is received 2022-02-09 15:01:53 +01:00
Cyril Soler
05963ad041 fixed signed/unsigned char when reading getc() 2022-02-09 13:54:49 +01:00
Gioacchino Mazzurco
47626b7106
Updated how to install Android SDK and NDK
the old sdkmanager has been deprecated since a lot of time and doesn't
  work with openjdk 11
2022-02-08 18:08:06 +01:00
Gioacchino Mazzurco
b2d11b54d2
JSON API more precise doxygen input path
Avoid doxygen to scan and generate unuseful XML for stuff that might
  have been generated in the main dir by gradle or other tools
2022-02-08 18:06:22 +01:00
Gioacchino Mazzurco
f1deb84901
First attempt at Gitlab maven AAR publishing 2022-02-07 18:59:21 +01:00
Gioacchino Mazzurco
d5c3c938ed
CMake add missing source files
Fix linking and runtime errors aout missing libretroshare symbols
  such as:
AndroidRuntime: Shutting down VM
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "rsPosted" referenced by libretroshare.so
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN10p3PostBase12service_tickEv" referenced by libretroshare.so
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN7RetroDb21OPEN_READWRITE_CREATEE" referenced by libretroshare.so
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "RemoveRedirect" referenced by libretroshare.so
2022-02-07 14:08:17 +01:00
Gioacchino Mazzurco
db1e2845ea
Android properly link android log library
Avoid runtime error such as
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__android_log_write" referenced by "/data/app/com.example.retroshare_aar
2022-02-07 14:08:17 +01:00
Gioacchino Mazzurco
c68e9a44a1
CMake add options to make developers life easier 2022-02-07 14:08:17 +01:00
Gioacchino Mazzurco
c8672c6ad0
Set proguard rules to avoid missing Java classes
When apps that uses libretroshare are compied and proguard is run, Java
  classes coming from libretroshare and that are used only by
  libretroshare C++ code were errouneously stripped by proguard.
  Bundle proper proguard rules in the AAR to avoid runtime errors such
  as
java.lang.ClassNotFoundException: Didn't find class "org.retroshare.service.AssetHelper" on path: DexPathList[[zip file "/data/app/com.example.retroshare_aar
2022-02-07 14:08:17 +01:00
Gioacchino Mazzurco
d2fc893de7
CMake properly link to miniupnpc
Fix linking and runtime errors such as
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "strupnperror" referenced by "/data/app/... libretroshare.so"
2022-02-07 14:07:25 +01:00