Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ subprojects {
val flags =
listOf(
"-DVERSION_CODE=${versionCodeProvider.get()}",
"-DVERSION_NAME='\"${versionNameProvider.get()}\"'",
"-DVERSION_NAME=\\\"${versionNameProvider.get()}\\\"",
)

val args =
Expand Down
7 changes: 5 additions & 2 deletions native/include/common/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ inline constexpr bool kIsDebugBuild = IsDebugBuild();
#define LP_SELECT(lp32, lp64) lp32
#endif

#define V_STR(x) #x
#define V_TOSTR(x) V_STR(x)

/// The filename of the core Android Runtime (ART) library.
inline constexpr auto kArtLibraryName = "libart.so";

Expand All @@ -43,9 +46,9 @@ inline constexpr auto kFrameworkLibraryName = "libandroidfw.so";
inline constexpr auto kLinkerPath = "/linker";

/// The version code of the library, populated by the build system.
const int kVersionCode = VERSION_CODE;
inline constexpr int kVersionCode = VERSION_CODE;

/// The version name of the library, populated by the build system.
const char *const kVersionName = VERSION_NAME;
inline constexpr auto kVersionName = V_TOSTR(VERSION_NAME);

} // namespace vector::native
4 changes: 2 additions & 2 deletions zygisk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ android {

val flags =
listOf(
"-DINJECTED_PACKAGE_NAME='\"${injectedPackageName}\"'",
"-DINJECTED_PACKAGE_NAME=\\\"${injectedPackageName}\\\"",
"-DINJECTED_PACKAGE_UID=${injectedPackageUid}",
"-DMANAGER_PACKAGE_NAME='\"${defaultManagerPackageName}\"'",
"-DMANAGER_PACKAGE_NAME=\\\"${defaultManagerPackageName}\\\"",
)

externalNativeBuild {
Expand Down
Loading