Skip to content

Commit

Permalink
Merge pull request #201 from tejas238/android-fixes-tejas
Browse files Browse the repository at this point in the history
upgrade gradle versions and include .cxx bindings
  • Loading branch information
joseph-henry authored Nov 23, 2022
2 parents eca2f5b + 038166f commit 0cb84aa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Android")
set(BUILD_HOST_SELFTEST FALSE)
set(BUILD_EXAMPLES FALSE)
set(ALLOW_INSTALL_TARGET FALSE)
set(LANG_WRAPPER_FILE ${LIBZT_SRC_DIR}/bindings/java/*.cxx)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DZTS_ENABLE_JAVA=1")
endif()

if(BUILD_MACOS_FRAMEWORK)
Expand Down
6 changes: 3 additions & 3 deletions pkg/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 28
compileSdkVersion 31
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
minSdkVersion 21
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
2 changes: 1 addition & 1 deletion pkg/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:7.2.1'


// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 1 addition & 1 deletion pkg/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
4 changes: 2 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# C++ Source

- C API is exposed via [include/ZeroTierSockets.h](./../include/ZeroTierSocket.h)
- [bindings/](./bindings) Contains the source for wrappers in various languages. See [examples/](./../examples) for their usage.
- C API is exposed via [include/ZeroTierSockets.h](../include/ZeroTierSockets.h)
- [bindings/](./bindings) Contains the source for wrappers in various languages. See [examples/](../examples/) for their usage.

0 comments on commit 0cb84aa

Please sign in to comment.