{"id":18442344,"url":"https://github.com/asteriskzuo/simple-build-ios-and-android-script","last_synced_at":"2025-10-09T12:32:42.125Z","repository":{"id":111957572,"uuid":"267549058","full_name":"AsteriskZuo/simple-build-ios-and-android-script","owner":"AsteriskZuo","description":"Simple build iOS and Android script on MacOS.","archived":false,"fork":false,"pushed_at":"2020-08-08T00:40:25.000Z","size":204,"stargazers_count":29,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-09T12:32:02.936Z","etag":null,"topics":["android-library","build-android","build-android-script","build-ios","build-ios-script","build-script","curl","ios-library","macos","native","native-library","nghttp2","openssl","protobuf","shell"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AsteriskZuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-28T09:32:35.000Z","updated_at":"2025-09-15T17:53:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6a87a92-2f05-48f0-840e-f3ed1acce4a9","html_url":"https://github.com/AsteriskZuo/simple-build-ios-and-android-script","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/AsteriskZuo/simple-build-ios-and-android-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsteriskZuo%2Fsimple-build-ios-and-android-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsteriskZuo%2Fsimple-build-ios-and-android-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsteriskZuo%2Fsimple-build-ios-and-android-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsteriskZuo%2Fsimple-build-ios-and-android-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AsteriskZuo","download_url":"https://codeload.github.com/AsteriskZuo/simple-build-ios-and-android-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsteriskZuo%2Fsimple-build-ios-and-android-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001445,"owners_count":26083078,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-library","build-android","build-android-script","build-ios","build-ios-script","build-script","curl","ios-library","macos","native","native-library","nghttp2","openssl","protobuf","shell"],"created_at":"2024-11-06T06:42:06.160Z","updated_at":"2025-10-09T12:32:42.121Z","avatar_url":"https://github.com/AsteriskZuo.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-build-ios-and-android-script\n## 1. Documentation\n### Introduction\n\u003e #### A common build project for building mobile platform native libraries.\n### Target users\n\u003e #### Mobile platform C\u0026\u0026C++ native library.\n### Build target library list:\n\u003e | id | name | version | dependent libraries | note |\n\u003e | :- | :--- | :------ | :------------------ | :--- |\n\u003e | 1  | openssl | 1.1.1d | - | Configure is perl script |\n\u003e | 2  | nghttp2 | 1.40.0 | - | - |\n\u003e | 3  | curl | 7.68.0 | openssl,nghttp2 | - |\n\u003e | 3  | protobuf | 3.11.4 | - | - |\n\u003e #### iOS Platform static library(.a) support list:\n\u003e | id | armv7 | armv7s | arm64 | arm64e | x86 | x86-64 | note |\n\u003e | :- | :---- | :----- | :---- | :----- | :-- | :----- | :--- |\n\u003e | 1  | yes | no | yes | yes | no | yes | - |\n\u003e | 2  | yes | no | yes | yes | no | yes | - |\n\u003e | 3  | yes | no | yes | yes | no | yes | - |\n\u003e | 4  | yes | no | yes | yes | no | yes | - |\n\u003e #### iOS Platform dynamic library(.dylib) support list:\n\u003e `TODO: `\n\u003e #### iOS Platform static framework(.framework) support list:\n\u003e `TODO: `\n\u003e #### iOS Platform dynamic framework(.framework) support list:\n\u003e `TODO: `\n\u003e #### Android Platform static library(.a) support list:\n\u003e | id | armeabi-v7a | arm64-v8a | x86 | x86-64 | note |\n\u003e | :- | :---------- | :-------- | :-- | :----- | :--- | \n\u003e | 1  | yes | yes | yes | yes | - |\n\u003e | 2  | yes | yes | yes | yes | - |\n\u003e | 3  | yes | yes | yes | yes | - |\n\u003e | 4  | yes | yes | yes | yes | - |\n\u003e #### Android Platform dynamic library(.so) support list:\n\u003e | id | armeabi-v7a | arm64-v8a | x86 | x86-64 | note |\n\u003e | :- | :---------- | :-------- | :-- | :----- | :--- | \n\u003e | 1  | yes | yes | yes | yes | - |\n\u003e | 2  | yes | yes | yes | yes | - |\n\u003e | 3  | yes | no | yes | yes | - |\n\u003e | 4  | no | yes | no | no | - |\n\u003e #### Android Platform support lists:\n### Extended instructions\n\u003e #### Use the entry script to build the target library.  \n\u003e #### ios.sh is the ios platform entry script.  \n\u003e #### android.sh is the android platform entry script.  \n\u003e #### Advanced use:  \n\u003e | target version | test result |  \n\u003e | :---- | :---- | \n\u003e | default | pass |   \n\u003e | higher | generally pass |  \n\u003e | low | maybe not pass |  \n### Contribution notes\n\u003e #### Adding subscripts requires some experience in scripting and project building.\n\u003e #### Adding subscripts can generally be a contributor to the project.\n\u003e #### Adding subscript details:\n\u003e * Update parameters:\n\u003e   + `COMMON_LIBRARY_ID_LIST`\n\u003e   + `COMMON_LIBRARY_NAME_LIST`\n\u003e   + `COMMON_LIBRARY_VERSION_LIST`\n\u003e   + `COMMON_LIBRARY_URL_LIST`\n\u003e * Update method:\n\u003e   + `common_get_library_id_from_name`\n\u003e * script:\n\u003e   + Usage agreement:\n\u003e     - A script method or function needs to use the keyword `function`.\n\u003e     - Global variables need to use the keyword `export` and are combined with uppercase alphanumeric and underlined characters.\n\u003e     - Script methods or local variables within functions use the keyword `local`.\n\u003e     - Methods within the common.sh script need to use the prefix `common_`.\n\u003e     - ios-*.sh script methods need to use the prefix `ios_`.\n\u003e     - android-*.sh script methods need to use the prefix `android_`.\n\u003e     - Methods in the util. Sh script require the prefix `util_`.\n\u003e     - Methods within the subscript need to use the prefix `xxx_`.\n\u003e     - Composite scripts require the use of composite prefixes.\n\u003e   + Method implementation:\n\u003e     - `${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_printf_variable`: (optional)\n\u003e     - `${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_pre_tool_check`: (must)\n\u003e     - `${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_pre_download_zip`: (must)\n\u003e     - `${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_build_unzip`: (must)\n\u003e     - `${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_build_config_make`: (must)\n\u003e     - `${COMMON_PLATFORM_TYPE}_${COMMON_LIBRARY_NAME}_archive`: (must)\n\u003e * Contribution notes:\n\u003e   + AsteriskZuo: Create the project and complete the main frame design.\n## 2. Architecture design\n### Programming language\n\u003e #### bash shell script\n### Build platform:\n\u003e #### MaoOS\n\u003e #### Linux: **`TODO: `**\n### Target platform:\n\u003e #### iOS\n\u003e #### Android\n### Core ideas:\n\u003e * Plug-in programming:\n\u003e   + You can build the target library by writing a corresponding subscript and adding parameters.\n\u003e * Dynamic call:\n\u003e   + Similar to C++ polymorphism.\n\u003e * High reusability:\n\u003e   + All code blocks are encapsulated using methods (functions).\n\u003e * Dependent detection:\n\u003e   + Build target library dependency detection:\n\u003e     - manual build\n\u003e     - auto build all dependency target library: **`TODO: `**\n\u003e * To reconstruct the configure: **`TODO: `**\n### Project structure:\n\u003e * Input:\n\u003e   + Source directory:\n\u003e     - GNU make project: \n\u003e     - cmake project: No build script is required. The iOS platform has a better way, and the Android platform directly introduces cmakelist files.\n\u003e   + Build tools:\n\u003e     - iOS independent compiler tool chain\n\u003e     - Android independent compiler tool chain.\n\u003e     - More ...\n\u003e * Output:\n\u003e   + Interim interim documents:\n\u003e     - Temporary intermediate file.\n\u003e     - Build the library product.\n\u003e   + Build library products:\n\u003e * Script:\n\u003e   + Entry script:\n\u003e     - ios.sh: iOS platform entry script.\n\u003e     - android.sh: Android platform entry script.\n\u003e   + Tool script:\n\u003e     - util.sh: Provide various basic functions.\n\u003e     - log.sh: Provide various basic functions.\n\u003e     - common.sh: Provide common functions for iOS and Android platforms.\n\u003e     - ios-common.sh: Provide common functions for iOS platform.\n\u003e     - android-common.sh: Provide common functions of Android platform.\n\u003e   + Subscript(plug-in script):\n\u003e     - ios-openssl.sh:\n\u003e     - android-openssl.sh:\n\u003e     - ios-curl.sh:\n\u003e     - android-curl.sh:\n\u003e     - More ...\n## 3. Problems to be solved\n### Only current list item builds are supported.\n### Project-made versions can be built, but may not be built properly for lower versions.\n### Building the dependencies of the target project requires manual construction.\n## 4. Reference\n\u003e [openssl_for_ios_and_android](https://github.com/AsteriskZuo/openssl_for_ios_and_android)\n## 5. Document\n\u003e [simple-build-ios-and-android-script](./document/simple-build-ios-and-android-script.html)   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasteriskzuo%2Fsimple-build-ios-and-android-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasteriskzuo%2Fsimple-build-ios-and-android-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasteriskzuo%2Fsimple-build-ios-and-android-script/lists"}