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

完全不生效 #414

Open
ganyao114 opened this issue Aug 30, 2023 · 0 comments
Open

完全不生效 #414

ganyao114 opened this issue Aug 30, 2023 · 0 comments

Comments

@ganyao114
Copy link

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 {
/**

  • If transitive is true, local jar module and remote library's dependencies will be embed.
  • If transitive is false, just embed first level dependency
  • Local aar project does not support transitive, always embed first level
  • Default value is false
  • @SInCE 1.3.0
    */
    transitive = true
    }

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 全都没有打包进去

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

No branches or pull requests

1 participant