Skip to content

Commit 4b3ceab

Browse files
committed
added vendored-openssl feature for Android by default
1 parent 84d2c74 commit 4b3ceab

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

fastlane/Fastfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ platform :android do
4040

4141
puts "options: #{options}"
4242

43-
Tauri::Android.build(aab: options[:aab] != false, apk: options[:apk], targets: options[:targets]&.split(',') || [])
43+
Tauri::Android.build(aab: options[:aab] != false, apk: options[:apk], targets: options[:targets]&.split(',') || [],
44+
features: use_prebuilt_openssl ? [] : ["vendored-openssl"])
4445
end
4546

4647
desc "Deploy a new version to the Google Play"

fastlane/util/tauri.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
module Tauri
22
module Android
3-
def self.build(aab: true, apk: true, targets: [])
3+
def self.build(aab: true, apk: true, targets: [], features: [])
44
output_args = []
55
output_args << "--aab" if aab
66
output_args << "--apk" if apk
77
targets.each { |target|
88
output_args << "--target"
99
output_args << target
1010
}
11+
unless features.empty? do
12+
output_args << "--features"
13+
output_args << features.join(",")
14+
end
1115
Dir.chdir("..") do
1216
Fastlane::Actions::sh("npm", "run", "tauri", "android", "build", "--", *output_args)
1317

0 commit comments

Comments
 (0)