Overview

This framework is a wrapper which contains 4 other frameworks : Foundation, SQL, SQLite, Network.
By downloading this framework you will have all dependencies included and you can base your application's architecture on it.


Installation


Android


Integration is made via Maven, simply declare our maven repository in your gradle file and declare a dependency to the framework you want. Here is a sample integration for DGBootstrap :

            
repositories {
maven { url 'http://maven.digipolitan.com/libraries-release/' }
}
dependencies {
compile 'com.digipolitan.libraries:DGBootstrap:1.0'
}
            
            

> Follow getting started guide


iOS


Cocoapods


1. You can integrate DGBootstrap via CocoaPods, simply declare a dependency to the framework you want in your PodFile. Here is a sample integration for DGBootstrap :

            
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '5.1.1'

pod 'DGBootstrap'
                   
            

2. Open the terminal, to browse to your project directory and type

            
pod install
            
            

3. You need to close your project and open the workspace generating by Cocoapod.



Nota : For more information about CocoaPods we suggest you to visit their website : http://cocoapods.org

Drag & Drop


1. You need to download the framework by clicking this link.
Then you have to drag and drop the framework into your project to use it.



Bootstrap - Step 1


2. You also need to add SystemConfiguration.framework and libsqlite3.dylib into your project

Bootstrap - Step 2



Bootstrap - Step 3 Bootstrap - Step 4




3. Edit your AppDelegate by extending DGBAppDelegate

            
#import <DGBootstrap/DGBAppDelegate.h>

@class UIWindow;

@interface AppDelegate : DGBAppDelegate

@property (strong, nonatomic) UIWindow *window;

@end
            
            


4. You need to implement the method bootApplication into DGBAppDelegate.m

            
- (void) bootApplication {
/** 
Put your custom code here.
For example you can instantiate your custom viewcontroller and attach it to the window.
*/
}
           
           

5. You need to modify the default implementation of application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

            
- (BOOL) application:(UIApplication *) application didFinishLaunchingWithOptions:(NSDictionary *) launchOptions {
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
            
            

6. Take a cup of coffee and have FUN