profile
viewpoint
Eugen Martynov emartynov Bijdorp Studio Netherlands I still grow as a software engineer all around (with the hope it doesn't stop). Add/test/evaluate/evolve my tooling, technics, processes, skills and beliefs.

Glucosio/glucosio-android 332

Glucosio Android App

Glucosio/glucosio-ios 49

Glucosio iOS App

Android-Academy-Global/fundamentals-2020-assignments 37

This repository will contain assignments for workshops of Fundamentals 2020 Course

Glucosio/glucosio-api 17

Glucosio's API for Diabetes Research (This project is not under active development and we are looking for a contribute to help build our API)

Glucosio/glucosio.github.io 6

Glucosio Daily APK's Github Page

emartynov/nokia-midlet-signer 3

MIDlet Signer for Nokia R&D certificate

emartynov/droidparts 2

DI, ORM, JSON & more.

emartynov/lokalise-legacy-gradle 1

Gradle file to pull changes from Lokalise

emartynov/NYTimesBrowser 1

An company assignment project

emartynov/presentations 1

Given presentations and resources

issue commentKotlin/kotlinx.serialization

Allow custom policy for adding the polymorphic discriminator

My use case.

I have a white label android application. It has a user profile that has different fields based on the specific label. I have common code that is calling the backend with endpoint and I wrote it as a function with parameter type BaseProfile. And in a specific label, the specific class LabelAProfile is passed to this function.

I annotated BaseProfile and LabelAProfile as @Serializable and I also wrote Json configuration like

                polymorphic(BaseProfile::class) {
                    subclass(LabelAProfile::class, LabelAProfile.serializer())
                }

LabelA back end doesn't need a discriminator and throws an error about the unknown type when it is included. So I need a way to hide it.

However, in the LabelAProfile I have also an insurance type that is

@Serializable
@JsonClassDiscriminator("insurance_type")
sealed class InsuranceInfo {
  @Serializable
  @SerialName("public")
  data class PublicInsurance(
     ...
  ) : InsuranceInfo()

  @Serializable
  @SerialName("self-paid")
  object SelfPaid: InsuranceInfo()
}

Here I actually need to pass a discriminator to the back end.

joffrey-bion

comment created time in 3 days

issue commentKotlin/kotlinx.serialization

Allow custom policy for adding the polymorphic discriminator

What if I have inconsistent BE and I need exactly to specify to have or not discriminator for complex nested classes?

joffrey-bion

comment created time in 3 days

issue closedusefulness/easylauncher-gradle-plugin

Firebase distribution upload fails

Hi people, just a question, maybe you have an idea what is happening.

Recently we started getting errors while uploading apk to Firebase distribution:

...
Failed to run aapt dump badging: AndroidManifest.xml:69: error: ERROR getting 'android:icon' attribute: attribute is not a string value 

I checked our manifest files - we don't have any icon specification and I assume we rely on the plugin to add it during the build.

closed time in 4 days

emartynov

issue commentusefulness/easylauncher-gradle-plugin

Firebase distribution upload fails

Thank you so much for checking and messaging!!

I found the situation similar to the ticket I posted - this time it is a biometrics library from Google.

I'm closing since irrelevant.

emartynov

comment created time in 4 days

issue commentusefulness/easylauncher-gradle-plugin

Firebase distribution upload fails

Aha, exploring more I found https://github.com/pandulapeter/beagle/issues/89. So maybe it is not related to the plugin but an issue with some dependency.

emartynov

comment created time in 4 days

issue openedusefulness/easylauncher-gradle-plugin

Firebase distribution upload fails

Hi people, just a question, maybe you have an idea what is happening.

Recently we started getting errors while uploading apk to Firebase distribution:

...
Failed to run aapt dump badging: AndroidManifest.xml:69: error: ERROR getting 'android:icon' attribute: attribute is not a string value 

I checked our manifest files - we don't have any icon specification and I assume we rely on the plugin to add it during the build.

created time in 4 days

push eventemartynov/TestFixtures-test

Eugen Martynov

commit sha 1a0cfe7538102cf2bf5c5b6a313db0ecc87a587a

Update to the newest AGP 7.2.0-alpha07

view details

push time in 6 days

startedDanielMartinus/Konfetti

started time in 6 days

pull request commentrobolectric/robolectric

IDEA: Migrate to AndroidX

Oke, I'm closing it then!

emartynov

comment created time in 9 days

PR closed robolectric/robolectric

Reviewers
IDEA: Migrate to AndroidX

Overview

Migrate to AndroidX

Proposed Changes

Migrate to AndroidX Have AndroidX shadows as a separate module

Fix

Return back integration tests for AndroidX

+2522 -38

3 comments

49 changed files

emartynov

pr closed time in 9 days

PR closed SeongUgJung/gradle-play-publisher

Get it working again

Changes:

  1. Update dependencies
  2. Add mapping file upload
+84 -146

0 comment

8 changed files

emartynov

pr closed time in 9 days

pull request commentrobolectric/robolectric

IDEA: Migrate to AndroidX

I wonder if it is still needed?

emartynov

comment created time in 9 days

push eventemartynov/TestFixtures-test

Eugen Martynov

commit sha 27b9799726893cc907d57ab663ec025a8ad33534

Update AGP to latest

view details

Eugen Martynov

commit sha 4b86daf18b400136f6eb4f7286be92f881b529d6

Rename classes to have more prominent names

view details

Eugen Martynov

commit sha 3b10f81796b12159db1a7e8478a99f802d8ea9d6

Add test for the kotlin test fixtures

view details

push time in 11 days

startedlibon/CrashObfuscationTest

started time in 11 days

pull request commentGlucosio/glucosio-android

data loss fix for adda1activity

BTW, for this case, it is better not to use shared preferences but check the onSaveInstanceState method.

Naitim

comment created time in 19 days

pull request commentGlucosio/glucosio-android

data loss fix for adda1activity

Hi Tim,

Super thank you for the contribution! Unfortunately, The project was abandoned for quite some time already. I would recommend to fork the project or joining another active fork to avoid this PR staying open forever.

Eugen (The former contributor to the app)

Naitim

comment created time in 19 days

issue commentsdkman/sdkman-db-migrations

Maintain older versions

I found a manual way to install Zulu MTS version. However, it was not obvious. It would be great if we can install any version available for download JDK.

podollb

comment created time in 25 days

startedcopper-leaf/thistle

started time in a month

startedkirill-grouchnikov/aurora

started time in a month

startedarkivanov/Decompose

started time in a month

startedarkivanov/MVIKotlin

started time in a month

push eventemartynov/advent-of-code-kotlin-2021

Eugen Martynov

commit sha df0c73121eba4a9e2260fa00ddf6383abb95fa98

Start the day 6

view details

Eugen Martynov

commit sha 83d32a6ba8531f61b2d545d1540b3455022ba5d6

Make solution for day 6

view details

push time in a month

push eventemartynov/advent-of-code-kotlin-2021

Eugen Martynov

commit sha 17909bee6d40f53f8b4e71fad01b7264c24f53b8

Prepare day 5 and small clean up

view details

Eugen Martynov

commit sha 76e065001df87453b18761c2266749845e947a8b

Make day 5 solution

view details

push time in a month

push eventemartynov/advent-of-code-kotlin-2021

Eugen Martynov

commit sha 13863ad2a60d2131afeb636dfd982342aedcf07f

Improve solution of day 01

view details

Eugen Martynov

commit sha e550a4e42b6315ce1f443c821803680fcf95e093

Prepare day3 solution

view details

Eugen Martynov

commit sha 80650eae64f8c17f121a39cbcad01083eee12970

Add day 3 solution

view details

Eugen Martynov

commit sha ecf3611f628c7b898dd02693ffecc3c65ee9b5ab

Prepare day 4

view details

Eugen Martynov

commit sha 2d4166bc03219f3012f00e59da73c459ed02b298

Make Day 4 solution

view details

push time in a month

push eventemartynov/advent-of-code-kotlin-2021

Eugen Martynov

commit sha a6e8440fd19acf17c02828316f94017cb947a995

Improve day one readability

view details

Eugen Martynov

commit sha 6357f717b52a930fff6553e0b54eb6ac374ae798

Add meaningful names to the functions

view details

Eugen Martynov

commit sha f6f33cec0f340920eff673af43ee0976c998404d

Improve day2 solution readability

view details

Eugen Martynov

commit sha dfb1d03eba241a536782cb516645ed0e58a95e2f

Remove deprecation warning

view details

push time in a month

push eventemartynov/advent-of-code-kotlin-2021

Eugen Martynov

commit sha e9dc9072c849e8080a7c16679064db5d192f2128

Organise days

view details

Eugen Martynov

commit sha 593a7e065fb75ced82775e67aa03bdf3c0907f2c

Add Day2 solution

view details

push time in a month

push eventemartynov/advent-of-code-kotlin-2021

Eugen Martynov

commit sha 930347198906015651bea1dbbdd466cb7b24fa8c

Use collections API

view details

push time in a month

push eventemartynov/advent-of-code-kotlin-2021

Eugen Martynov

commit sha 77d825aa27a7d0b8938af2f7e7cf05fc7b1ed2ab

Brut force solution

view details

push time in a month

create barnchemartynov/advent-of-code-kotlin-2021

branch : main

created branch time in 2 months

created repositoryemartynov/advent-of-code-kotlin-2021

created time in 2 months

more