Skip to content

Commit

Permalink
6.2.40
Browse files Browse the repository at this point in the history
6.2.40
  • Loading branch information
amit-kremer93 authored Mar 8, 2021
2 parents c631ad3 + 4e52cf4 commit 93e254a
Show file tree
Hide file tree
Showing 132 changed files with 1,749 additions and 347 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You can read more [here](https://support.appsflyer.com/hc/en-us/articles/2070320

### <a id="plugin-build-for"> This plugin is built for

- iOS AppsFlyerSDK **v6.2.1**
- iOS AppsFlyerSDK **v6.2.3**
- Android AppsFlyerSDK **v6.2.0**

### <a id="breakingChanges"> ❗v6 Breaking Changes
Expand Down
6 changes: 6 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Release Notes
### 6.2.40
Release date: *2021-March-08*

**Overview and Highlights:**
- Cordova > iOS SDK v6.2.3

### 6.2.30
Release date **February 21, 2021**
Release type: Major / **Minor** / Hotfix
Expand Down
32 changes: 8 additions & 24 deletions docs/Guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,34 +384,18 @@ window.plugins.appsFlyer.registerUninstall("<token>");
## <a id="demo"> Demo


This plugin has a `examples` folder with `demoA` (Angular 1) and `demoC` (Cordova) projects bundled with it. To give it a try , clone this repo and from root a.e. `cordova-plugin-appsflyer-sdk` execute the following:
This plugin has an `examples` folder with `cordova` (pure Cordova (javascript)) and `ionic-cordova` (ionic) projects bundled with it. To give it a try , clone this repo and from root a.e. `cordova-plugin-appsflyer-sdk` execute the following:

For Cordova:
```sh
npm run setup_c
npm run setupCordova
```
- `npm run demo_c.ra` - runs Android
- `npm run demo_c.ba` - builds Android
- `npm run demo_c.ri` - runs iOS
- `npm run demo_c.bi` - builds iOS
- `npm run runCordovaIos` - run iOS
- `npm run runCordovaAndroid` - run Android


For Angular:
For Ionic-Cordova:
```sh
npm run setup_a
npm run setupIonicCordova
```
- `npm run demo_a.ra` - runs Android
- `npm run demo_a.ba` - builds Android
- `npm run demo_a.ri` - runs iOS
- `npm run demo_a.bi` - builds iOS

For Ionic-native:
```sh
npm run setup_ionic-native
```
- `npm run demo_In.ra` - runs Android
- `npm run demo_In.ba` - builds Android
- `npm run demo_In.ri` - runs iOS
- `npm run demo_In.bi` - builds iOS

![demo printscreen](../examples/demo_example.png?raw=true)
- `npm run runIonicCordovaIos` - run iOS
- `npm run runIonicCordovaAndroid` - run Android
2 changes: 2 additions & 0 deletions docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ Copy:
- `AppsFlyerX+AppController.h`
- `AppsFlyerX+AppController.m`
- `libAppsFlyerLib.a`
- `AppsFlyerAttribution.h`
- `AppsFlyerAttribution.m`

to `platforms/ios/<ProjectName>/Plugins`

Expand Down
9 changes: 9 additions & 0 deletions examples/cordova/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store

# Generated by package manager
node_modules/

# Generated by Cordova
/plugins/
/platforms/
package-lock.json
4 changes: 2 additions & 2 deletions examples/demoC/config.xml → examples/cordova/config.xml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.amit" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<widget id="com.appsflyer.cordovaapp" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>AppsFlyerCordova</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
Expand Down
30 changes: 30 additions & 0 deletions examples/cordova/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "com.appsflyer.cordovaapp",
"displayName": "AppsFlyerCordova",
"version": "1.0.0",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"ecosystem:cordova"
],
"author": "Apache Cordova Team",
"license": "Apache-2.0",
"devDependencies": {
"cordova-android": "^9.0.0",
"cordova-ios": "^6.2.0",
"cordova-plugin-whitelist": "^1.3.4"
},
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {}
},
"platforms": [
"android",
"ios"
]
},
"dependencies": {}
}
75 changes: 19 additions & 56 deletions examples/demoC/www/css/index.css → examples/cordova/www/css/index.css
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,24 @@ body {
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
background-color:#E4E4E4;
background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
background-image:-webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #A7A7A7),
color-stop(0.51, #E4E4E4)
);
background-attachment:fixed;
font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
background-image:linear-gradient(to bottom, #A7A7A7 0%, #E4E4E4 51%);
font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
font-size:12px;
height:100%;
height:100vh;
margin:0px;
padding:0px;
/* Padding to avoid the "unsafe" areas behind notches in the screen */
padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
text-transform:uppercase;
width:100%;
}

/* Portrait layout (default) */
.app {
background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
background-size: 80% 80%;
position:absolute; /* position in the center of the screen */
left:50%;
top:30%;
top:50%;
height:50px; /* text area height */
width:225px; /* text area width */
text-align:center;
Expand All @@ -63,19 +54,10 @@ body {
/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
.app {
background-position:center top;
/* background-size: 60% 60%;*/
/* padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
/* margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
/* /* offset horizontal: half of image width and text area width */
position:absolute; /* position in the center of the screen */
left:50%;
top:30%;
height:50px; /* text area height */
width:225px; /* text area width */
text-align:center;
padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
margin:-115px 0px 0px -112px;
background-position:left center;
padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
/* offset horizontal: half of image width and text area width */
}
}

Expand All @@ -90,7 +72,6 @@ h1 {

.event {
border-radius:4px;
-webkit-border-radius:4px;
color:#FFFFFF;
font-size:12px;
margin:0px 30px;
Expand All @@ -107,41 +88,23 @@ h1 {
display:none;
}

#deviceready.ready .event.listening { display: none; }
#deviceready.ready .event.received { display: block; }

@keyframes fade {
from { opacity: 1.0; }
50% { opacity: 0.4; }
to { opacity: 1.0; }
}

@-webkit-keyframes fade {
from { opacity: 1.0; }
50% { opacity: 0.4; }
to { opacity: 1.0; }
}


.blink {
animation:fade 3000ms infinite;
-webkit-animation:fade 3000ms infinite;
}

.main-view {
position: fixed;
text-align: center;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.main-view .page-content {
position: absolute;
width: 100%;
height: 100%;
}
button {
width: 50%;
height: 46px;
margin-bottom: 10px;
}
.buttons-container {
margin-top: 10px;

@media screen and (prefers-color-scheme: dark) {
body {
background-image:linear-gradient(to bottom, #585858 0%, #1B1B1B 51%);
}
}
File renamed without changes
35 changes: 35 additions & 0 deletions examples/cordova/www/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy"
content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="msapplication-tap-highlight" content="no"/>
<meta name="viewport"
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"/>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>
<body>
<div class="app">
<div id="deviceready">
<button id="logEvent">log Event</button>
<button id="setCurrency">Set Currency</button>
<button id="setUserId">Set App User Id</button>
<button id="getUserId">Get AppsFlyer UID</button>
<button id="getSdkV">Get SDK Version</button>
<button id="logCrossPromotionAndOpenStore">log Cross Promotion And Open Store</button>
<button id="customDomains">Test customDomains</button>
<button id="enableFB">Test enabledFB</button>
<button id="userEmails">Test serUserEmails</button>
<button id="phone">Test serPhoneNumber</button>
<button id="hosts">Test serHost (foo.bar)</button>
<button id="path">Test addPushNotificationDeepLinkPath</button>

</div>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/appsflyer.js"></script>
<script type="text/javascript" src="js/buttons.js"></script>
</body>
</html>
Loading

0 comments on commit 93e254a

Please sign in to comment.