Skip to content

Dev/4.7.1 - #488

Merged
CaiYiPing merged 7 commits into
mainfrom
dev/4.7.1
Dec 2, 2026
Merged

CaiYiPing merged 7 commits into
mainfrom
dev/4.7.1

Conversation

@cqagora

@cqagora cqagora commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Change Contract

  • Requirement: Upgrade Android/iOS examples to SDK 4.7.1. SDK 4.7.1 was not released for macOS or Windows, so desktop examples retain SDK 4.7.0. Remove the hardcoded proxy from Apple release packaging and refresh the Android optional native-extension headers from the supplied SDK package.
  • Shared behavior: Preserve the Android/iOS upgrade and iOS encryption fixes. Restore the entire macOS/ and windows/ trees to PR base 43abca4c115f3e41b2ec627019b6ea9e25add8a9. Apple packaging scripts inherit the worker's network environment. Android native-extension include trees exactly match the supplied SDK package, including nested headers.
  • SDK/API changes: Android/iOS use 4.7.1; macOS/Windows use 4.7.0. Header replacement introduces the package's API declarations and documentation without changing example sources, lifecycle, callbacks, permissions, UI or optional-module defaults.
  • Non-goals: SDK publication, release packaging execution, new examples, adding native binary assets, enabling optional extensions by default, or merging this PR.
  • References: docs/ai/project-matrix.md; desktop correction 2b98735054a283cbb79a5752bb6abf8d25d55c4d; proxy correction 9e0e8bb28519dec86484b6a3422a58208eb9a351, cherry-picked from Shengwang-Community/API-Examples 3372078; header refresh 8611aa4eecb743d1a162a2c5d1eaf968221bef9e following Android/APIExample/README.zh.md.

Project Scope

These decisions cover the follow-up corrections; existing mobile upgrades and encryption fixes are retained.

Project Decision Change or reason
Android Views full REQUIRED Refresh the SDK header trees for optional simple-filter and stream-encrypt modules.
Android Views audio REVIEW_ONLY Retain SDK 4.7.1; neither requested extension belongs to this independent project.
Android Compose REVIEW_ONLY Retain SDK 4.7.1; no shared extension sources with Android Views full.
iOS UIKit full REQUIRED Retain 4.7.1/encryption changes; remove forced proxy from shared build_ios.sh.
iOS UIKit audio REQUIRED Retain 4.7.1; shared iOS packaging entry point uses selected ios_direction.
iOS SwiftUI REQUIRED Retain 4.7.1; shared iOS packaging entry point uses selected ios_direction.
iOS Objective-C REQUIRED Retain 4.7.1; shared iOS packaging entry point uses selected ios_direction.
macOS AppKit REQUIRED Restore SDK/marketing version to 4.7.0; remove forced proxy from build_mac.sh.
Windows MFC REQUIRED Restore SDK download to 4.7.0; no subsequent Windows changes.

Android Header Provenance

Source: Agora_Native_SDK_for_Android_rel.v4.7.1_85838_FULL_20261117_2307_1393289.zip supplied locally.

Archive SHA256: 15bcaa0e756c82602c691b3be72d3908e279d5bc7b8424bf0d0b5bf0a90c046c.

SDK path under rtc/sdk/ Destination Verified inventory Actual changes
low_level_api/include Android/APIExample/agora-simple-filter/src/main/cpp/AgoraRtcKit 46 headers 5 modified
high_level_api/include Android/APIExample/agora-stream-encrypt/src/main/cpp/include/agora 79 headers 5 modified

All 125 destination headers match the ZIP byte-for-byte. No headers were added or removed. The header commit modifies 10 files with 309 insertions and 63 deletions, including the nested rte_base/rte_cpp_player.h. Native binaries, module flags and other platform files are unchanged by that commit.

Cross-Platform Review

  • Intentional differences: Android/iOS use 4.7.1; desktop remains on the released 4.7.0 SDK. Proxy removal affects Apple release packaging. Header replacement affects only the two Android Views full native modules; all eight other project decisions for the header refresh are review-only or not applicable.
  • Target context: The proxy cherry-pick removes exactly three exports per script and retains Agora-specific names, parameters and surrounding content. Original author/date, Co-authored-by and source SHA are preserved; zero-context stable patch-id matches upstream (e40812eca88eb219d1661a654af8df25d6618802).
  • Lifecycle/threading/resources/permissions: No follow-up example implementation or runtime behavior changes. SDK header bytes are preserved exactly.
  • Validation boundary: Workers requiring proxies must supply them through the environment. Standard Compile CI leaves the two optional Android modules disabled and cannot establish their native linking, APK packaging or runtime behavior.

Validation

Scope Command or check Status Evidence / remaining work
Desktop restoration git diff --exit-code 43abca4c115f3e41b2ec627019b6ea9e25add8a9 HEAD -- macOS windows PASS Entire desktop trees match PR base after the header refresh.
Apple proxy correction Exact source patch comparison and bash -n on both scripts PASS Two files, six proxy exports removed; source patch-id preserved.
Apple signing helpers Existing test_check_ios_signing_assets.py suite PASS 8 tests passed during proxy correction; helpers unchanged.
Android native headers Compare inventories, bytes and SHA256 against SDK ZIP PASS All 125 headers match; only 10 files modified.
Android native sources NDK 26.1.10909125, API 24, C++14, -fPIC -c for every source and both configured ABIs PASS 9 filter sources + 1 encryption source, each for arm64-v8a and armeabi-v7a: 20/20 object compilations passed. Objects and logs remain outside the repository.
Android full optional-module assembly/link/APK Gradle/CMake build with both extensions enabled and README native dependencies installed BLOCKED Local CMake 3.22.1 and external native-library assets, including OpenCV, are absent. Provision README dependencies and run ./gradlew -PsimpleFilter=true -PstreamEncrypt=true :agora-simple-filter:assembleDebug :agora-stream-encrypt:assembleDebug; link/APK/runtime validation remains outstanding. Object compilation does not replace it.
Repository checks git diff --check, staged Gitleaks and English commit-message hooks PASS Passed for header commit; no task notes, binaries or generated build outputs committed.
Remote delivery Regular push to dev/4.7.1 PASS Header commit 8611aa4eecb743d1a162a2c5d1eaf968221bef9e pushed after 9e0e8bb2.
Current standard Compile CI Run 46885408670 NOT_RUN Latest observed status: queued; head SHA verified as 8611aa4eecb743d1a162a2c5d1eaf968221bef9e. Optional native modules are disabled in this workflow.
Actual Jenkins release packaging Worker network/signing/artifact validation NOT_RUN Outside the requested execution scope; compile CI does not prove release packaging success.

Header replacement and push are delivered. Full optional-module assembly and CI acceptance remain pending as recorded above.

- Guard Token and join callbacks with weak references, request generation,
  engine identity and channel checks on the main queue.
- Stop preview, unregister custom packet processing, leave once and destroy
  the owned engine on exit; ignore queued remote video callbacks afterward.
- Preserve the encryption inputs and update the UIKit case documentation.
- Validation: Swift syntax, diff whitespace and staged Gitleaks checks passed.
  Full app compilation and RTC device regression were not run.
@cqagora
cqagora requested a review from alienzh November 18, 2026 11:46
cqagora and others added 4 commits November 19, 2026 16:20
Declare the Agora CocoaPods source in all iOS and macOS Podfiles and retain the public CDN for third-party pods. Keep the Android Agora Maven routing and the UIKit local SDK packaging entry point. Document the overseas dependency sources.
Co-authored-by: zhangwei <zhangwei03@shengwang.cn>

(cherry picked from commit 3372078b44bf4b5c6d95c336281e78b5d62cc227)
Replace low-level filter and high-level encryption headers with the supplied Android SDK 4.7.1 build 85838 package. Preserve the SDK header bytes and nested include layout.
@CaiYiPing
CaiYiPing merged commit 77e2a38 into main Dec 2, 2026
22 of 28 checks passed
@CaiYiPing CaiYiPing mentioned this pull request Dec 2, 2026
4 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants