Compare commits

..

No commits in common. "main" and "3.18.09" have entirely different histories.

12 changed files with 19582 additions and 20711 deletions

View File

@ -12,18 +12,17 @@ Android SDK
<a name="import"></a> <a name="import"></a>
## Import ## Import
You must use git to download the sdk from [repository](https://github.com/tecnaviapress/newsmemory-android-sdk)
You must use git to download the sdk from [repository](https://pubgit.newsmemory.com/tecnavia/newsmemory-android-sdk) 1. The repository is private, to clone it you must generate an ssh key, see the [guide](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
2. Once the key is generate you must send to Tecnavia the public key and wait a confirmation that you are enabled
1. Inside root folder run the following command: 3. Inside root folder run the following command, replace TAG with the latest release, see the list on [releases](https://github.com/tecnaviapress/newsmemory-android-sdk/releases)
```sh ```sh
git clone --depth 1 --branch 3.18.14 https://pubgit.newsmemory.com/tecnavia/newsmemory-android-sdk.git git clone --depth 1 --brach TAG git@github.com:tecnaviapress/newsmemory-android-sdk.git
``` ```
2. if you already has the module you could update to another release by the following commands 4. if you already has the module you could update to another release by the following commands
```sh ```sh
cd newsmemory-android-sdk cd newsmemory-android-sdk
git checkout tags/3.18.14 git checkout tags/TAG
``` ```
<a name="installation"></a> <a name="installation"></a>
## Installation ## Installation
@ -40,7 +39,7 @@ buildscript {
} }
dependencies { dependencies {
classpath "com.android.tools.build:gradle:7.2.1" classpath "com.android.tools.build:gradle:4.2.2"
classpath "com.google.gms:google-services:4.3.4" classpath "com.google.gms:google-services:4.3.4"
//add crashlytics only if the aar file is included //add crashlytics only if the aar file is included
classpath "com.google.firebase:firebase-crashlytics-gradle:2.3.0" classpath "com.google.firebase:firebase-crashlytics-gradle:2.3.0"
@ -239,9 +238,6 @@ public class YourActivity extends AppCompatActivity {
//set the SDK referrer for GA4 analytics //set the SDK referrer for GA4 analytics
bundle.putString(TaConstants.TA_REFERRER, "referrer"); bundle.putString(TaConstants.TA_REFERRER, "referrer");
//querystring-like list of parameters to pass to GA4 analytics
bundle.putString(TaConstants.TA_EXTRA_GA4_PARAMS, "param1=value1&param2=value2&param3=value3");
return bundle; return bundle;
} }
} }
@ -263,7 +259,7 @@ the following constants are required by SDK otherwise there will be some inconsi
the following constant can be used for debug builds ONLY, to monitor the load time performances the following constant can be used for debug builds ONLY, to monitor the load time performances
```java ```java
bundle.putBoolean(TaConstants.TA_ENABLE_DEBUGGER, true); bundle.putBoolean(TaConstants.TA_ENABLE_DEBUGGER_KEY, true);
``` ```
1. The activity that load TaFragment must implement the following interface *DefaultHardwareBackBtnHandler* 1. The activity that load TaFragment must implement the following interface *DefaultHardwareBackBtnHandler*

View File

@ -11,7 +11,7 @@ buildscript {
}*/ }*/
} }
dependencies { dependencies {
classpath "com.android.tools.build:gradle:7.2.1" classpath "com.android.tools.build:gradle:4.2.2"
classpath "com.google.gms:google-services:4.3.4" classpath "com.google.gms:google-services:4.3.4"
//use the version suggested by react-native-firebase //use the version suggested by react-native-firebase
//classpath "com.google.firebase:firebase-crashlytics-gradle:2.3.0" //classpath "com.google.firebase:firebase-crashlytics-gradle:2.3.0"
@ -286,7 +286,7 @@ publishing {
tatecnaviareactnativebridge(MavenPublication) { tatecnaviareactnativebridge(MavenPublication) {
groupId 'tecnavia' groupId 'tecnavia'
artifactId 'tecnavia_react-native-bridge' artifactId 'tecnavia_react-native-bridge'
version '1.3.12' version '1.3.11'
artifact("$libsDirName/tecnavia_react-native-bridge-release.aar") artifact("$libsDirName/tecnavia_react-native-bridge-release.aar")
} }
@ -479,7 +479,7 @@ dependencies {
implementation "tecnavia:react-native-volume-control:1.0.1" implementation "tecnavia:react-native-volume-control:1.0.1"
implementation "tecnavia:react-native-webview:12.4.0" implementation "tecnavia:react-native-webview:12.4.0"
implementation "tecnavia:rn-fetch-blob:0.11.2" implementation "tecnavia:rn-fetch-blob:0.11.2"
api "tecnavia:tecnavia_react-native-bridge:1.3.12" api "tecnavia:tecnavia_react-native-bridge:1.3.11"
implementation "tecnavia:tecnavia_react-native-default-preference:1.5.0" implementation "tecnavia:tecnavia_react-native-default-preference:1.5.0"
implementation "tecnavia:tecnavia_react-native-dfp:1.5.0" implementation "tecnavia:tecnavia_react-native-dfp:1.5.0"
implementation "tecnavia:tecnavia_react-native-geolocation:3.0.1" implementation "tecnavia:tecnavia_react-native-geolocation:3.0.1"

View File

@ -1,7 +1,7 @@
android.useAndroidX=true android.useAndroidX=true
APP_NAME=Android SDK APP_NAME=Android SDK
APP_VERSION_NAME=3.18.14 APP_VERSION_NAME=3.18.09
APP_VERSION_CODE=1744811405810 APP_VERSION_CODE=1742893448916
ANDROID_APP_ID=com.tecnaviaapplication ANDROID_APP_ID=com.tecnaviaapplication
IS_ADDON=true IS_ADDON=true

File diff suppressed because one or more lines are too long