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:
makeIf 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 Navigatorin the upper left -
In
Packagesat the top, delete thelightarti-rest-iospackage withRemove Reference -
Choose
lightarti-rest-ios-test -
In the main view, select
Projectand inPackage Dependenciesadd aPackage -
Choose
GitHuband search forlightarti-rest-iosor enter the urlhttps://github.com/c4dt/lightarti-rest-ios -
Confirm with
Add Package, wait for verification,Add Packageagain -
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 Navigatorin the upper left - Choose
lightarti-rest-ios-test - In the
PROJECT, choosePackage Dependenciesand delete thelightarti-rest-iosinPackages
Do the following:
- Go to
lightarti-restand runmake dev - In XCode, click on the
Project Navigatorin the upper left - Right-click in
Packageson top and chooseAdd Packages - Choose
Add Localand select thelightarti-rest-iosdirectory - Wait for XCode to do its thing as seen in the upper right
- Choose
lightarti-rest-ios-testin theProject Navigator - In the main view, select
Targets, and inGeneralat 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