Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/dev' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYi0526 committed Oct 10, 2024
2 parents f4c7a41 + 4dc909b commit 1800dfb
Show file tree
Hide file tree
Showing 47 changed files with 9,243 additions and 516 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ Build:
./gradlew assembleMini<Debug/Release/ReleaseNoGcm>
```

8. Generate `TMessagesProj/jni/integrity/genuine.h` - https://github.com/brevent/genuine

----

## Compilation with GitHub Action
Expand Down Expand Up @@ -182,6 +184,8 @@ Then, use base64 to encode the above.

4. Run Release Build

5. Generate `TMessagesProj/jni/integrity/genuine.h` - https://github.com/brevent/genuine

## FAQ

#### What is the differences between Nagram, NekoX and Nekogram?
Expand Down
2 changes: 2 additions & 0 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,13 @@ dependencies {
implementation 'com.google.android.gms:play-services-vision:20.1.3'
implementation 'com.google.android.gms:play-services-maps:18.2.0'
implementation 'com.google.android.gms:play-services-location:21.2.0'
implementation 'com.google.android.gms:play-services-wallet:19.1.0'

implementation "com.google.firebase:firebase-messaging:$fcmVersion"
implementation "com.google.firebase:firebase-crashlytics:$crashlyticsVersion"
// implementation "com.google.android.play:core:$playCoreVersion"

implementation 'com.stripe:stripe-android:2.0.2'
implementation 'com.android.billingclient:billing:6.0.1'

testImplementation "junit:junit:4.13.2"
Expand Down
4 changes: 4 additions & 0 deletions TMessagesProj/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ target_include_directories(breakpad PUBLIC
#voip
include(${CMAKE_HOME_DIRECTORY}/voip/CMakeLists.txt)

# verify
include(${CMAKE_HOME_DIRECTORY}/integrity/CMakeLists.txt)

set(NATIVE_LIB "tmessages.49")

#tmessages
Expand Down Expand Up @@ -789,6 +792,7 @@ target_link_libraries(${NATIVE_LIB}
android
OpenSLES
cpufeatures
genuine
breakpad)


Expand Down
13 changes: 13 additions & 0 deletions TMessagesProj/jni/integrity/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
add_library(genuine STATIC
integrity/am-proxy.c
integrity/apk-sign-v2.c
integrity/common.c
integrity/genuine.c
integrity/inline.c
integrity/openat.c
integrity/path.c
integrity/plt.c)
target_compile_options(genuine PUBLIC
-Oz -Wall -fvisibility=hidden)
target_include_directories(genuine PUBLIC
integrity)
Loading

0 comments on commit 1800dfb

Please sign in to comment.