Download on the App Store.
This project requires Xcode 9.3.
- Install the latest Xcode developer tools from Apple.
- Install Cocoapods
sudo gem install cocoapods
- Clone the repository:
git clone <URL>
- Install the project dependencies:
pod install
- Open
direct-assemblee.xcworkspacein Xcode. - This project uses Firebase for push notifications and analytics. See Firebase section below to configure project.
- This project uses Fabric to report crashes in release mode. See Fabric section below to configure project.
- Build the
direct-assembleescheme in Xcode.
This project uses Firebase. You should register your own Firebase account and generate GoogleService-Info.plist files if you want to use push notifications and analytics. We use two Firebase projects : one for developments in progress and one for production.
So, the existing configuration use two GoogleService-Info.plist files :
- One for
DADEVscheme, located inResources/Debugfolder, corresponding to development Firebase project. - One for
direct-assembleescheme, located inResources/Releasefolder, corresponding to production Firebase project.
This project uses Fabric to report crashes in release mode. You should register with Crashlytics and get your own API key and build secret if you want to build it with crashes reporting. To set these informations, do the following :
- Create two files named
fabric.apikeyandfabric.buildsecretinconfigfolder and it to Xcode project. - In
fabric.apikeyput the API key provided by Fabric - In
fabric.buildsecretput the build key provided by Fabric - You can now run the project with Crashlytics.
The direct-assemblee scheme use the production API, available if you want to test your application changes with the latest stable API version.
The DADEV scheme use the development API, which isn't available because the Direct Assemblée teams uses it as sandbox. You can use mocks (see below), or you can setup our API on your computer from Github projects API and Scraper.
If you run API on your computer, you have to specify its URL. Create a file named api.url.dev in config folder, add it to Xcode project and put the local API URL inside. Then, asddbuild and launch the DADEV scheme.
You don't have Internet access or you want easily test different responses types from API ? You can use the mock embedded in sources. Simply replace RealApi() by MockApi() in SingletonManager.swift and build DADEV scheme. All mock files are located in Resources/Mock folder.
Pull request are more than welcome ! If you want to do it, use a feature branch and please make sure to use a descriptive title and description for your pull request.
The project use unit tests (direct-assembleeTests scheme). You must update them depending on your changes in the code. All unit tests should be OK in your pull request.
Some icons are licensed under CC BY-ND 3.0 and provided by icons8.
Direct Assemblée for IOS is under the GPLv3 and the MPLv2 license.
See LICENSE for more license info.
For any question or if you need help, you can send contact us at contact@direct-assemblee.org.