This project is designed to monitor Android package updates, analyze APK files, generate reports, and serve them via a Flask server.
__pycache__/
.vscode/
analyzer_apk.py
android_package_monitor.py
apk_info_history.json
config.py
config.yaml
doc.ipynb
dowload.py
flask_server.py
generate_chart.py
generate_report.py
images/
index.py
llm.py
message.py
monitor.py
output_parser.py
readme.md
report/
requirement.txt
template/
tool/
yaml_parser.py
Defines configuration classes such as Config
, LLMConfig
, LarkConfig
, and ReportConfig
.
Implements the AndroidPkgMonitor
class which monitors Android package updates, analyzes APK files, and generates reports.
Contains the ReportGenerator
class which generates reports in markdown or HTML format.
Sets up a Flask server to serve the generated reports.
Parses the config.yaml
file to create configuration objects.
This will allow you to access the generated reports and images. To start the Flask server, run:
python flask_server.py
The server will be available at http://0.0.0.0:19923.
The task is deployed on Jenkins. It is executed via a Jenkins shell and then started to generator Report
Reports are generated automatically by the AndroidPkgMonitor
class when a new APK is analyzed. The reports are saved in the report
directory.
python index.py --apk-path "http://app-package.ks3-cn-beijing.ksyuncs.com/xxxxxxx/app_Qa_4.5.20.63.apk"
The configuration is defined in config.yaml. It includes settings for LLM, Lark, and report generation.
Example config.yaml
llm_config:
model: "your_model"
url: "your_url"
api_key: "your_api_key"
lark_config:
webhook: "your_webhook"
secret: "your_secret"
report:
format: "html"
Install the required dependencies using:
pip install -r requirement.txt
This project is licensed under the MIT License.