如何配置 TapAndroidProvider.txt,我们具体举一个例子,并说明各个字段的意义:
{
"Version": 1,
"Use": true,
"Priority": 2,
"ModuleName": "XD.Common",
"AndroidGradleContext": [
{
"locationType": 1,
"unityVersionCompatibleType": 1,
"templateType": 6,
"processType": 1,
"locationParam": "ADDITIONAL_PROPERTIES",
"processContent": [
"android.useAndroidX=true",
"android.enableJetifier=true"
]
},
{
"locationType": 1,
"unityVersionCompatibleType": 0,
"templateType": 3,
"processType": 1,
"locationParam": "DEPS",
"processContent": [
" implementation 'androidx.recyclerview:recyclerview:1.2.1'",
" implementation 'com.google.code.gson:gson:2.8.6'",
" implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.10'",
" implementation 'androidx.appcompat:appcompat:1.3.1'",
" implementation \"com.squareup.retrofit2:retrofit:2.9.0\"",
" implementation \"com.squareup.retrofit2:adapter-rxjava2:2.9.0\"",
" implementation \"io.reactivex.rxjava2:rxandroid:2.1.1\"",
" implementation \"com.squareup.okhttp3:okhttp:4.7.2\"",
" implementation \"com.squareup.okio:okio:2.6.0\""
]
},
{
"locationType": 2,
"unityVersionCompatibleType": 0,
"templateType": 5,
"processType": 2,
"locationParam": "classpath 'com.android.tools.build:gradle:3.\\d{1}.\\d{1}'",
"processContent": [
"classpath 'com.android.tools.build:gradle:4.0.1'"
]
},
{
"locationType": 2,
"unityVersionCompatibleType": 0,
"templateType": 5,
"processType": 2,
"locationParam": "classpath 'com.android.tools.build:gradle:4.0.0'",
"processContent": [
"classpath 'com.android.tools.build:gradle:4.0.1'"
]
}
]
}