equal
  deleted
  inserted
  replaced
  
    
    
    19  * You should have received a copy of the GNU General Public License  | 
    19  * You should have received a copy of the GNU General Public License  | 
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.  | 
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.  | 
    21  */  | 
    21  */  | 
    22 package com.geekorum.build.conventions  | 
    22 package com.geekorum.build.conventions  | 
    23   | 
    23   | 
         | 
    24 import com.android.build.api.dsl.KotlinMultiplatformAndroidLibraryTarget  | 
    24 import com.android.build.gradle.BaseExtension  | 
    25 import com.android.build.gradle.BaseExtension  | 
    25 import org.gradle.api.Project  | 
    26 import org.gradle.api.Project  | 
         | 
    27 import org.gradle.api.plugins.ExtensionAware  | 
    26 import org.gradle.kotlin.dsl.findByType  | 
    28 import org.gradle.kotlin.dsl.findByType  | 
         | 
    29 import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension  | 
         | 
    30   | 
    27   | 
    31   | 
    28 fun Project.conventionForAndroidProject() { | 
    32 fun Project.conventionForAndroidProject() { | 
         | 
    33     // new androidLibrary in multiplatform project  | 
         | 
    34     extensions.findByType<KotlinMultiplatformExtension>()?.apply { | 
         | 
    35         (this as ExtensionAware).extensions.findByType<KotlinMultiplatformAndroidLibraryTarget>()?.apply { | 
         | 
    36             compileSdk = 36  | 
         | 
    37             minSdk = 28  | 
         | 
    38             aarMetadata { | 
         | 
    39                 minCompileSdk = 28  | 
         | 
    40             }  | 
         | 
    41         }  | 
         | 
    42     }  | 
         | 
    43   | 
    29     extensions.findByType<BaseExtension>()?.apply { | 
    44     extensions.findByType<BaseExtension>()?.apply { | 
    30         setCompileSdkVersion(36)  | 
    45         setCompileSdkVersion(36)  | 
    31         defaultConfig { | 
    46         defaultConfig { | 
    32             minSdk = 28  | 
    47             minSdk = 28  | 
    33             aarMetadata { | 
    48             aarMetadata { |