Skip to content

Commit

Permalink
fixed min_sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
dimahts990 committed Mar 6, 2024
1 parent b53c6a9 commit 97a2f17
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions platform/android/build/dex_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ class DexBuilder

attr_accessor :logger, :sdk_path, :build_tools_path, :androidplatform, :javabin

$min_sdk_level=""

def build( jarlist = [], outdex, min_sdk_level )
def build( jarlist = [], outdex, min_sdk )
tools_path = detect_tools_path
$min_sdk_level = min_sdk_level

bin,args = build_cmd_line(tools_path, jarlist, outdex)
bin,args = build_cmd_line(tools_path, jarlist, outdex, min_sdk)

@logger.debug "BIN: #{bin}, ARGS: #{args}"
return false unless bin
Expand Down Expand Up @@ -44,7 +41,7 @@ def detect_tools_path
path
end

def build_cmd_line(tools_path, jarlist, outdex)
def build_cmd_line(tools_path, jarlist, outdex, min_sdk)

@logger.error( "DEX builder: path to build tools not set" ) unless @build_tools_path

Expand Down Expand Up @@ -79,7 +76,7 @@ def build_cmd_line(tools_path, jarlist, outdex)
#args << '--no-desugaring'
args.concat jarlist
args << '--min-api'
args << $min_sdk_level.to_s
args << min_sdk.to_s

return d8, args
else
Expand Down

0 comments on commit 97a2f17

Please sign in to comment.