Skip to content

Commit

Permalink
Merge pull request #305 from okta/release_2.0.1
Browse files Browse the repository at this point in the history
Release 2.0.1
  • Loading branch information
rajdeepnanua-okta authored Jun 12, 2024
2 parents 3113715 + 60b8ef0 commit 7b3d089
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [2.0.1] - 2024-06-12

[Commits](https://github.com/okta/okta-mobile-kotlin/compare/2.0.0...2.0.1)

This version exposes ApplicationContextHolder for use by [okta-idx-android](https://github.com/okta/okta-idx-android)

## [2.0.0] - 2024-06-03

[Commits](https://github.com/okta/okta-mobile-kotlin/compare/1.2.1...2.0.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Add the `Okta Mobile Kotlin` dependencies to your `build.gradle` file:

```gradle
// Ensure all dependencies are compatible using the Bill of Materials (BOM).
implementation(platform('com.okta.kotlin:bom:1.2.1'))
implementation(platform('com.okta.kotlin:bom:2.0.1'))
// Add the dependencies to your project.
implementation('com.okta.kotlin:auth-foundation')
Expand Down
6 changes: 6 additions & 0 deletions auth-foundation/api/auth-foundation.api
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ public final class com/okta/authfoundation/client/AccessTokenValidator$Error : j
public fun <init> (Ljava/lang/String;)V
}

public final class com/okta/authfoundation/client/ApplicationContextHolder {
public static final field INSTANCE Lcom/okta/authfoundation/client/ApplicationContextHolder;
public final fun getAppContext ()Landroid/content/Context;
public final fun setApplicationContext (Landroid/content/Context;)V
}

public abstract interface class com/okta/authfoundation/client/Cache {
public abstract fun get (Ljava/lang/String;)Ljava/lang/String;
public abstract fun set (Ljava/lang/String;Ljava/lang/String;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
package com.okta.authfoundation.client

import android.content.Context
import com.okta.authfoundation.InternalAuthFoundationApi

internal object ApplicationContextHolder {
@InternalAuthFoundationApi
object ApplicationContextHolder {
lateinit var appContext: Context
private set

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ POM_LICENSE_DIST=repo
POM_DEVELOPER_ID=okta
POM_DEVELOPER_NAME=Okta

VERSION_NAME=2.0.0
VERSION_NAME=2.0.1

android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
Expand Down

0 comments on commit 7b3d089

Please sign in to comment.