SMU-SIS / ksketch2

K-Sketch Animation Sketching System
2 stars 0 forks source link

Getting Started with KSketch2 Development

Software You Will Need

  1. Install the GitHub client for Windows or Mac.
  2. Install Adobe Flash Builder Premium 4.7 (referred to below as "FB").
  3. Install the Adobe AIR SDK 4 (Instructions adapted from http://forum.starling-framework.org/topic/fb47-issues)
    1. How to get this SDK
      • Download it from http://helpx.adobe.com/air/kb/archived-air-sdk-version.html
        1. Get both versions of the SDK
          1. Wtihout Compiler: "Adobe AIR 4 SDK downloads" (Shold be "AdobeAIRSDK")
          2. With Compiler: "Adobe AIR 4 SDK and compiler downloads" (Should be "AIRSDK_Compiler")
      • Or get it from one of the ksketch2 team members
    2. Overlay the SDK Without Compiler on FB's AIR 4.6 Directory
      • On Windows:
        1. Navigate to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.7\sdks
        2. Unzip the contents of AdobeAIRSDK to a temporary folder "AIR4"
        3. Make a copy of the directory 4.6.0 and name it 4.6.0_AIR4
        4. Overlay AIR4 on Flex 4.6.0 by dragging the contents of the AIR4 directory into the 4.6.0 directory.
          1. Make sure you select “Copy and Replace” when Windows asks and click the box at the bottom to apply all.
      • On Mac:
        1. Navigate to /Applications/Adobe Flash Builder 4.7/sdks
        2. Unpack the contents of AdobeAIRSDK to a temporary folder AIR4
          1. Create the "AIR4" directory and copy the SDK file (AdobeAIRSDK.tbz2) into that folder
          2. Navigate to /Applications/Adobe Flash Builder 4.7/sdks/AIR4 in a terminal window
          3. "tar jxvf AdobeAIRSDK.tbz2"
            • If you have trouble overwriting files due to file permissions, try this command:
              • "sudo tar jxvf AdobeAIRSDK.tbz2"
          4. Delete the orinial archive file (AdobeAIRSDK.tbz2).
        3. Make a copy of the directory 4.6.0 and name it 4.6.0_AIR4
        4. Overlay AIR4 on Flex 4.6.0.
          1. In the terminal, navigate to /Applications/Adobe Flash Builder 4.7/sdks
          2. "ditto AIR4 4.6.0_AIR4"
    3. Configure Flash Builder to use the AIR 4 SDK by default
      1. Close Flash Builder (if it was open), and Open it again
      2. Go to (menu) Flash Builder->Preferences->Flash Builder->Installed Flex SDKs->Add…
      3. Navigate to the 4.6.0_AIR4 directory created earlier click OK.
      4. Name the SDK "Flex 4.6.0 (AIR 4)" and click OK.
      5. Click the check box in the Installed SDKs dialogue box to make it the default SDK in Flash Builder.
      6. Click OK
    4. Update the AIR SDK used by FlashBuilder while debugging
      1. Navigate to FlashBuilder's compiler folder
        • On Windows: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.7\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722
        • On Mac: /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722
      2. Rename the "AIRSDK" folder to "AIRSDK-original"
      3. Unpack the contents of the SDK With Compiler (AIRSDK_Compiler) to a folder called "AIRSDK"
        • Use unpacking instructions similar to those found above for "Overlay the SDK Without Compiler on the AIR 4 Directory"

Building and Running

  1. Clone the repository "richardcd73/ksketch2"
  2. Launch FB and go to File->Switch Workspace->Other
    1. Choose the cloned ksketch2 folder
  3. Import projects into FlashBuilder
    1. Right-click on Package Explorer->Import->General->Existing Projects into Workspace (Next)
    2. Choose "Select root directory" and browse to cloned ksketch2 folder (Finish)
    3. In menu select Project->Clean (This makes a clean build of all projects)
    4. Window->Show View->Problems
      1. "Cannot create HTML wrapper. Right-click here to recreate folder html-template"
        1. This is useful for debugging, but we aren't saving any of it, so we haven't checked into repository
        2. Right-click -> Generate HTML templates
      2. "unable to open '...ksketch2/KSKApp_Web/libs'
        1. GitHub doesn't sync empty folders, but Flash Builder needs these empty folders
  4. Test your Installation
    1. In Package Explorer select KSKApp_Web and click "Debug"
      • You may need to install the debug version of the Flash Player (11.6 or higher)
    2. In Package Explorer select KSKApp_AIR and click "Debug"
      1. The "Debugging Configurations" window should appear
        • Recommended settings
          • Launch Method: On AIR Simulator
            • Target Platform: Google Android
              • Device: Android: Samsung Galaxy Tab 10.1
            • Target Platform: Apple iOS
              • Device: iOS: Apple iPad
          • Launch Method: On Device
            • Target Platform: Google Android
              • Launch Method: On Device
              • Plug in device before running debugger
              • May need to let debugger install Adobe Air
            • Target Platform: Apple iOS

Overview of project structure

Packages and special objects

Projects

Rules to observe

  1. Don't sync ".metadata", as it contains personal project/workspace preferences