Skip to content

Commit

Permalink
Merge pull request #8380 from remibettan/android-http-to-https
Browse files Browse the repository at this point in the history
android http to https in camera app gradle.build
  • Loading branch information
ev-mp authored Feb 17, 2021
2 parents 80428bd + ba7b93c commit 98087e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrappers/android/tools/camera/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ task downloadFirmware() {
def d4xxFile = new File("$projectDir/src/main/res/raw/fw_d4xx.bin")
if (!d4xxFile.exists()) {
println("downloading D4xx fw: " + d4xxFwVersion)
new URL('http://realsense-hw-public.s3-eu-west-1.amazonaws.com/Releases/RS4xx/FW/D4XX_FW_Image-' + d4xxFwVersion + '.bin').withInputStream{ i -> d4xxFile.withOutputStream{ it << i }}
new URL('https://librealsense.intel.com/Releases/RS4xx/FW/D4XX_FW_Image-' + d4xxFwVersion + '.bin').withInputStream{ i -> d4xxFile.withOutputStream{ it << i }}
}

def l5xxFwVersion = getFwVersion('L5XX_RECOMMENDED_FIRMWARE_VERSION')
def l5xxFile = new File("$projectDir/src/main/res/raw/fw_l5xx.bin")
if (!l5xxFile.exists()) {
println("downloading L5xx fw: " + l5xxFwVersion)
new URL('http://realsense-hw-public.s3-eu-west-1.amazonaws.com/Releases/L5xx/FW/L5XX_FW_Image-' + l5xxFwVersion + '.bin').withInputStream{ i -> l5xxFile.withOutputStream{ it << i }}
new URL('https://librealsense.intel.com/Releases/L5xx/FW/L5XX_FW_Image-' + l5xxFwVersion + '.bin').withInputStream{ i -> l5xxFile.withOutputStream{ it << i }}
}

def sr3xxFwVersion = getFwVersion('SR3XX_RECOMMENDED_FIRMWARE_VERSION')
def sr3xxFile = new File("$projectDir/src/main/res/raw/fw_sr3xx.bin")
if (!sr3xxFile.exists()) {
println("downloading SR3xx fw: " + sr3xxFwVersion)
new URL('http://realsense-hw-public.s3-eu-west-1.amazonaws.com/Releases/SR300/FW/SR3XX_FW_Image-' + sr3xxFwVersion + '.bin').withInputStream{ i -> sr3xxFile.withOutputStream{ it << i }}
new URL('https://librealsense.intel.com/Releases/SR300/FW/SR3XX_FW_Image-' + sr3xxFwVersion + '.bin').withInputStream{ i -> sr3xxFile.withOutputStream{ it << i }}
}
}

Expand Down

0 comments on commit 98087e7

Please sign in to comment.