Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android模板工程对齐官方默认模板 #18151

Open
wants to merge 1 commit into
base: v3.8.6
Choose a base branch
from

Conversation

dream93
Copy link
Contributor

@dream93 dream93 commented Jan 9, 2025

Re: #

Changelog

  • 修改android工程模板

好处

  1. 多渠道打包,在src下创建对应文件夹即可设置路径,无需单独设置sourceSets
  2. 一般打包,sdk可能会有要在assets下面添加文件的需求,目前要不自己定义sourceSets,要不将文件放到data文件下
    如果按照官方的默认路径,将大大减少开发者难度,且修改后基本不破坏原有逻辑

Copy link

github-actions bot commented Jan 9, 2025

✅ Package size is not changed

Interface Check Report

This pull request does not change any public interfaces !

@minggo minggo requested a review from bofeng-song January 15, 2025 01:40
@bofeng-song
Copy link
Contributor

bofeng-song commented Jan 16, 2025

Re: #

Changelog

  • 修改android工程模板

好处

  1. 多渠道打包,在src下创建对应文件夹即可设置路径,无需单独设置sourceSets
  2. 一般打包,sdk可能会有要在assets下面添加文件的需求,目前要不自己定义sourceSets,要不将文件放到data文件下
    如果按照官方的默认路径,将大大减少开发者难度,且修改后基本不破坏原有逻辑

能说下目前哪些sdk遇到了,需要这么处理的吗,可以发截图上来,谢谢。 目前大部分的sdk提供的是jar或者aar,比较少会出现直接集成源码的方式。

@dream93
Copy link
Contributor Author

dream93 commented Jan 16, 2025

方的默认形式,一定要自己创造一个呢?多渠道打包,

能说下目前哪些sdk遇到了,需要这么处理的吗,可以发截图上来,谢谢。 目前大部分的sdk提供的是jar或者aar,比较少会出现直接集成源码的方式。

首先,sdk方面比如 oaid 这个,就需要在assets文件夹下添加一个supplierconfig.json 文件
其实,多渠道打包,每个渠道对应的文件不一样,你们的配置就必须每个渠道单独配置路径,而官方是可以直接读取的。

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.

2 participants