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

✨ Session sharing functionality was implemented. #1029

Merged
merged 11 commits into from
Sep 1, 2023

Conversation

Corvus400
Copy link
Contributor

Issue

Overview (Required)

  • The sharing functionality implemented at last year's Droidkaigi has been implemented again this year.

Links

Movie (Optional)

Before After
---
share.mp4

@Corvus400 Corvus400 requested a review from a team as a code owner August 30, 2023 09:26
@github-actions
Copy link

Hi @Corvus400! Codes seem to be unformatted. To resolve this issue, please run ./gradlew detekt --auto-correct and fix the results of ./gradlew lintDebug.. Thank you for your contribution.

@github-actions
Copy link

github-actions bot commented Aug 30, 2023

Test Results

206 tests   206 ✔️  7m 59s ⏱️
  11 suites      0 💤
  11 files        0

Results for commit a8fda49.

♻️ This comment has been updated with latest results.

@github-actions github-actions bot temporarily deployed to deploygate-distribution August 30, 2023 10:09 Inactive
.setType("text/plain")
.startChooser()
} catch (e: ActivityNotFoundException) {
Log.e("ActivityNotFoundException", "Fail startActivity", e)
Copy link
Member

@takahirom takahirom Aug 30, 2023

Choose a reason for hiding this comment

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

We use Kermit for logging. Logger.e Please check it out 🙏

/**
* Platform sharing feature wrapper
*/
interface ShareManager {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we won't use this this year for other platforms. So how about removing this and rename AndroidShareManager with ShareStarteror ShareLauncher or ShareNavigator?

@github-actions
Copy link

github-actions bot commented Aug 30, 2023

@github-actions github-actions bot temporarily deployed to deploygate-distribution August 30, 2023 15:09 Inactive
@@ -284,6 +292,14 @@ private class ExternalNavController(
context.startActivity(Intent(context, OssLicensesMenuActivity::class.java))
}

fun onShareClick(timeTableItem: TimetableItem) {
shareNavigator.share(
"[${timeTableItem.room.name.currentLangTitle}] ${timeTableItem.startsTimeString} - ${timeTableItem.endsTimeString}\n" +
Copy link
Contributor

@tkhs0604 tkhs0604 Aug 30, 2023

Choose a reason for hiding this comment

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

How about adding date info too? 👀
Perhaps, we are referring the formatted datetime property on the detail screen, so we may reuse it.

Copy link
Contributor

@tkhs0604 tkhs0604 Aug 31, 2023

Choose a reason for hiding this comment

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

@Corvus400
Ah, sorry. My intention was to use timetableItem.formattedDateTimeString 🙇‍♂️
I think it is not suitable to use getDropDownText here since it is literally prepared for the drop down menu.

On the other hand, the value of timetableItem.formattedDateTimeString was much longer than I originally expected. This is just an optional, so please revert it if it is difficult to add date info in a simple way 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tkhs0604
It seems that we can add a method to get only month and date by adding it to TimetableItem.kt.
However, I felt it was a bit redundant to add a method that is only used for the share function, so I decided to revert to the original method. 🙇

@github-actions github-actions bot temporarily deployed to deploygate-distribution August 30, 2023 17:11 Inactive
Copy link
Member

@takahirom takahirom left a comment

Choose a reason for hiding this comment

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

We can tweet post by this! Thanks! 🐦

@takahirom
Copy link
Member

@tkhs0604 Please merge when you like!

@github-actions github-actions bot temporarily deployed to deploygate-distribution August 31, 2023 15:49 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution August 31, 2023 16:49 Inactive
Copy link
Contributor

@tkhs0604 tkhs0604 left a comment

Choose a reason for hiding this comment

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

Sorry for bothering you, and thank you for implementing nice share function! 📪

@tkhs0604 tkhs0604 merged commit 2021f36 into DroidKaigi:main Sep 1, 2023
6 checks passed
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.

Share button should enabled
3 participants