Skip to content

Commit

Permalink
chore: bridgefy Android SDK 1.1.1 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-bridgefy authored Oct 6, 2023
1 parent 1394ff9 commit f2dadf2
Show file tree
Hide file tree
Showing 10 changed files with 217 additions and 755 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ below:

## Installation

Since this SDK is still in beta, you'll need to add a reference to this repository in your
`package.json` file:

```
npm i git+https://github.com/bridgefy/bridgefy-react-native.git
```bash
$ npm i bridgefy-react-native
# --- or ---
$ yarn install bridgefy-react-native
```

## Usage
Expand All @@ -60,7 +59,10 @@ const bridgefy = new Bridgefy();
export default function App() {
React.useEffect(() => {
bridgefy
.initialize('api-key', BridgefyPropagationProfile.standard)
.initialize(
'your-api-key-here', // UUID - The license key registered on the Bridgefy developer site.
false, // The logging priority for SDK operations.
)
.catch((error) => {
console.error(error);
});
Expand All @@ -70,7 +72,10 @@ export default function App() {
Once initialized, you can call `start` to begin using the SDK.
```typescript
bridgefy.start();
bridgefy.start(
userId?, // UUID? (optional) - The ID used to identify the user in the Bridgefy network.If null is passed, the SDK will assign an autogenerated ID.
propagationProfile, // PropagationProfile (optional, default: PropagationProfile.Standard) - A profile that defines a series of properties and rules for the propagation of messages.
);
```
### Sending data
Expand Down
3 changes: 1 addition & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ repositories {
def kotlin_version = getExtOrDefault("kotlinVersion")

dependencies {
implementation (group: "me.bridgefy", name: "android-sdk", version: "1.1.0", ext: "aar") {
implementation (group: "me.bridgefy", name: "android-sdk", version: "1.1.1", ext: "aar") {
transitive = true
}
// For < 0.71, this will be from the local maven repo
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "androidx.preference:preference-ktx:1.2.0"
}

if (isNewArchitectureEnabled()) {
Expand Down
2 changes: 0 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ dependencies {
} else {
implementation jscFlavor
}

implementation 'androidx.work:work-runtime-ktx:2.8.1'
// implementation project(':react-native-permissions')
}

Expand Down
91 changes: 91 additions & 0 deletions example/ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
Podfile.lock
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
*.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

This file was deleted.

This file was deleted.

Loading

0 comments on commit f2dadf2

Please sign in to comment.