Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Replace Kapt with Napt to avoid stub generating #225

Merged
merged 11 commits into from
Sep 23, 2022
Merged

Replace Kapt with Napt to avoid stub generating #225

merged 11 commits into from
Sep 23, 2022

Conversation

Goooler
Copy link
Owner

@Goooler Goooler commented Sep 23, 2022

@Goooler Goooler added the enhancement New feature or request label Sep 23, 2022
@Goooler Goooler added this to the 1.7.0 milestone Sep 23, 2022
@Goooler
Copy link
Owner Author

Goooler commented Sep 23, 2022

https://github.com/Goooler/DemoApp/actions/runs/3111593508/jobs/5044054726

e: /home/runner/actions-runner/_work/DemoApp/DemoApp/biz/main/src/main/kotlin/io/goooler/demoapp/main/util/MainExtensions.kt: (4, 32): Unresolved reference: BR

e: /home/runner/actions-runner/_work/DemoApp/DemoApp/biz/main/src/main/kotlin/io/goooler/demoapp/main/util/MainExtensions.kt: (7, 15): Unresolved reference: BR
e: /home/runner/actions-runner/_work/DemoApp/DemoApp/biz/main/src/main/kotlin/io/goooler/demoapp/main/util/MainExtensions.kt: (11, 15): Unresolved reference: BR
> Task :biz:main:compileProdReleaseKotlin FAILED

Seems no BR generated

goooler@MacStudio ~/StudioProjects/DemoApp/biz/main/build/generated/data_binding_base_class_source_out tree .      
.
└── devDebug
    └── out
        └── io
            └── goooler
                └── demoapp
                    └── main
                        └── databinding
                            ├── MainActivityBinding.java
                            ├── MainAudioPlayActivityBinding.java
                            ├── MainCommonRvItemBinding.java
                            ├── MainHomeFragmentBinding.java
                            ├── MainPagingFragmentBinding.java
                            └── MainSrlFragmentBinding.java

@Goooler
Copy link
Owner Author

Goooler commented Sep 23, 2022

BR classes were generated in all modules but Main where the BR actually be used.

@Goooler
Copy link
Owner Author

Goooler commented Sep 23, 2022

 goooler@MacStudio ~/StudioProjects/DemoApp/common/build/generated/ap_generated_sources tree .
.
└── devDebug
    └── out
        ├── androidx
        │   └── databinding
        │       ├── DataBindingComponent.java
        │       └── library
        │           └── baseAdapters
        │               └── BR.java
        └── io
            └── goooler
                └── demoapp
                    ├── adapter
                    │   └── BR.java
                    ├── base
                    │   └── BR.java
                    └── common
                        ├── BR.java
                        ├── DataBinderMapperImpl.java
                        └── databinding
                            ├── CommonBottomTipDialogFragmentBindingImpl.java
                            ├── CommonEmptyLayoutBindingImpl.java
                            ├── CommonErrorLayoutBindingImpl.java
                            ├── CommonFullScreenDialogFragmentBindingImpl.java
                            └── CommonTitleBarBindingImpl.java

@Goooler Goooler merged commit 61820d1 into trunk Sep 23, 2022
@Goooler Goooler deleted the napt branch September 23, 2022 13:34
Goooler added a commit that referenced this pull request Sep 29, 2022
Follow up #225.

Signed-off-by: Goooler <[email protected]>
Goooler added a commit that referenced this pull request Dec 3, 2022
Minor cleanup for #225.

import io.goooler.demoapp.main.BR;

public interface BRBridge {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goooler added a commit that referenced this pull request Dec 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant