This project has been archived by the C4DT Factory team. It is kept here for reference and for old URLs. You can find more information in our showcase and find our contact information.
This is a small test-app that uses lightarti-rest
to communicate with a website over
Tor.
It sends a single GET
request and displays the result as plain text.
There is an attempt at running the synchronous call in the background here:
BackgroundCall.swift
For more information, see
- lightarti-rest - for the underlying glue code to call into arti from FFI
- lightarti-rest-ios - for the iOS library
- arti-android - for the Android library
This version uses a cached version of the tor-directory. It is available in the lightarti-directory repository and updated once a day. To copy the latest files to the test app, you can simply run make:
make
If the files are older than 1 day, it will download newer files.
Here a short summary for the next time I try to use it with XCode:
Remove an eventual local lightarti-rest-ios:
-
Click on the
Project Navigator
in the upper left -
In
Packages
at the top, delete thelightarti-rest-ios
package withRemove Reference
-
Choose
lightarti-rest-ios-test
-
In the main view, select
Project
and inPackage Dependencies
add aPackage
-
Choose
GitHub
and search forlightarti-rest-ios
or enter the urlhttps://github.com/c4dt/lightarti-rest-ios
-
Confirm with
Add Package
, wait for verification,Add Package
again -
Wait for XCode to do its thing as seen in the upper right
-
In the menu
Product
, chooseClean Build Folder
We suppose that you have lightarti-rest
, lightarti-rest-ios
, and lightarti-rest-ios-test
in the same directory.
Remove an eventual github lightarti-rest-ios:
- Click on the
Project Navigator
in the upper left - Choose
lightarti-rest-ios-test
- In the
PROJECT
, choosePackage Dependencies
and delete thelightarti-rest-ios
inPackages
Do the following:
- Go to
lightarti-rest
and runmake dev
- In XCode, click on the
Project Navigator
in the upper left - Right-click in
Packages
on top and chooseAdd Packages
- Choose
Add Local
and select thelightarti-rest-ios
directory - Wait for XCode to do its thing as seen in the upper right
- Choose
lightarti-rest-ios-test
in theProject Navigator
- In the main view, select
Targets
, and inGeneral
at the bottom, click to add a newFrameworks, Librarires, and Embedded Content
- Select the
Workspace / lightarti-rest-ios / lightarti-rest-ios
- Wait for XCode to do its thing as seen in the upper right
- In the menu
Product
, chooseClean Build Folder
- In the
Packages/lightarti-rest-ios/Package.swift
, comment the binary target linking to the github, and uncomment the binary target with thepath
. Don't forget to undo the change once you're done with testing!
Once you use the local lightarti-rest-ios, you can modify the lightarti-rest
and run
make dev
whenever needed in lightarti-rest
.
The code is licensed under the MIT license.
lightarti-rest-ios-test
is maintained by the Center for Digital Trust. The following people contributed to the implementation of lightarti-rest
:
- Linus Gasser, C4DT
- Valérian Rousset, C4DT
- Christian Grigis, C4DT
- Laurent Girod, SPRING Lab, EPFL
Analysis and design by:
- Wouter Lueks, SPRING Lab, EPFL
- Carmela Troncoso, SPRING Lab, EPFL