diff --git a/public/project-template.zip b/public/project-template.zip index 0516cbe..4ddf8e3 100644 Binary files a/public/project-template.zip and b/public/project-template.zip differ diff --git a/src/transaction.js b/src/transaction.js index 702d50b..bf3b739 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -105,91 +105,6 @@ const transaction = { }); return finalCode; }, - /** - * 注入依赖 - 适用于 'build.gradle' 文件 - * @param origCode 原始代码 - * @param dependencies 依赖内容数组 - * @return string - */ - implement: (origCode, ...dependencies) => { - if (dependencies.length <= 0) return; - let finalCode = origCode; - dependencies.forEach((value) => { - finalCode = finalCode.concat(value.type, codeFiles.space(1), '\'', - value.groupId, ':', value.artifactId, ':', value.version, '\'\n', codeFiles.space(4)); - }); - return finalCode; - }, - 'build.gradle': { - dependencies: { - androidXposed: { - type: 'compileOnly', - groupId: 'de.robv.android.xposed', - artifactId: 'api', - version: '82' - }, - yukiHookApiApi: { - type: 'implementation', - groupId: 'com.highcapable.yukihookapi', - artifactId: 'api', - version: configs.projectDependencies.yukiHookApiVersion - }, - yukiHookApiKsp: { - type: 'ksp', - groupId: 'com.highcapable.yukihookapi', - artifactId: 'ksp-xposed', - version: configs.projectDependencies.yukiHookApiVersion - }, - drawabletoolbox: { - type: 'implementation', - groupId: 'com.github.duanhong169', - artifactId: 'drawabletoolbox', - version: '1.0.7' - }, - androidxCoreKtx: { - type: 'implementation', - groupId: 'androidx.core', - artifactId: 'core-ktx', - version: '1.10.1' - }, - appcompat: { - type: 'implementation', - groupId: 'androidx.appcompat', - artifactId: 'appcompat', - version: '1.6.1' - }, - material: { - type: 'implementation', - groupId: 'com.google.android.material', - artifactId: 'material', - version: '1.9.0' - }, - constraintlayout: { - type: 'implementation', - groupId: 'androidx.constraintlayout', - artifactId: 'constraintlayout', - version: '2.1.4' - }, - junit: { - type: 'testImplementation', - groupId: 'junit', - artifactId: 'junit', - version: '4.13.2' - }, - androidxTestExt: { - type: 'androidTestImplementation', - groupId: 'androidx.test.ext', - artifactId: 'junit', - version: '1.1.5' - }, - androidxTestEspresso: { - type: 'androidTestImplementation', - groupId: 'androidx.test.espresso', - artifactId: 'espresso-core', - version: '3.5.1' - } - } - }, 'AndroidManifest.xml': { newXSharePrefs: (isEnabled) => ('