Skip to content

Commit

Permalink
Merge pull request #190 from tarkalabs/raja/version_1.10
Browse files Browse the repository at this point in the history
version update: Version bumped to 1.1.0
  • Loading branch information
rajajawahar authored Feb 19, 2024
2 parents 1c04b46 + a83079d commit 0c17320
Show file tree
Hide file tree
Showing 74 changed files with 207 additions and 974 deletions.
68 changes: 1 addition & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,75 +68,9 @@ TarkaUI Kit is a versatile Design Library built on top of Jetpack Compose, based
To integrate TarkaUi Kit and Tarka Icons into your Android project, add the following dependencies in your app-level `build.gradle` file:

```kotlin
implementation("com.tarkalabs:tarkaui:1.0.0")
implementation("com.tarkalabs:tarkaicons:1.0.0")
implementation("com.tarkalabs:tarkaui:1.1.0")
```

You'll need also to mention the repository that you will get it from, we are using github package, make sure you include this code where you are mentionning your repositories

```kotlin
repositories {
maven(url = "https://maven.pkg.github.com/tarkalabs/tarka-ui-kit-android")
}
```

# How to add this library in Project.
This library is developed as maven artifact. So adding it in your project is similar to adding any other public library.

Before we see how to include it in project. We need to generate Github Access token.
This is required as this library is published as private package. And github needs to authenticate you before it can grant you access to private package.

#### Generate New Token
1. Go to https://github.com/settings/tokens/new
2. Please Give appropriate name to this token in **Note** box.
![image](https://github.com/tarkalabs/tarka-ui-kit-android/assets/31278093/98daf6e1-ce68-4c3c-a7c7-1f47a1d3ed61)

3. Give `read:packages` permission.
![image](https://github.com/tarkalabs/tarka-ui-kit-android/assets/31278093/b068a69f-dcea-4f35-b35b-8dbabf4b3b42)

4. Click on **Generate token** button at bottom. That should generate access token for you. **Note**. Please copy this token before closing or navigating.
![image](https://github.com/tarkalabs/tarka-ui-kit-android/assets/31278093/e8611df9-7fc0-486e-8e73-1dfcaa09aa41)


#### Saving Github access token and username as Env variable.
If you are using Bash. then you will have to update `.bash_profile` file.
And if you are using zsh. then you will have to update `.zshrc` file.
Both the files can be found in home directory of your mac. (Command to go to home dir. `cd ~`)

once you open that file. you will need to export your github username and github token in file mentioned above and save.

Example:
```
export GITHUB_USER=kalpeshp0310
export GITHUB_TOKEN=d5ce3750293e15baf41a177e91b6d267005007a9
```
Note: You will need to restart your android studio after this for Gradle to read this env variables.

#### Update to level of your `build.gradle` file.

Add Package specific github maven repository url. in your Root level build.gradle under repository section.
```
maven {
url = "https://maven.pkg.github.com/tarkalabs/eam360-common-library-android"
credentials {
username = System.getenv('GITHUB_USER')
password = System.getenv('GITHUB_TOKEN')
}
}
```

Example:
![image](https://github.com/tarkalabs/tarka-ui-kit-android/assets/31278093/a0fc5eec-58e8-41fd-8414-b2f1130c3dc5)


#### Updating module specific build.gradle file.
Add dependency in your module level build.gradle file. i.e in `app/build.gradle` file.
```
implementation 'com.tarkalabs:common-ui:1.0.0'
```

That's it. you are done. Do a gradle sync and you will be able to use the library in your project.

## License

TarkaUi Kit is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Expand Down
1 change: 1 addition & 0 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ android {
dependencies {
val composeUiVersion = "1.4.0"
implementation(project(":tarka-ui"))
implementation(project(":tarka-ui-icons"))
implementation("androidx.core:core-ktx:1.10.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
implementation("androidx.activity:activity-compose:1.7.1")
Expand Down
8 changes: 4 additions & 4 deletions tarka-ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ publishing {
run {
groupId = "com.tarkalabs"
artifactId = getLibraryArtifactId()
version = "1.0.8"
artifact("$buildDir/outputs/aar/${getLibraryArtifactId()}-release.aar")
version = "1.1.0"
artifact("$buildDir/outputs/aar/tarka-ui-release.aar")
}
}
}
Expand All @@ -81,6 +81,7 @@ publishing {
password = System.getenv("GITHUB_TOKEN")
}
}
mavenCentral()
}
}

Expand All @@ -91,8 +92,7 @@ dependencies {
implementation("androidx.compose.ui:ui-tooling-preview:$composeUiVersion")
implementation("androidx.compose.material3:material3:1.1.0-rc01")
implementation("androidx.compose.foundation:foundation:$composeUiVersion")
api(project(":tarka-ui-icons"))

api("com.tarkalabs:tarkaui-icons:1.0.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
Expand Down
2 changes: 1 addition & 1 deletion tarka-ui/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RELEASE_SIGNING_ENABLED=true

GROUP=com.tarkalabs
POM_ARTIFACT_ID=tarkaui
VERSION_NAME=1.1.0-SNAPSHOT
VERSION_NAME=1.1.0

POM_NAME=Tarka UIKit
POM_DESCRIPTION=An Tarka UIKit Component Library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import com.tarkalabs.tarkaui.icons.Copy24
import com.tarkalabs.tarkaui.icons.Delete24
import com.tarkalabs.tarkaui.icons.Search24
import com.tarkalabs.tarkaui.icons.TarkaIcons
import com.tarkalabs.uicomponents.components.base.TUIIconButtonTags
import com.tarkalabs.uicomponents.components.TUIAppTopBar
import com.tarkalabs.uicomponents.components.TUIAppTopBarTags
import com.tarkalabs.tarkaui.components.base.TUIIconButtonTags
import com.tarkalabs.tarkaui.components.TUIAppTopBar
import com.tarkalabs.tarkaui.components.TUIAppTopBarTags
import org.junit.Rule
import org.junit.Test
import org.mockito.kotlin.mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import com.tarkalabs.tarkaui.icons.Delete24
import com.tarkalabs.tarkaui.icons.TarkaIcons
import com.tarkalabs.uicomponents.components.TUIAttachmentUpload
import com.tarkalabs.uicomponents.components.TUIAttachmentUpload.AttachmentState.UpLoadSuccessful
import com.tarkalabs.uicomponents.components.TUIAttachmentUpload.AttachmentState.UpLoading
import com.tarkalabs.uicomponents.components.TUIAttachmentUpload.TUIAttachmentUploadTags
import com.tarkalabs.uicomponents.components.TUIMediaThumbnailType.Document
import com.tarkalabs.tarkaui.components.TUIAttachmentUpload
import com.tarkalabs.tarkaui.components.TUIAttachmentUpload.AttachmentState.UpLoadSuccessful
import com.tarkalabs.tarkaui.components.TUIAttachmentUpload.AttachmentState.UpLoading
import com.tarkalabs.tarkaui.components.TUIAttachmentUpload.TUIAttachmentUploadTags
import com.tarkalabs.tarkaui.components.TUIMediaThumbnailType.Document
import org.junit.Rule
import org.junit.Test
import org.mockito.kotlin.mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package com.tarkalabs.uicomponents
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import com.tarkalabs.uicomponents.components.base.BadgeSize.L
import com.tarkalabs.uicomponents.components.base.TUIBadge
import com.tarkalabs.uicomponents.components.base.TUIBadgeTags
import com.tarkalabs.tarkaui.components.base.BadgeSize.L
import com.tarkalabs.tarkaui.components.base.TUIBadge
import com.tarkalabs.tarkaui.components.base.TUIBadgeTags
import org.junit.Rule
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.tarkalabs.uicomponents

import com.tarkalabs.uicomponents.components.base.ButtonStyle.SECONDARY
import com.tarkalabs.uicomponents.components.base.TUIButtonTags
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import com.tarkalabs.uicomponents.components.base.TUIButton
import com.tarkalabs.tarkaui.components.base.ButtonStyle.SECONDARY
import com.tarkalabs.tarkaui.components.base.TUIButton
import com.tarkalabs.tarkaui.components.base.TUIButtonTags
import org.junit.Rule
import org.junit.Test
import org.mockito.kotlin.mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import com.tarkalabs.uicomponents.components.checkbox.TUICheckBoxRow
import com.tarkalabs.uicomponents.components.checkbox.TUICheckBoxRowTags
import com.tarkalabs.uicomponents.components.checkbox.TUICheckBoxTags
import com.tarkalabs.uicomponents.components.TUITextRowTags
import com.tarkalabs.uicomponents.components.base.ToggleRowStyle.Title
import com.tarkalabs.tarkaui.components.TUITextRowTags
import com.tarkalabs.tarkaui.components.base.ToggleRowStyle.Title
import com.tarkalabs.tarkaui.components.checkbox.TUICheckBoxRow
import com.tarkalabs.tarkaui.components.checkbox.TUICheckBoxRowTags
import com.tarkalabs.tarkaui.components.checkbox.TUICheckBoxTags
import org.junit.Rule
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import androidx.test.platform.app.InstrumentationRegistry
import com.tarkalabs.tarkaui.icons.CalendarLtr24
import com.tarkalabs.tarkaui.icons.Dismiss20
import com.tarkalabs.tarkaui.icons.TarkaIcons
import com.tarkalabs.uicomponents.components.ChipLeadingContent
import com.tarkalabs.uicomponents.components.ChipType
import com.tarkalabs.uicomponents.components.TUIChip
import com.tarkalabs.uicomponents.components.TUIChipTags
import com.tarkalabs.uicomponents.theme.TUITheme
import com.tarkalabs.tarkaui.components.ChipLeadingContent
import com.tarkalabs.tarkaui.components.ChipType
import com.tarkalabs.tarkaui.components.TUIChip
import com.tarkalabs.tarkaui.components.TUIChipTags
import com.tarkalabs.tarkaui.theme.TUITheme
import org.junit.Rule
import org.junit.Test
import org.mockito.kotlin.mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package com.tarkalabs.uicomponents
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import com.tarkalabs.uicomponents.components.Orientation.HORIZONTAL
import com.tarkalabs.uicomponents.components.TUIDivider
import com.tarkalabs.uicomponents.components.TUIDividerTags
import com.tarkalabs.tarkaui.components.Orientation.HORIZONTAL
import com.tarkalabs.tarkaui.components.TUIDivider
import com.tarkalabs.tarkaui.components.TUIDividerTags
import org.junit.Rule
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import androidx.compose.ui.Modifier
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsNotFocused
import androidx.compose.ui.test.assertIsToggleable
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import com.tarkalabs.uicomponents.components.card.TUIDraggableCard
import com.tarkalabs.uicomponents.components.TUIToggleSwitchTags
import com.tarkalabs.tarkaui.components.card.TUIDraggableCard
import org.junit.Rule
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import androidx.compose.ui.test.performImeAction
import androidx.compose.ui.test.performTextInput
import com.tarkalabs.tarkaui.icons.AddCircle24
import com.tarkalabs.tarkaui.icons.TarkaIcons.Regular
import com.tarkalabs.uicomponents.components.email.TUIEmailField
import com.tarkalabs.uicomponents.components.email.TUIEmailFieldTags
import com.tarkalabs.uicomponents.components.base.TUIIconButtonTags
import com.tarkalabs.tarkaui.components.email.TUIEmailField
import com.tarkalabs.tarkaui.components.email.TUIEmailFieldTags
import com.tarkalabs.tarkaui.components.base.TUIIconButtonTags
import org.junit.Rule
import org.junit.Test
import org.mockito.kotlin.mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.performClick
import com.tarkalabs.tarkaui.icons.Delete24
import com.tarkalabs.tarkaui.icons.TarkaIcons
import com.tarkalabs.uicomponents.components.base.TUIFloatingActionButton
import com.tarkalabs.uicomponents.components.base.TUIFloatingActionButtonTags
import com.tarkalabs.tarkaui.components.base.TUIFloatingActionButton
import com.tarkalabs.tarkaui.components.base.TUIFloatingActionButtonTags
import org.junit.Rule
import org.junit.Test
import org.mockito.kotlin.mock
Expand Down

This file was deleted.

Loading

0 comments on commit 0c17320

Please sign in to comment.