Skip to content
المشاريع

حول

A library for working with URIs and URLs in Kotlin Multiplatform

أدوات التطوير

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
؜-١
خلال 7 أيام
؜-١
خلال 15 يومًا
؜-١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Uri KMP

A library for working with URIs and URLs in Kotlin Multiplatform

Download

Most of this work is derived from AOSP's Uri:

Uri.java

UriCodec.java

UriTest.java

UriCodecTest.java

Gradle

Groovy

repositories {
  mavenCentral()
}
implementation 'com.eygraber:uri-kmp:0.0.21'

Kotlin

repositories {
  mavenCentral()
}
implementation("com.eygraber:uri-kmp:0.0.21")

Snapshots can be found here.

Usage

Uri

Uri.parse("content://media/external/audio/media/1")

// OR

"content://media/external/audio/media/1".toKmpUri()

Url

Url.parse("https://example.com")

// OR

"https://example.com".toKmpUrl()

Encoding

Uri.encode("content://media/external/audio/media/1 2")
Url.encode("https://example.com?q=1 2")

// OR

"content://media/external/audio/media/1 2".encodeUri()
"https://example.com?q=1 2".encodeUri()

Decoding

Uri.decode("content://media/external/audio/media/1%202")
Url.decode("https://example.com?q=1%202")

// OR

"content://media/external/audio/media/1%202".decodeUri()
"https://example.com?q=1%202".decodeUri()

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…