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

Make the plugin compatible with kotlin-only projects, add more tests #14

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

mateuszkwiecinski
Copy link
Member

No description provided.

Copy link

github-actions bot commented Nov 12, 2023

Diffuse output:

OLD: diffuse-base-file
NEW: licensee-for-android.jar

       │           compressed            │           uncompressed            
       ├──────────┬──────────┬───────────┼───────────┬───────────┬───────────
 JAR   │ old      │ new      │ diff      │ old       │ new       │ diff      
───────┼──────────┼──────────┼───────────┼───────────┼───────────┼───────────
 class │ 52.9 KiB │ 68.6 KiB │ +15.6 KiB │ 117.4 KiB │   149 KiB │ +31.6 KiB 
 other │  1.5 KiB │  1.5 KiB │       0 B │     189 B │     189 B │       0 B 
───────┼──────────┼──────────┼───────────┼───────────┼───────────┼───────────
 total │ 54.4 KiB │ 70.1 KiB │ +15.6 KiB │ 117.6 KiB │ 149.2 KiB │ +31.6 KiB 

 CLASSES │ old │ new │ diff          
─────────┼─────┼─────┼───────────────
 classes │  28 │  39 │ +11 (+12 -1)  
 methods │ 294 │ 363 │ +69 (+80 -11) 
  fields │  71 │  92 │ +21 (+23 -2)
JAR
     compressed      │     uncompressed     │                                                                                                             
─────────┬───────────┼──────────┬───────────┤                                                                                                             
 size    │ diff      │ size     │ diff      │ path                                                                                                        
─────────┼───────────┼──────────┼───────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────
 3.8 KiB │  +1.8 KiB │ 10.8 KiB │  +6.3 KiB │ ∆ io/github/usefulness/licensee/LicenseeForAndroidPlugin.class                                              
 1.5 KiB │  +1.5 KiB │  2.9 KiB │  +2.9 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_apply_1_1_2_1.class                                
 1.4 KiB │  +1.4 KiB │  2.7 KiB │  +2.7 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_codeGenerationTask_1.class   
 1.4 KiB │  +1.4 KiB │  2.8 KiB │  +2.8 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_copyArtifactsTask_1.class    
 1.3 KiB │  +1.3 KiB │  2.5 KiB │  +2.5 KiB │ + io/github/usefulness/licensee/LicenseeFileCopyTask.class                                                  
         │  -1.3 KiB │          │  -2.5 KiB │ - io/github/usefulness/licensee/AssetCopyTask.class                                                         
 1.2 KiB │  +1.2 KiB │  2.1 KiB │  +2.1 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_apply_1_1_2_1_1.class                              
 1.1 KiB │  +1.1 KiB │    2 KiB │    +2 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_3.class                      
 1.1 KiB │  +1.1 KiB │  1.8 KiB │  +1.8 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_targetDirectory_1.class      
 1.1 KiB │  +1.1 KiB │  1.8 KiB │  +1.8 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_targetDirectory_2.class      
 1.1 KiB │  +1.1 KiB │  1.8 KiB │  +1.8 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_2.class                      
 1.1 KiB │  +1.1 KiB │  1.8 KiB │  +1.8 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_4.class                      
 1.1 KiB │  +1.1 KiB │  1.7 KiB │  +1.7 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_5.class                      
 1.1 KiB │  +1.1 KiB │  1.7 KiB │  +1.7 KiB │ + io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureKotlinPlugin_1.class                      
 1.5 KiB │    +332 B │  3.2 KiB │  +1.3 KiB │ ∆ io/github/usefulness/licensee/LicenseeForAndroidExtensionKt.class                                         
 2.3 KiB │    +257 B │  5.5 KiB │    +879 B │ ∆ io/github/usefulness/licensee/LicenseeForAndroidPlugin_apply_1_1.class                                    
 1.9 KiB │     -13 B │  4.6 KiB │     -16 B │ ∆ io/github/usefulness/licensee/LicenseeForAndroidExtension.class                                           
   973 B │      -3 B │  1.4 KiB │      +7 B │ ∆ io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureAndroidPlugin_1_1.class                   
 3.4 KiB │      +2 B │  8.5 KiB │      +5 B │ ∆ io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureAndroidPlugin_1.class                     
 1.2 KiB │      -1 B │    2 KiB │       0 B │ ∆ io/github/usefulness/licensee/LicenseeForAndroidPlugin_apply_1_1_1_1.class                                
 1.1 KiB │      -1 B │  1.7 KiB │     +28 B │ ∆ io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureAndroidPlugin_1_2.class                   
 1.3 KiB │       0 B │  2.2 KiB │     +24 B │ ∆ io/github/usefulness/licensee/LicenseeForAndroidPlugin_configureAndroidPlugin_1_copyArtifactsTask_1.class 
─────────┼───────────┼──────────┼───────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────
  32 KiB │ +15.6 KiB │ 65.7 KiB │ +31.6 KiB │ (total)
CLASSES
CLASSES:

   old │ new │ diff         
  ─────┼─────┼──────────────
   28  │ 39  │ +11 (+12 -1) 
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_targetDirectory_2
  + io.github.usefulness.licensee.LicenseeFileCopyTask
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_1
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_targetDirectory_1
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_5
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1_1
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_codeGenerationTask_1
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_copyArtifactsTask_1
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_3
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_4
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_configureKotlinPlugin_2
  
  - io.github.usefulness.licensee.AssetCopyTask
  

METHODS:

   old │ new │ diff          
  ─────┼─────┼───────────────
   294 │ 363 │ +69 (+80 -11) 
  + io.github.usefulness.licensee.LicenseeFileCopyTask <init>()
  + io.github.usefulness.licensee.LicenseeFileCopyTask action()
  + io.github.usefulness.licensee.LicenseeFileCopyTask getInputFile() → RegularFileProperty
  + io.github.usefulness.licensee.LicenseeFileCopyTask getOutputDirectory() → DirectoryProperty
  + io.github.usefulness.licensee.LicenseeFileCopyTask getTargetFileName() → Property
  + io.github.usefulness.licensee.LicenseeForAndroidExtension getEnableResourceGeneration() → Property
  + io.github.usefulness.licensee.LicenseeForAndroidExtension getResourceFileName() → Property
  + io.github.usefulness.licensee.LicenseeForAndroidExtensionKt setProperty(ObjectFactory, Set) → SetProperty
  + io.github.usefulness.licensee.LicenseeForAndroidExtensionKt setProperty_default(ObjectFactory, Set, int, Object) → SetProperty
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin access_configureKotlinPlugin(LicenseeForAndroidPlugin, Project, LicenseeForAndroidExtension)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin(Project, LicenseeForAndroidExtension)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_10(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_2(Function1, Object) → Directory
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_3(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_4(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_5(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_6(Function1, Object) → Directory
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_7(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_8(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin configureKotlinPlugin_lambda_9(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1 <init>(Project, LicenseeForAndroidPlugin, LicenseeForAndroidExtension, Project)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1 invoke_lambda_3_lambda_2(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1 <init>(Project, LicenseeForAndroidPlugin, Project, LicenseeForAndroidExtension)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1 invoke(Object) → Object
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1 invoke(AppliedPlugin)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1 invoke_lambda_0(Function1, Object)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1_1 <init>(LicenseeForAndroidPlugin, Project, LicenseeForAndroidExtension)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1_1 invoke(Object) → Object
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_apply_1_1_2_1_1 invoke(Project)
  + io.github.usefulness.licensee.LicenseeForAndroidPlugin_c
...✂

@mateuszkwiecinski mateuszkwiecinski merged commit f11daa7 into master Nov 12, 2023
9 checks passed
@mateuszkwiecinski mateuszkwiecinski deleted the updates branch November 12, 2023 09:57
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

Successfully merging this pull request may close these issues.

1 participant