Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/src/app/bi-sdk-react-native
  • Loading branch information
turnipdabeets authored and bi-ci-bot committed Oct 18, 2022
1 parent c74dcea commit 0a5ab61
Show file tree
Hide file tree
Showing 123 changed files with 33,041 additions and 4,024 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Build & Publish TypeDoc

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up TypeScript # Fixes typedoc error
run: yarn add -D typescript

- name: Set up TypeDoc
run: yarn add -D typedoc

- name: Install yarn dependencies # Fixes typedoc error
run: yarn install

- name: Install yarn dependencies (example) # Fixes typedoc error
run: cd example && yarn install

- name: Build TypeDoc
run: yarn typedoc --entryPointStrategy expand ./src

- name: Publish TypeDoc
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# OSX
#
.DS_Store

# XDE
Expand All @@ -10,7 +9,6 @@
jsconfig.json

# Xcode
#
build/
*.pbxuser
!default.pbxuser
Expand All @@ -30,7 +28,6 @@ DerivedData
project.xcworkspace

# Android/IJ
#
.classpath
.cxx
.gradle
Expand All @@ -41,11 +38,9 @@ local.properties
android.iml

# Cocoapods
#
example/ios/Pods

# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
Expand All @@ -62,3 +57,6 @@ android/keystores/debug.keystore

# generated by bob
lib/

# TypeDoc
docs/
4 changes: 2 additions & 2 deletions BeyondIdentityEmbeddedReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Pod::Spec.new do |s|
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => "12.0" }
s.platforms = { :ios => "13.0" }
s.source = { :git => "https://github.com/gobeyondidentity/bi-sdk-react-native.git", :tag => s.version.to_s }

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "React-Core"
s.dependency "BeyondIdentityEmbedded", '0.7.0'
s.dependency "BeyondIdentityEmbedded", '1.0.4'

end
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2022-09-21
### Changed
- Updated the React Native SDK to support our newly released Secure Customer product. See the [documentation](https://developer.beyondidentity.com/docs/v1/sdks/react-native-sdk/overview) for more details.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<img src="https://user-images.githubusercontent.com/238738/173244201-e403272c-fa59-4122-91a2-eba4614b8081.svg" width="300px">
<p align="center">
<br/>
<a href="https://developers.beyondidentity.com" target="_blank"><img src="https://user-images.githubusercontent.com/238738/178780350-489309c5-8fae-4121-a20b-562e8025c0ee.png" width="150px" ></a>
<h3 align="center">Beyond Identity</h3>
<p align="center">Universal Passkeys for Developers</p>
<p align="center">
All devices. Any protocol. Zero shared secrets.
</p>
</p>

# Beyond Identity React Native SDK

Expand All @@ -9,23 +17,23 @@ Goodbye, passwords! The Beyond Identity SDK for React Native is a wrapper around
### Install the library:

```sh
yarn add @beyondidentity/embedded-react-native
yarn add @beyondidentity/bi-sdk-react-native
```

or

```
npm i --save @beyondidentity/embedded-react-native
npm i --save @beyondidentity/bi-sdk-react-native
```

> Note that this library is not compatible with Expo projects. This is because Expo's “managed” workflow does not allow usage of React Native libraries that introduce their own native code beyond the React Native APIs and components that are available in the Expo client app. If you have an Expo app and wish to use this project, you must `eject`.
### Update Native:

Make sure your `ios/Podfile` supports iOS 12 or later
Make sure your `ios/Podfile` supports iOS 13 or later

```sh
platform :ios, '12.0'
platform :ios, '13.0'
```

Go to your ios folder and run:
Expand All @@ -34,12 +42,12 @@ Go to your ios folder and run:
pod install
```

Make sure your `android/build.gradle` supports minSdkVersion 28 or later
Make sure your `android/build.gradle` supports minSdkVersion 26 or later

```
buildscript {
ext {
minSdkVersion = 28
minSdkVersion = 26
}
}
```
Expand All @@ -59,7 +67,7 @@ allprojects {
## Usage

```js
import { Embedded } from '@beyondidentity/embedded-react-native';
import { Embedded } from '@beyondidentity/bi-sdk-react-native';
```

A set of functions are provided to you in this SDK. Check out the [documentation](https://developer.beyondidentity.com) for more information.
Expand Down
8 changes: 3 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ buildscript {
google()
mavenCentral()
mavenLocal()
jcenter()

maven {
url "https://packages.beyondidentity.com/public/bi-sdk-android/maven/"
}
}

dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath 'com.android.tools.build:gradle:7.1.1'
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
Expand All @@ -36,7 +35,7 @@ def getExtOrIntegerDefault(name) {
android {
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
defaultConfig {
minSdkVersion 28
minSdkVersion 26
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
versionCode 1
versionName "1.0"
Expand All @@ -60,7 +59,6 @@ android {
repositories {
mavenCentral()
mavenLocal()
jcenter()
google()

maven {
Expand Down Expand Up @@ -141,7 +139,7 @@ dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

implementation "com.beyondidentity.android.sdk:embedded:0.7.0"
implementation "com.beyondidentity.android.sdk:embedded:1.0.2"

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2"
}
6 changes: 3 additions & 3 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BiSdkReactNative_kotlinVersion=1.5.31
BiSdkReactNative_compileSdkVersion=30
BiSdkReactNative_targetSdkVersion=30
BiSdkReactNative_kotlinVersion=1.6.10
BiSdkReactNative_compileSdkVersion=31
BiSdkReactNative_targetSdkVersion=31
Loading

0 comments on commit 0a5ab61

Please sign in to comment.