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
8 changes: 0 additions & 8 deletions packages/userprofile/.babelrc

This file was deleted.

22 changes: 11 additions & 11 deletions packages/userprofile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class MainApplication extends Application implements ReactApplication {

In your React Native application, import the UserProfile extension as follows:

```javascript
```typescript
import {UserProfile} from '@adobe/react-native-aepuserprofile';
```

Expand All @@ -98,13 +98,13 @@ Returns the version of the User Profile extension

**Syntax**

```javascript
```typescript
extensionVersion(): Promise<string>
```

**Example**

```javascript
```typescript
UserProfile.extensionVersion().then(version => console.log("AdobeExperienceSDK: UserProfile version: " + version));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change double quote to single quote for ts
' '

```

Expand All @@ -114,13 +114,13 @@ Gets the user profile attributes with the given keys.

**Syntax**

```javascript
getUserAttributes(attributeNames: Array<string>): Promise<?{ string: any }>
```typescript
getUserAttributes(attributeNames: Array<string>): Promise<Record<string, any>>
```

**Example**

```javascript
```typescript
UserProfile.getUserAttributes(["mapKey", "mapKey1"]).then(map => console.log("AdobeExperienceSDK: UserProfile getUserAttributes: " + map));
```

Expand All @@ -130,13 +130,13 @@ Removes the user profile attributes for the given keys.

**Syntax**

```javascript
```typescript
removeUserAttributes(attributeNames: Array<string>)
```

**Example**

```javascript
```typescript
UserProfile.removeUserAttributes(["mapKey1"]);
```

Expand All @@ -147,13 +147,13 @@ It allows to create/update a batch of user profile attributes.

**Syntax**

```javascript
updateUserAttributes(attributeMap: { string: any })
```typescript
updateUserAttributes(attributeMap: Record<string, any>)
```

**Example**

```javascript
```typescript
let attrMap = {"mapKey": "mapValue", "mapKey1": "mapValue1"};
UserProfile.updateUserAttributes(attrMap);
```
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.

This file was deleted.

Binary file not shown.
Empty file.
Binary file not shown.

This file was deleted.

172 changes: 0 additions & 172 deletions packages/userprofile/android/gradlew

This file was deleted.

84 changes: 0 additions & 84 deletions packages/userprofile/android/gradlew.bat

This file was deleted.

2 changes: 1 addition & 1 deletion packages/userprofile/ts/UserProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const RCTAEPUserProfile: IUserProfile = NativeModules.AEPUserProfile;
const UserProfile: IUserProfile = {
/**
* Returns the version of the UserProfile extension
* @param {string} Promise a promise that resolves with the extension version
* @return {string} Promise a promise that resolves with the extension version
*/
extensionVersion(): Promise<string> {
return Promise.resolve(RCTAEPUserProfile.extensionVersion());
Expand Down