From 218c72d9e87a2b8b335d65346c23a827955a0e6a Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Sun, 26 Jul 2020 11:55:46 +0200 Subject: [PATCH] Setup fastlane for both iOS and Android --- .gitignore | 3 ++- android/app/build.gradle | 1 + fastlane/Appfile | 2 ++ fastlane/Fastfile | 23 +++++++++++++++++++++++ ios/fastlane/Appfile | 1 - ios/fastlane/Fastfile | 28 ---------------------------- 6 files changed, 28 insertions(+), 30 deletions(-) create mode 100644 fastlane/Appfile create mode 100644 fastlane/Fastfile delete mode 100644 ios/fastlane/Appfile delete mode 100644 ios/fastlane/Fastfile diff --git a/.gitignore b/.gitignore index 971696f..1255c8a 100644 --- a/.gitignore +++ b/.gitignore @@ -62,4 +62,5 @@ buck-out/ # CocoaPods /ios/Pods/ -build/ \ No newline at end of file +build/ +fastlane/report.xml \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index d8717e3..342a7c5 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -79,6 +79,7 @@ import com.android.build.OutputFile project.ext.react = [ enableHermes: false, // clean and rebuild if changing + entryFile: 'index.ts' ] apply from: "../../node_modules/react-native/react.gradle" diff --git a/fastlane/Appfile b/fastlane/Appfile new file mode 100644 index 0000000..71f4b3c --- /dev/null +++ b/fastlane/Appfile @@ -0,0 +1,2 @@ +package_name("org.leinelissen.jellyfinaudioplayer") +app_identifier("org.leinelissen.JellyfinAudioPlayer") \ No newline at end of file diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 0000000..eec0289 --- /dev/null +++ b/fastlane/Fastfile @@ -0,0 +1,23 @@ +default_platform(:ios) + +platform :ios do + lane :beta do + enable_automatic_code_signing + build_app( + scheme: "JellyfinAudioPlayer", + export_method: "development", + output_directory: "build", + workspace: "ios/JellyfinAudioPlayer.xcworkspace" + ) + end +end + +platform :android do + desc "Generate beta build" + lane :beta do + gradle( + task: "clean assembleRelease", + project_dir: "android" + ) + end +end diff --git a/ios/fastlane/Appfile b/ios/fastlane/Appfile deleted file mode 100644 index 05ea4c3..0000000 --- a/ios/fastlane/Appfile +++ /dev/null @@ -1 +0,0 @@ -app_identifier("org.leinelissen.JellyfinAudioPlayer") # The bundle identifier of your app \ No newline at end of file diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile deleted file mode 100644 index 267a553..0000000 --- a/ios/fastlane/Fastfile +++ /dev/null @@ -1,28 +0,0 @@ -# This file contains the fastlane.tools configuration -# You can find the documentation at https://docs.fastlane.tools -# -# For a list of all available actions, check out -# -# https://docs.fastlane.tools/actions -# -# For a list of all available plugins, check out -# -# https://docs.fastlane.tools/plugins/available-plugins -# - -# Uncomment the line if you want fastlane to automatically update itself -# update_fastlane - -default_platform(:ios) - -platform :ios do - lane :beta do - enable_automatic_code_signing - build_app( - scheme: "JellyfinAudioPlayer", - export_method: "development", - output_directory: "../build", - workspace: "JellyfinAudioPlayer.xcworkspace" - ) - end -end