kezong / fat-aar-android

A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
MIT License
3.08k stars 607 forks source link

完全不生效 #414

Open ganyao114 opened 10 months ago

ganyao114 commented 10 months ago

plugins { id 'com.android.library' id 'com.kezong.fat-aar' }

repositories { flatDir { dirs 'libs' } }

ext.pluginVersionCode = 4 ext.pluginVersionName = "1.1.2"

android { compileSdkVersion 31 buildToolsVersion "30.0.3"

defaultConfig {
    minSdkVersion 21
    targetSdkVersion 31
    versionCode pluginVersionCode
    versionName pluginVersionName
}

libraryVariants.all { variant ->
    variant.outputs.all { output ->
        output.outputFileName = "TapSDK.$pluginVersionName.${variant.name}.aar"
    }
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

fataar { /**

dependencies { compileOnly fileTree(dir: 'godot', include: ['godot-lib.aar']) embed fileTree(dir: 'libs', include: ['.aar']) implementation 'cn.leancloud:realtime-android:8.2.12' implementation 'cn.leancloud:storage-android:8.2.12' implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' implementation "androidx.legacy:legacy-support-v4:1.0.0" } libs 下的 aar 全都没有打包进去