There are two important configuration files you will need to configure:
- Config/Info.plist - Compile settings. There are a few settings you will need to change to start development.
- Icon file – The PNG filename of your app icon located in your Resource directory. This icon will be displayed on your iPhone’s desktop. Icons should be in PNG format and have a size of 57 x 57 pixels.
- Bundle identifier – The idenifier you assign in the Standard/Enterprise Developer area. You this is only necessary if you plan on testing on the device and/or publishing to the app store.
- Config/Settings.plist - Settings for the inital options and preferences for each component.
- ScalePageToFit – Check this option if you want to shrink your pages to fit the screen. If you are using the navigation tools, make sure this is unchecked.
- DetectPhoneNumber – Check this option to have the WebView detect phone numbers in your HTML and display them as phone links.
- AppVersion – The version of your application.
- StartupSound – The audio file located locally in the Resource directory.
- NavBar – NavigationBar options
- UsePrompt – Adjusts the height of the NavigationBar to include the description text above the title.
- AdMob – AdMob options
- PublisherID – Your Publisher ID assigned to you by AdMob.
- Test – Use a test banner while you are testing your app.
- AskForLocation – Would you like AdMob to ask for the user’s location.
- BackgroundColor – Background color of the ad.
- TextColor – Text color of the ad.
- Config/Configuration.h – A list of all the API components used in LiquidGear. To optimize your app, if you are not using a feature, set the value to 0, if you will be using the feature, set the value to 1.
Example:
The example below demonstrates turning the accelerometer on and the admob banner off.#define LG_USE_ACCELERATION 1 #define LG_USE_ADMOB 0
- Resources/ - Any images, audio, and video used in your local app should be inside the Resources directory.
- Resources/Default.png – Splash screen.
- Resources/icon.png – App icon.
- www/ – Last, but not least, the www directory. Your HTML, JavaScript, CSS, and image files should be inside of the www directory. The first page should be named, index.html
