Skip to content

Instantly share code, notes, and snippets.

@kt3k
Last active August 29, 2015 14:07
Show Gist options
  • Save kt3k/c6934cff0b8dcdc2a76a to your computer and use it in GitHub Desktop.
Save kt3k/c6934cff0b8dcdc2a76a to your computer and use it in GitHub Desktop.
How to create straw-ios service (WIP)

Objective-C implementation

  • Create "Cocoa Touch Static Library" Project using Xcode
  • git init
  • vi .gitignore ; xcuserdata
  • make scheme shared
  • remove redundant code, for example, auto-generated comments
  • Go to the created directory, and then write Podfile, and then pod install
    • vi Podfile ; pod install
  • Add Pods/Pods.xcconfig to test target (in Xcode)
  • initial commit!
  • write README.md
    • setup bmp
      • vi .bmp.yml
  • Write api doc
    • Decide interface
  • Write implementation and test code
  • setup xctool settings
    • vi .xctool-args
  • setup travis
    • vi .travis.yml
  • setup appledoc settings
    • decide params
    • vi Makefile
    • update .bmp.yml
  • setup .podspec
    • pod spec create ServiceName
    • vi
    • pod spec lint
      • check tag
      • check pod dependency
  • bmp
    • bmp -m ; bmp -c
  • release
    • pod trunk push ServiceName.podspec

JS interface

  • Create js interface repository
  • vi README.md
    • write name and API
  • vi .bmp.yml
  • vi .travis.yml
  • bower register
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment