{"id":17032951,"url":"https://github.com/up9cloud/android-libtdjson","last_synced_at":"2025-04-12T13:04:28.568Z","repository":{"id":147292818,"uuid":"380894334","full_name":"up9cloud/android-libtdjson","owner":"up9cloud","description":"Prebuilt [TDLib](https://github.com/tdlib/td) shared libs (libtdjson.so) for Android","archived":false,"fork":false,"pushed_at":"2024-06-27T23:06:58.000Z","size":88,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T12:46:24.864Z","etag":null,"topics":["android","lib","libtdjson","maven","prebuilt","tdjson","tdlib","telegram","telegram-api"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/up9cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-28T03:28:10.000Z","updated_at":"2024-07-22T10:45:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"326ee5ca-9711-45db-83e3-5b891a03f1b5","html_url":"https://github.com/up9cloud/android-libtdjson","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fandroid-libtdjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fandroid-libtdjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fandroid-libtdjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fandroid-libtdjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/up9cloud","download_url":"https://codeload.github.com/up9cloud/android-libtdjson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223518568,"owners_count":17158689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","lib","libtdjson","maven","prebuilt","tdjson","tdlib","telegram","telegram-api"],"created_at":"2024-10-14T08:31:09.611Z","updated_at":"2024-11-07T13:04:53.747Z","avatar_url":"https://github.com/up9cloud.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# android-libtdjson\n\n[![Releases](https://github.com/up9cloud/android-libtdjson/actions/workflows/main.yml/badge.svg)](https://github.com/up9cloud/android-libtdjson/actions/workflows/main.yml)\n\nPrebuilt [libtdjson](https://github.com/tdlib/td) for Android\n\n`Version` tag is same as the version of tdlib\n\n\u003e Releases\n\n- libs.tar.gz: .so files without jni\n- jniLibs.tar.gz: .so files with jni\n\n\u003e Packages\n\n- maven\n\n\u003e Supported architectures\n\n| Platform         | Architecture |     |\n| ---------------- | ------------ | --- |\n| Android          | armeabi-v7a  | ✅   |\n|                  | arm64-v8a    | ✅   |\n| Android emulator | x86          | ✅   |\n|                  | x86_64       | ✅   |\n\n## Installation\n\n\u003e Method 1: Download jniLibs\n\n- Download jniLibs.tar.gz (from `Releases`) and extract it to your ./app/`src/main/jniLibs/`\n- Copy `./app/src/main/java/io/github/up9cloud/td/JsonClient.java` to your repo\n\n\u003e TODO: Method 2: Download .jar\n\n- Download .jar file (from `Packages`) to your ./app/`libs/`\n- Be sure \"*.jar\" is the part of dependencies in your `build.gradle` file\n\n    ```gradle\n    dependencies {\n        implementation fileTree(dir: \"libs\", include: [\"*.jar\"])\n    }\n    ```\n\n\u003e Method 3: Github Maven\n\n- Add those to your `build.gradle` file\n\n    ```gradle\n    repositories {\n        google()\n        ...\n        maven {\n            name = \"GitHubPackages\"\n            url = uri(\"https://maven.pkg.github.com/up9cloud/android-libtdjson\")\n            credentials {\n                username = System.getenv(\"GITHUB_ACTOR\")\n                password = System.getenv(\"GITHUB_TOKEN\")\n            }\n        }\n    }\n    dependencies {\n        // Modify the version, see release\n        implementation 'io.github.up9cloud:td:\u003cversion\u003e'\n    }\n    ```\n\n- Setup ENVs\n\n    ```bash\n    export GITHUB_ACTOR=\u003cyour github account\u003e\n    export GITHUB_TOKEN=\u003cyour github personal access token\u003e\n    ```\n\nOther refs:\n\n- GitHub Docs - [Gradle registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry#installing-a-package)\n- [enefce/AndroidLibraryForGitHubPackagesDemo](https://github.com/enefce/AndroidLibraryForGitHubPackagesDemo)\n\n## Usage\n\nTODO\n\n## Example\n\nTODO\n\n## Dev memo\n\n### Bump the version of tdlib\n\n- Modify the version for git checkout in `./prepare.sh`\n- Modify the getVersionName function in `./app/build.gradle`\n- Git commit (message example: `bump td to vx.x.x`)\n- Git add tag (`git tag vx.x.x`, the tag version should be same as the version of tdlib)\n- Push with tags (`git push \u0026\u0026 git push --tags`)\n- Wait for CI task\n\n### Build on local, see `.github/workflows/main.yml` also\n\n```console\n$ docker run --rm -it -v `pwd`:/app sstc/android-ndk /bin/bash\n\n# ./build.sh\n```\n\n### Cleanup generated .so files for strip testing\n\n```bash\nrm -fr \\\n    ./build/jni/**/*.so \\\n    ./build/jni/**/td/*.so \\\n    ./build/td/**/*.so \\\n    ./jniLibs \\\n    ./libs\n\n./build.sh\n```\n\n- `.travis.yml`: Travis CI has build time limitation (1 hour), and building this lib needs much more than it, so can't build on it.\n\n## License\n\nMIT\n\n- TDLib license, see [td](https://github.com/tdlib/td)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fandroid-libtdjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fup9cloud%2Fandroid-libtdjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fandroid-libtdjson/lists"}