Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
v1.0.0-beta.4 (#4)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Bump version
  • Loading branch information
nporter-adbe authored Feb 26, 2020
1 parent 1fb05fd commit da6c5f9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 51 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0-beta.4

* Improve install instructions.

## 1.0.0-beta.3

* Fix install instructions.
Expand Down
59 changes: 10 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,60 +38,21 @@ flutter test

## Usage
### [Core](https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core)
##### Initializing the SDK:

**iOS:**

```objective-c
// Import the SDK
#import "ACPCore.h"
#import "ACPLifecycle.h"
#import "ACPIdentity.h"
#import "ACPSignal.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//...
[ACPCore configureWithAppId:@"yourAppId"];
[ACPCore setWrapperType:ACPMobileWrapperTypeFlutter];
[ACPIdentity registerExtension];
[ACPLifecycle registerExtension];
[ACPSignal registerExtension];
// Register any additional extensions

[ACPCore start:nil];
}
```

**Android:**
##### Initializing the SDK should be done in native code, documentation on how to initalize the SDK can be found [here](https://aep-sdks.gitbook.io/docs/getting-started/get-the-sdk#2-add-initialization-code).

After you have added the initialization code to your app, be sure to set the SDK wrapper type to Flutter.

###### iOS:
```swift
ACPCore.setWrapperType(.flutter)
```

###### Android
```java
// Import the SDK
import com.adobe.marketing.mobile.MobileCore;
import com.adobe.marketing.mobile.Identity;
import com.adobe.marketing.mobile.Lifecycle;
import com.adobe.marketing.mobile.Signal;
import com.adobe.marketing.mobile.WrapperType;

@Override
public void onCreate() {
//...
MobileCore.setApplication(this);
MobileCore.configureWithAppID("yourAppId");
// MobileCore.setWrapperType(WrapperType.FLUTTER); COMING SOON
try {
Identity.registerExtension();
Lifecycle.registerExtension();
Signal.registerExtension();
// Register any additional extensions
} catch (Exception e) {
// handle exception
}

MobileCore.start(null);
}
//MobileCore.setWrapperType(WrapperType.FLUTTER); COMING SOON
```

> After you have added the initialization code to your app, be sure to review the offical [getting started docs](https://aep-sdks.gitbook.io/docs/getting-started/get-the-sdk).

##### Importing Core:
```dart
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0-beta.3"
version: "1.0.0-beta.4"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_acpcore
description: Official Adobe Experience Platform support for Flutter apps. The Mobile Core represents the core Adobe Experience Platform SDK that is required for every app implementation.
version: 1.0.0-beta.3
version: 1.0.0-beta.4
homepage: https://aep-sdks.gitbook.io/docs/
repository: https://github.com/adobe/flutter_acpcore

Expand Down

0 comments on commit da6c5f9

Please sign in to comment.