diff --git a/fastlane/Appfile b/fastlane/Appfile new file mode 100644 index 0000000..3596500 --- /dev/null +++ b/fastlane/Appfile @@ -0,0 +1,2 @@ +json_key_file "" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one +package_name "nl.smart.connect.dummyand" # e.g. com.krausefx.app diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 0000000..020a23d --- /dev/null +++ b/fastlane/Fastfile @@ -0,0 +1,71 @@ +# Customise this file, documentation can be found here: +# https://github.com/fastlane/fastlane/tree/master/fastlane/docs +# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md +# can also be listed using the `fastlane actions` command + +# Change the syntax highlighting to Ruby +# All lines starting with a # are ignored when running `fastlane` + +# If you want to automatically update fastlane if a new version is available: +# update_fastlane + +# This is the minimum version number required. +# Update this, if you use features of a newer version +fastlane_version "1.101.0" + +default_platform :android + +platform :android do + before_all do + # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..." + end + + desc "Runs all the tests" + lane :test do + gradle(task: "test") + end + + desc "Build the apk" + lane :build do + gradle(task: "clean assemble") + end + + desc "Submit a new Beta Build to Crashlytics Beta" + lane :beta do + gradle(task: "assembleRelease") + crashlytics + + # sh "your_script.sh" + # You can also use other beta testing services here + end + + desc "Deploy a new version to the Google Play" + lane :deploy do + gradle(task: "assembleRelease") + supply + end + + # You can define as many lanes as you want + + after_all do |lane| + # This block is called, only if the executed lane was successful + + # slack( + # message: "Successfully deployed new App Update." + # ) + end + + error do |lane, exception| + # slack( + # message: exception.message, + # success: false + # ) + end +end + + +# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md +# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md + +# fastlane reports which actions are used +# No personal data is sent or shared. Learn more at https://github.com/fastlane/enhancer diff --git a/fastlane/README.md b/fastlane/README.md new file mode 100644 index 0000000..9db6581 --- /dev/null +++ b/fastlane/README.md @@ -0,0 +1,34 @@ +fastlane documentation +================ +# Installation +``` +sudo gem install fastlane +``` +# Available Actions +## Android +### android test +``` +fastlane android test +``` +Runs all the tests +### android build +``` +fastlane android build +``` +Build the apk +### android beta +``` +fastlane android beta +``` +Submit a new Beta Build to Crashlytics Beta +### android deploy +``` +fastlane android deploy +``` +Deploy a new version to the Google Play + +---- + +This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. +More information about fastlane can be found on [https://fastlane.tools](https://fastlane.tools). +The documentation of fastlane can be found on [GitHub](https://github.com/fastlane/fastlane/tree/master/fastlane). \ No newline at end of file diff --git a/fastlane/report.xml b/fastlane/report.xml new file mode 100644 index 0000000..c7fe803 --- /dev/null +++ b/fastlane/report.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + +