Skip to content

Commit

Permalink
Fix duplicate class issue with generated metadata file (#201)
Browse files Browse the repository at this point in the history
* Repro steps

* Update tests

* Nit
  • Loading branch information
vinaygaba committed Jan 4, 2022
1 parent 46e9f79 commit 794af71
Show file tree
Hide file tree
Showing 76 changed files with 77 additions and 77 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.airbnb.android.submodule
package com.airbnb.android.submodule.showkasesample

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.airbnb.android.submodule
package com.airbnb.android.submodule.showkasesample

import androidx.compose.ui.graphics.Color
import com.airbnb.android.showkase.annotation.ShowkaseColor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name1",
showkaseGroup = "group1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.airbnb.android.showkase_processor_testing.ParameterProvider
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "TestComposable1",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.ShowkaseObject
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.Composables
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.ShowkaseClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.ShowkaseClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.ShowkaseObject
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperObject
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.ShowkaseObject
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperObject
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name2",
showkaseGroup = "group2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.Composables
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.Composables
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "TestComposable",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "TestComposable",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "TestComposable",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "TestComposable",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "TestComposable",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "TestComposable",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name1",
showkaseGroup = "group1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name1",
showkaseGroup = "group1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name1",
showkaseGroup = "group1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.airbnb.android.showkase_processor_testing.ParameterProvider
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "Red",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "Title",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "Red",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "Title",
showkaseGroup = "WrapperClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.ShowkaseObject
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.WrapperClass
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import com.airbnb.android.showkase_processor_testing.Composables
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.airbnb.android.showkase
import com.airbnb.android.showkase.`annotation`.ShowkaseCodegenMetadata
import kotlin.Unit

public class ShowkaseMetadataShowkase_processor_testing {
public class ShowkaseMetadata_com_airbnb_android_showkase_processor_testing {
@ShowkaseCodegenMetadata(
showkaseName = "name",
showkaseGroup = "group",
Expand Down

0 comments on commit 794af71

Please sign in to comment.