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

please check sourceset #1195

Closed
wants to merge 1 commit into from
Closed

please check sourceset #1195

wants to merge 1 commit into from

Conversation

soloturn
Copy link
Contributor

@soloturn soloturn commented Jun 10, 2019

without this android-studio complains that it does not view DaggerApplicationComponent. not too sure though. i checked out and importet it.

Fix #1201

@soloturn soloturn requested a review from macgills June 10, 2019 06:08
@@ -339,6 +339,9 @@ android {

// Set each custom apps respective source directory
sourceSets {
main {
java.srcDirs = ['src/main/java', 'build/generated/source/kapt/kiwixRelease']
Copy link
Contributor

Choose a reason for hiding this comment

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

This is when you try to build a custom app? Hardcoding the variant is definitely not a good idea, it is possible that you could build it but just need a file refresh? Can you switch to my branch, file>invalidate caches and restart, build and then run?

Copy link
Contributor Author

@soloturn soloturn Jun 16, 2019

Choose a reason for hiding this comment

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

the goal was to find a minimal commit to convert an android java application, here the branch "develop", so that it can accomodate a kotlin application file. to learn, i looked at branch macgills/2.5-kotlin and its commits. as test i converted app/KiwixApplication.java with AndroidStudio to app/KiwixApplication.kt. the reasoning was that starting from the top of the logic would need the least adjustments in other files. the try is in soloturn/kotlin now, not compiling.

taking your 2.5-kotlin as base, i tried now again and pushed soloturn/2.5-kotlin. for me it does not build with

/srv/http/kiwix-android/app/src/main/java/org/kiwix/kiwixmobile/database/BookDao.java:44: error: cannot find symbol
  public void setBookDetails(Book book, SquidCursor<BookDatabaseEntity> bookCursor) {
                                                    ^
  symbol:   class BookDatabaseEntity
  location: class BookDao

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@macgills could you do me a favour and once try if convert KiwixApplication to kotlin compiles for you, and if not what you would change in the build.gradle?

@kelson42
Copy link
Collaborator

@soloturn In general this is recommended to have a ticket (bug report/feature request) explaining properly the what kind of thing the PR is about.... attached to the PR. PR without ticket has proven to be more complicated to deal with.

@soloturn
Copy link
Contributor Author

soloturn commented Jun 16, 2019

@soloturn In general this is recommended to have a ticket (bug report/feature request) explaining properly the what kind of thing the PR is about.... attached to the PR. PR without ticket has proven to be more complicated to deal with.

would #1201 be ok @kelson42 ? if not please adjust or close.

@soloturn soloturn mentioned this pull request Jun 16, 2019
@macgills
Copy link
Contributor

This is made redundant by #1192. I f the aim is to convert KiwixApplication to kotlin then either attempt this on that branch or await it's merge to dev to reopen this.

@macgills macgills closed this Jun 19, 2019
@kelson42 kelson42 deleted the soloturn/2.5 branch June 23, 2019 06:36
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.

3 participants