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

Commit da6c5f9

Browse files
authored
v1.0.0-beta.4 (#4)
* Update README.md * Update README.md * Bump version
1 parent 1fb05fd commit da6c5f9

4 files changed

Lines changed: 16 additions & 51 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.0-beta.4
2+
3+
* Improve install instructions.
4+
15
## 1.0.0-beta.3
26

37
* Fix install instructions.

README.md

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -38,60 +38,21 @@ flutter test
3838

3939
## Usage
4040
### [Core](https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core)
41-
##### Initializing the SDK:
42-
43-
**iOS:**
44-
45-
```objective-c
46-
// Import the SDK
47-
#import "ACPCore.h"
48-
#import "ACPLifecycle.h"
49-
#import "ACPIdentity.h"
50-
#import "ACPSignal.h"
51-
52-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
53-
//...
54-
[ACPCore configureWithAppId:@"yourAppId"];
55-
[ACPCore setWrapperType:ACPMobileWrapperTypeFlutter];
56-
[ACPIdentity registerExtension];
57-
[ACPLifecycle registerExtension];
58-
[ACPSignal registerExtension];
59-
// Register any additional extensions
60-
61-
[ACPCore start:nil];
62-
}
63-
```
6441

65-
**Android:**
42+
##### 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).
43+
44+
After you have added the initialization code to your app, be sure to set the SDK wrapper type to Flutter.
6645

46+
###### iOS:
47+
```swift
48+
ACPCore.setWrapperType(.flutter)
49+
```
50+
51+
###### Android
6752
```java
68-
// Import the SDK
69-
import com.adobe.marketing.mobile.MobileCore;
70-
import com.adobe.marketing.mobile.Identity;
71-
import com.adobe.marketing.mobile.Lifecycle;
72-
import com.adobe.marketing.mobile.Signal;
73-
import com.adobe.marketing.mobile.WrapperType;
74-
75-
@Override
76-
public void onCreate() {
77-
//...
78-
MobileCore.setApplication(this);
79-
MobileCore.configureWithAppID("yourAppId");
80-
// MobileCore.setWrapperType(WrapperType.FLUTTER); COMING SOON
81-
try {
82-
Identity.registerExtension();
83-
Lifecycle.registerExtension();
84-
Signal.registerExtension();
85-
// Register any additional extensions
86-
} catch (Exception e) {
87-
// handle exception
88-
}
89-
90-
MobileCore.start(null);
91-
}
53+
//MobileCore.setWrapperType(WrapperType.FLUTTER); COMING SOON
9254
```
9355

94-
> 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).
9556

9657
##### Importing Core:
9758
```dart

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ packages:
7575
path: ".."
7676
relative: true
7777
source: path
78-
version: "1.0.0-beta.3"
78+
version: "1.0.0-beta.4"
7979
flutter_test:
8080
dependency: "direct dev"
8181
description: flutter

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_acpcore
22
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.
3-
version: 1.0.0-beta.3
3+
version: 1.0.0-beta.4
44
homepage: https://aep-sdks.gitbook.io/docs/
55
repository: https://github.com/adobe/flutter_acpcore
66

0 commit comments

Comments
 (0)