Skip to content

Commit b7ea45e

Browse files
author
zhengshuxin
committed
Merge branch 'master' into gitlab-upstream-master
2 parents 0e601e6 + 87822e6 commit b7ea45e

File tree

8 files changed

+39
-19
lines changed

8 files changed

+39
-19
lines changed

android/acl_c++_shared/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
apply plugin: 'com.android.library'
22

3-
/*
43
buildscript {
5-
plugins {
6-
id 'com.android.library'
7-
}
8-
94
repositories {
105
google()
116
jcenter()
@@ -17,7 +12,6 @@ buildscript {
1712
}
1813
//implementation {}
1914
}
20-
*/
2115

2216
android {
2317
compileSdkVersion 28

android/acl_ndk20/acl_one/build.gradle

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 36
5-
//buildToolsVersion "28.0.3"
6-
4+
compileSdkVersion 29 // 使用旧语法,兼容 AGP 4.2.2
5+
//buildToolsVersion "29.0.2"
6+
//ndkVersion "20.1.5948944"
7+
78
defaultConfig {
89
minSdkVersion 14
9-
targetSdkVersion 36
10-
10+
targetSdkVersion 29
11+
1112
externalNativeBuild {
1213
cmake {
1314
arguments "-DANDROID_STL=c++_shared"
@@ -22,7 +23,7 @@ android {
2223
arguments "-Wl,-z,common-page-size=16384"
2324

2425
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86'
25-
targets 'acl_static', 'protocol_static', 'acl_cpp_static', 'fiber_static', 'fiber_cpp_static', 'acl_shared', 'protocol_shared', 'acl_cpp_shared', 'fiber_shared', 'fiber_cpp_shared' // for ndk20 or above
26+
targets 'acl_static', 'protocol_static', 'acl_cpp_static', 'fiber_static', 'fiber_cpp_static', 'acl_shared', 'protocol_shared', 'acl_cpp_shared', 'fiber_shared', 'fiber_cpp_shared'
2627
}
2728
}
2829
}
@@ -43,9 +44,11 @@ android {
4344
externalNativeBuild {
4445
cmake {
4546
path '../../../CMakeLists.txt'
46-
//version "3.6.0"
4747
}
4848
}
49+
50+
// 指定 NDK 版本
51+
//ndkVersion "20.1.5948944"
4952
}
5053

5154
dependencies {

android/acl_ndk20/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:4.0.2'
7+
classpath 'com.android.tools.build:gradle:4.2.2'
8+
//classpath 'com.android.tools.build:gradle:3.3.1'
89
}
910
}
1011

android/acl_ndk20/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
time gradle build

android/acl_ndk20/clean.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
#cd acl_one
4+
#gradle clean
5+
#cd -
6+
#cd http
7+
#gradle clean
8+
#cd -
9+
10+
gradle clean
11+
12+
rm -rf build
13+
rm -rf .gradle
14+
rm -rf acl_one/build
15+
rm -rf acl_one/.cxx
16+
rm -rf http/build
17+
rm -rf http/.cxx

android/acl_ndk20/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

android/acl_ndk20/gradlew

100644100755
File mode changed.

android/acl_ndk20/http/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 29
5-
//buildToolsVersion "29.0.2"
5+
//compileSdk 29
6+
buildToolsVersion "29.0.2"
7+
68
defaultConfig {
79
applicationId "com.example.http"
8-
minSdkVersion 15
10+
minSdkVersion 14
911
targetSdkVersion 29
10-
versionCode 1
11-
versionName "1.0"
12+
//versionCode 14
13+
//versionName "1.0"
1214
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1315
externalNativeBuild {
1416
cmake {

0 commit comments

Comments
 (0)