Skip to content

Commit

Permalink
Moved framekworks build to be as close to the app build
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamede1945 committed May 17, 2018
1 parent 7fce9cb commit a8b9d94
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@ platform :ios do
clean = options[:clean].nil? ? true : options[:clean]
includeFrameworks = options[:includeFrameworks].nil? ? true : options[:includeFrameworks]

if includeFrameworks
# Build frameworks for QuranFoundation
build_frameworks(
archive: true,
clean: clean,
target: "device")

# Build QuranFoundation
path = sh("pwd")
sh "cd ../../QuranFoundation; fastlane build openSource:false target:device clean:#{clean} symbols:true archive:true"
sh "cd #{path}"
end

store = PStore.new("#{Dir.home}/com.quran.ios.pstore")

oldVersion = store.transaction { store[:versionKey] }
Expand Down Expand Up @@ -92,6 +79,19 @@ platform :ios do
File.open(file_name, 'w') { |file| file.puts text }
end

if includeFrameworks
# Build frameworks for QuranFoundation
build_frameworks(
archive: true,
clean: clean,
target: "device")

# Build QuranFoundation
path = sh("pwd")
sh "cd ../../QuranFoundation; fastlane build openSource:false target:device clean:#{clean} symbols:true archive:true"
sh "cd #{path}"
end

# Build the app
gym(
scheme: 'Quran',
Expand Down

0 comments on commit a8b9d94

Please sign in to comment.