Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/sour-birds-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@react-native-async-storage/async-storage": minor
---

Shared Storage artifact published to maven central

This eliminates the extra step in installation for android.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
- name: Deploy Docs with mike
run: |
mike deploy -u -r docs ${{ steps.version.outputs.versionDocs }} latest --push
mike set-default -r docs ${{ steps.version.outputs.versionDocs }} --push
mike set-default -r docs latest --push
7 changes: 5 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ To build the sdk, run:
yarn build:android
```

The artifact is then moved to `packages/async-storage/android/local_repo` for distribution.
This runs `publishToMavenLocal` and makes the artifact available at `~/.m2`. The example app resolves it from there via
`mavenLocal()`.

### Apple (iOS/macOS)

Expand All @@ -30,7 +31,8 @@ The artifact is then moved to `packages/async-storage/apple/Frameworks` for dist

## Documentation

Documentation should follow major.minor version of Async Storage. Update the documentation version in root's package.json:
Documentation should follow major.minor version of Async Storage. Update the documentation version in root's
package.json:

```json
{
Expand Down Expand Up @@ -63,4 +65,5 @@ Run `mike deploy` to deploy docs and mark them as latest:

```shell
mike deploy -u -r docs --push DOCS_VERSION_FROM_PCK_JSON latest
mike set-default latest -r docs --push
```
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ npm install @react-native-async-storage/async-storage
yarn add @react-native-async-storage/async-storage
```

### Android

Inside your `android/build.gradle(.kts)` file, add link to local maven repo:

```groovy
allprojects {
repositories {
// ... others like google(), mavenCentral()

maven {
url = uri(project(":react-native-async-storage_async-storage").file("local_repo"))
// or uri("path/to/node_modules/@react-native-async-storage/async-storage/android/local_repo")
}
}
}
```

### iOS/macOS

Install cocoapods dependencies:
Expand Down
17 changes: 0 additions & 17 deletions docs/migration-to-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@ Other components:
| ios min target | 13 |
| macOS min target | 12 |

### Installation changes

Android requires a local Maven repository to be added to your `android/build.gradle(.kts)`:

```groovy
allprojects {
repositories {
// ... others like google(), mavenCentral()

maven {
url = uri(project(":react-native-async-storage_async-storage").file("local_repo"))
// or uri("path/to/node_modules/@react-native-async-storage/async-storage/android/local_repo")
}
}
}
```

### `AsyncStorage` is now instance-based

In v3, AsyncStorage is no longer a singleton.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "@react-native-async-storage/root",
"version": "0.0.1-dev",
"versionDocs": "3.0",
"versionDocs": "3.1",
"scripts": {
"build": "turbo run build",
"build:android": "./scripts/build-native-lib.sh android",
Expand Down
2 changes: 1 addition & 1 deletion packages/async-storage/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ AsyncStorage_roomVersion=2.7.2
AsyncStorage_minSdkVersion=24
AsyncStorage_targetSdkVersion=36
AsyncStorage_compileSdkVersion=36
AsyncStorage_sharedStorageVersion=0.0.1
AsyncStorage_sharedStorageVersion=1.0.0
6 changes: 6 additions & 0 deletions packages/expo-with-async-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
title: Expo config plugin
---

!!! warning "No longer required for version 3.1.0+"

This plugin originally was intended to include locally build artifact for Android.
With version 3.1.0 of Async Storage, this artifact is provided via Maven Central (no extra steps needed).


# Expo config plugin for Async Storage

An [Expo config plugin](https://docs.expo.dev/config-plugins/introduction/) that automatically configures
Expand Down
Loading