by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 06 22:54

    adityastic on ios-framework

    [Auto] Update iOS-Framework(202… (compare)

  • Jul 06 22:46

    adityastic on gh-pages

    [Auto] Update GH-Pages from dev… (compare)

  • Jul 06 22:46

    adityastic on apk

    [Auto] Update Test Apk (2020-07… (compare)

  • Jul 06 22:37

    dependabot-preview[bot] on gradle

    (compare)

  • Jul 06 22:37

    iamareebjamal on development

    chore(deps): bump com.diffplug.… (compare)

  • Jul 06 22:37
    iamareebjamal closed #692
  • Jul 06 21:21

    adityastic on gh-pages

    [Auto] Update GH-Pages from dep… (compare)

  • Jul 06 21:13

    dependabot-preview[bot] on gradle

    (compare)

  • Jul 06 21:13
    dependabot-preview[bot] closed #691
  • Jul 06 21:13
    dependabot-preview[bot] commented #691
  • Jul 06 21:13
    dependabot-preview[bot] labeled #692
  • Jul 06 21:13
    dependabot-preview[bot] opened #692
  • Jul 06 21:13

    dependabot-preview[bot] on gradle

    chore(deps): bump com.diffplug.… (compare)

  • Jul 02 21:28

    adityastic on gh-pages

    [Auto] Update GH-Pages from dep… (compare)

  • Jul 02 21:12
    dependabot-preview[bot] labeled #691
  • Jul 02 21:12
    dependabot-preview[bot] opened #691
  • Jul 02 21:12

    dependabot-preview[bot] on gradle

    chore(deps): bump com.diffplug.… (compare)

  • Jun 19 23:09

    adityastic on ios-framework

    [Auto] Update iOS-Framework(202… (compare)

  • Jun 19 23:00

    adityastic on gh-pages

    [Auto] Update GH-Pages from dev… (compare)

  • Jun 19 23:00

    adityastic on apk

    [Auto] Update Test Apk (2020-06… (compare)

Aditya Gupta
@adityastic
@iamareebjamal please review
Sylvia van Os
@TheLastProject
Hey, are there any installation instructions for the iOS app for this? Doesn't seem to be on the app store?
Areeb Jamal
@iamareebjamal
You need a time machine for that. It's in nascent state, not usable
Sylvia van Os
@TheLastProject
Any issue/whatever I could subscribe to to know when it'll be in an usable state? Friend is considering getting a badge but only has an iPhone
Areeb Jamal
@iamareebjamal
Sylvia van Os
@TheLastProject
Thank you!
Siddharth Sen
@siddharth952
@adityastic I'm finally free. Will resume my work on the project now.
Aditya Gupta
@adityastic
@siddharth952 I posted an issue last night. Have a look
Siddharth Sen
@siddharth952
@adityastic I'll review the kotlin code and start converting it to Swift. But before that would you be able to link the documentation we were talking about.
Siddharth Sen
@siddharth952
@adityastic But we are using Kotlin Multiplatform so I do not think I'll have to write it again.
Siddharth Sen
@siddharth952
@adityastic But if you can do send the documentation for the device just in case.
Aditya Gupta
@adityastic
@siddharth952 I'm not sure if there is a documentation for the device anywhere but with the OEM itself
If you have any questions, I'm sure my research would be of help
And yes, we use Multiplatform so let's discuss which feature do you plan to shift. We can then discuss if we need to convert that code to swift or include it inside the shared library
Atm, I don't think you will need anything. You just need to get the basic functions done for sending data
Siddharth Sen
@siddharth952
@adityastic Okay will look into it.
Siddharth Sen
@siddharth952
@adityastic I am reading about multi-platform right now, got the build working for now.
Aditya Gupta
@adityastic
@siddharth952 great, If you need any help. You can find me here :)
Siddharth Sen
@siddharth952
@adityastic I have the Kotlin functions working in iOS now.
Aditya Gupta
@adityastic
@siddharth952 great job, let's use the shared framework and get the ios integration done xD
Siddharth Sen
@siddharth952
object DataToByteArrayConverter {
private const val MAX_MESSAGES = 8
private const val PACKET_START = "77616E670000"
private const val PACKET_BYTE_SIZE = 16

val CHAR_CODES = mapOf(
        '0' to "007CC6CEDEF6E6C6C67C00", ...
How and to what exactly is it converting the chars to?
Aditya Gupta
@adityastic
@siddharth952 these are codes for defined characters. So the process right now is, if you type in hello it will find all the characters in this charcodes and make an array of the respective h, e, l, l, o.
Because every character needs to fit in a 11*8 matrix, hence we have these fixed hex codes of 22 bits precomputed to save time for regular characters.
Sylvia van Os
@TheLastProject
What does the Codeheat label mean?
Aditya Gupta
@adityastic
@siddharth952 oh it's just that the issue is valid for CodeHeat, a competition hosted by Fossasia
Sylvia van Os
@TheLastProject
Oh, neat
Siddharth Sen
@siddharth952
@adityastic Got it
Siddharth Sen
@siddharth952
@adityastic, By the way, what is Travis automatically updating? fossasia/badge-magic-android@11eac0c
Siddharth Sen
@siddharth952
data class Message(val hexStrings: List<String>, val flash: Boolean = false, val marquee: Boolean = false, val speed: Speed = Speed.ONE, val mode: Mode = Mode.LEFT)

So we have this class which is the message used by the method convert of DataToByteArrayConverter which returns a List of Byte Array.

Now, what I wanted to ask is that for Kotlin Multi do I need to implement the creation of these Collections from basic types found in Swift (from ios side) or does Multi-Platform provide it?

eg.

__attribute__((objc_runtime_name("KotlinUInt")))
__attribute__((swift_name("KotlinUInt")))
@interface BMMUInt : BMMNumber
- (instancetype)initWithUnsignedInt:(unsigned int)value;
+ (instancetype)numberWithUnsignedInt:(unsigned int)value;
@end;
Aditya Gupta
@adityastic
@siddharth952 that is the Sharedframework generated for every build which gets published to the ios-framework branch.
@siddharth952 it should be available in Swift as I already added that class to the sharedmodule.
Just type in the Message and swift will autocomplete it for you
Siddharth Sen
@siddharth952
@adityastic Okay. Thank you
Sylvia van Os
@TheLastProject
@adityastic Hey, not to be rude, but you said "tomorrow morning" 10 days ago on fossasia/badge-magic-android#644 so I wonder if you forgot or if there's something else ^^"
Aditya Gupta
@adityastic
@TheLastProject so sorry sylvia, Slipped out of my mind. Will see it today. Also it's not mergeable can you rebase to the latest changes, thanks xD
Sylvia van Os
@TheLastProject
Done
Siddharth Sen
@siddharth952
Undefined symbol: _OBJC_CLASS_$_BMMSpeed
Undefined symbol: _OBJC_CLASS_$_BMMDataToByteArrayConverter
Undefined symbol: _OBJC_CLASS_$_BMMMode
Undefined symbol: _OBJC_CLASS_$_BMMMessage
Siddharth Sen
@siddharth952
Right now I'm Debugging the android project and trying to understand how it is converting the user data for the associated functions.
Aditya Gupta
@adityastic
@siddharth952 oh yes, no worries. Go ahead. If you need anything, let me know
Aditya Gupta
@adityastic
@siddharth952 any updates on the progress?
Siddharth Sen
@siddharth952
@adityastic Yes, I am able to follow the flow for the badge data. But I still need to check a portion of it.
Siddharth Sen
@siddharth952
@adityastic Sorry for the delay.
Aditya Gupta
@adityastic
@siddharth952 Oh ok. Let me know if you need anything. We need to move a bit faster as we plan on bringing both projects to the same level.
Sylvia van Os
@TheLastProject
@adityastic https://github.com/fossasia/badge-magic-android/pull/644#issuecomment-595426395 Just pinging to make sure you didn't forget again :)
No rush if you've been busy though :)
Aditya Gupta
@adityastic
I forgot xD. @TheLastProject will do it in some time, thanks for reminding
Mario Behling
@mariobehling
@/all Dear friends, despite challenges we are happy to work with the community to share live streams from the FOSSASIA Summit "social distancing event" and include remote speakers and participation. An overview of streams is here: https://www.youtube.com/fossasiaorg
The complete schedule of the event is here: https://summit.fossasia.org/event/schedule.html
Sylvia van Os
@TheLastProject
@adityastic Should I... ping you again about #644 or is it better if I just leave you be?
Aditya Gupta
@adityastic
@TheLastProject thanks for the reminder. I'll get back to it in some time 😊