Skip to content

Development Workflow

Initial Setup

  1. Clone the repository:

    git clone https://github.com/godot-sdk-integrations/godot-admob.git
    cd godot-admob
    

  2. Configure Android SDK:

    echo "sdk.dir=/path/to/your/android-sdk" > common/local.properties
    

  3. First build:

    # Android only
    ./script/build.sh -a -- -b
    
    # iOS only (macOS) - downloads Godot automatically
    ./script/build.sh -i -- -A
    

Making Changes

  1. Edit source code:
  2. Android: android/src/main/
  3. iOS: ios/src/
  4. GDScript templates: addon/src/

  5. Build and test:

    # Quick Android build
    ./script/build.sh -a -- -b
    
    # Install to demo app
    ./script/build.sh -D
    
    # Run demo in Godot to test
    cd demo
    godot project.godot
    

  6. Iterate:

  7. Make changes
  8. Rebuild with ./script/build.sh -a -- -cb or ./script/build.sh -i -- -cb
  9. Test in demo app
  10. Repeat until tests pass