Skip to content

Instantly share code, notes, and snippets.

@mmazzarolo
Created May 17, 2016 11:27
Show Gist options
  • Save mmazzarolo/037ef3a25c92bd5c51062dd5c0c2023f to your computer and use it in GitHub Desktop.
Save mmazzarolo/037ef3a25c92bd5c51062dd5c0c2023f to your computer and use it in GitHub Desktop.

Revisions

  1. mmazzarolo created this gist May 17, 2016.
    8 changes: 8 additions & 0 deletions Appfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # iOS
    app_identifier "com.myapp.app" # The bundle identifier of your app
    apple_id "[email protected]" # Your Apple email address
    team_id "1234ABCD" # Developer Portal Team ID

    # Android
    json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one
    package_name "com.myapp.app" # Your Android app package
    3 changes: 3 additions & 0 deletions Deliverfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # iOS
    app_identifier "com.myapp.app" # The bundle identifier of your app
    username "[email protected]" # Your Apple ID user
    39 changes: 39 additions & 0 deletions Fastfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    fastlane_version "1.86.1"

    default_platform :ios

    platform :ios do
    before_all do
    ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
    end

    desc "Submit a new Build to Apple TestFlight"
    desc "This will also make sure the profile is up to date"
    lane :alpha do
    sigh
    increment_build_number(xcodeproj: './ios/MyApp.xcodeproj') # Increment the build number
    gym(scheme: "MyApp", project: './ios/MyApp.xcodeproj') # Build the app
    pilot(skip_submission: true) # Upload the app to TestFlight
    end

    after_all do |lane|
    slack(channel: "deploys", message: "Successfully deployed new MyApp alpha update to TestFlight.")
    end
    end

    platform :android do
    before_all do
    ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
    end

    desc "Submit a new Alpha Build to Play Store"
    lane :alpha do
    gradle(task: 'clean', project_dir: "android/") # Clean the Gradle project
    gradle(task: "assemble", build_type: "Release", project_dir: "android/") # Build the Release APK
    supply(track: "alpha", apk: "android/app/build/outputs/apk/app-release.apk") # Upload the APK to the Play Store (alpha)
    end

    after_all do |lane|
    slack(channel: "deploys", message: "Successfully deployed new MyApp alpha update to the Play Store.")
    end
    end