fastlane/lib/fastlane/setup/setup.rb in fastlane-2.24.0.beta.20170325010032 vs fastlane/lib/fastlane/setup/setup.rb in fastlane-2.24.0.beta.20170326010023

- old
+ new

@@ -12,10 +12,15 @@ UI.message("Detected iOS/Mac project in current directory...") platform = :ios elsif is_android? UI.message("Detected Android project in current directory...") platform = :android + elsif is_react_native? + UI.important("Detected react-native app. To set up fastlane, please run") + UI.command("fastlane init") + UI.important("in the sub-folder for each platform (\"ios\" or \"android\")") + UI.user_error!("Please navigate to the platform subfolder and run `fastlane init` again") else UI.important("Couldn't automatically detect the platform") val = UI.confirm("Is this project an iOS project?") platform = (val ? :ios : :android) end @@ -33,9 +38,13 @@ (Dir["*.xcodeproj"] + Dir["*.xcworkspace"]).count > 0 end def is_android? Dir["*.gradle"].count > 0 + end + + def is_react_native? + SetupIos.project_uses_react_native?(path: "./ios") end def show_analytics UI.message("fastlane will send the number of errors for each action to") UI.message("https://github.com/fastlane/enhancer to detect integration issues")