Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 committed Dec 22, 2022
1 parent 20ac4e4 commit de8735c
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 52 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ jobs:

steps:
- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
java-version: '17'
- name: Configuration Environment
shell: bash
run: |
Expand All @@ -29,7 +30,7 @@ jobs:
echo 'org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8' >> gradle.properties
echo 'org.gradle.caching=true' >> gradle.properties
echo 'org.gradle.parallel=true' >> gradle.properties
echo -e "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_SDK_ROOT/licenses/android-sdk-preview-license
echo '84831b9409646a918e30573bab4c9c91346d8abd' > $ANDROID_SDK_ROOT/licenses/android-sdk-preview-license
- name: Build with Gradle
run: |
./gradlew :b:publishToMavenLocal
Expand All @@ -41,12 +42,12 @@ jobs:
ls -l app/build/outputs/androidTest-results/managedDevice/atd64bit/testlog
rm -v app/build/outputs/androidTest-results/managedDevice/*/testlog/adb.additional_test_output*
- name: Upload app
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-app
path: app/build/outputs
- name: Upload library
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-library
path: ~/.m2
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This library is based on the [boringssl AOSP repo](https://android.googlesource.
Gradle:

```gradle
implementation 'io.github.vvb2060.ndk:boringssl:3.0'
implementation 'io.github.vvb2060.ndk:boringssl:3.1'
```

This library is [Prefab](https://google.github.io/prefab/), so you will need to enable it in your project (Android Gradle Plugin 4.1+):
Expand All @@ -28,7 +28,7 @@ android {

### ndk-build

you can use `crypto_static`/`ssl_static` in your `Android.mk`.
you can use `crypto_static`/`ssl_static` in your `Android.mk`.
For example, if your application defines `libapp.so` and it uses `ssl_static`, your `Android.mk` file should include the following:

```makefile
Expand All @@ -49,7 +49,7 @@ $(call import-module,prefab/boringssl)

### CMake

you can use `crypto_static`/`ssl_static` in your `CMakeLists.txt`.
you can use `crypto_static`/`ssl_static` in your `CMakeLists.txt`.
For example, if your application defines `libapp.so` and it uses `crypto_static`, your `CMakeLists.txt` file should include the following:

```cmake
Expand Down Expand Up @@ -80,3 +80,4 @@ include [submodule path]/boringssl/src/main/native/BoringSSL.mk
* 1.0 [android-r-beta-3](https://android.googlesource.com/platform/external/boringssl/+/refs/tags/android-r-beta-3) [2fb729d4f36beaf263ad85e24a790b571652679c](https://github.com/google/boringssl/tree/2fb729d4f36beaf263ad85e24a790b571652679c)
* 2.0 [android-s-preview-1](https://android.googlesource.com/platform/external/boringssl/+/refs/tags/android-s-preview-1) [ae2bb641735447496bed334c495e4868b981fe32](https://github.com/google/boringssl/tree/ae2bb641735447496bed334c495e4868b981fe32)
* 3.0 [android-t-preview-2](https://android.googlesource.com/platform/external/boringssl/+/refs/tags/android-t-preview-2) [345c86b1cfcc478a71a9a71f0206893fd16ae912](https://github.com/google/boringssl/tree/345c86b1cfcc478a71a9a71f0206893fd16ae912)
* 3.1 [android-13.0.0_r18](https://android.googlesource.com/platform/external/boringssl/+/refs/tags/android-13.0.0_r18) [base 1530333b25589ee4d4d52b10e78ee55dd82f6dcd](https://github.com/google/boringssl/tree/1530333b25589ee4d4d52b10e78ee55dd82f6dcd) [patch adeb743478cf1894e0148e46044dc51f091a312e](https://github.com/google/boringssl/tree/adeb743478cf1894e0148e46044dc51f091a312e)
22 changes: 11 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ plugins {
}

android {
compileSdkVersion 32
buildToolsVersion '32.0.0'
ndkVersion '23.1.7779620'
compileSdkVersion 33
buildToolsVersion '33.0.1'
ndkVersion '25.1.8937393'
namespace 'io.github.vvb2060.ndk.boringssl.test'
defaultConfig {
applicationId 'io.github.vvb2060.boringssl.test'
minSdkVersion 16
targetSdkVersion 32
versionCode 3
versionName 'android-t-preview-2'
minSdkVersion 19
targetSdkVersion 33
versionCode 4
versionName 'android-13.0.0_r18'
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
externalNativeBuild {
ndkBuild.arguments "-j${Runtime.runtime.availableProcessors()}"
Expand Down Expand Up @@ -67,7 +67,7 @@ android {
}

dependencies {
// implementation 'io.github.vvb2060.ndk:boringssl:3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test:rules:1.4.0'
// implementation 'io.github.vvb2060.ndk:boringssl:3.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test:rules:1.5.0'
}
2 changes: 1 addition & 1 deletion app/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="io.github.vvb2060.ndk.boringssl.test" />
<manifest />
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.github.vvb2060.ndk.boringssl.test">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
21 changes: 7 additions & 14 deletions boringssl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,18 @@ plugins {
}

android {
compileSdkVersion 32
buildToolsVersion '32.0.0'
ndkVersion '23.1.7779620'
compileSdkVersion 33
buildToolsVersion '33.0.1'
ndkVersion '25.1.8937393'
namespace 'io.github.vvb2060.ndk.boringssl'
defaultConfig {
minSdkVersion 16
targetSdkVersion 32
versionCode 3
versionName 'android-t-preview-2'
minSdkVersion 19
targetSdkVersion 33
externalNativeBuild {
ndkBuild.arguments "-j${Runtime.runtime.availableProcessors()}"
}
}

buildTypes {
release {
minifyEnabled true
}
}

externalNativeBuild {
ndkBuild.path 'src/main/native/BoringSSL.mk'
}
Expand Down Expand Up @@ -60,7 +53,7 @@ publishing {
mavenJava(MavenPublication) {
group 'io.github.vvb2060.ndk'
artifactId 'boringssl'
version '3.0'
version '3.1'
afterEvaluate {
from components.release
}
Expand Down
2 changes: 1 addition & 1 deletion boringssl/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="io.github.vvb2060.ndk.boringssl"/>
<manifest />
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
18 changes: 14 additions & 4 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,10 +80,10 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
Expand Down Expand Up @@ -143,12 +143,16 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -205,6 +209,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
15 changes: 9 additions & 6 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,8 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down
5 changes: 3 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ pluginManagement {
mavenCentral()
}
plugins {
id 'com.android.application' version '7.3.0-alpha09'
id 'com.android.library' version '7.3.0-alpha09'
id 'com.android.application' version '7.3.1'
id 'com.android.library' version '7.3.1'
id 'org.jetbrains.kotlin.android' version '1.7.21'
}
}
dependencyResolutionManagement {
Expand Down

0 comments on commit de8735c

Please sign in to comment.