- signed with parameters via command line, use them
- If not signed with parameters, use the key.properties
- Add the following snippet to
app:build.gradle
-> android { }
android {
<meta-data android:name="pushe_preferred_service" | |
android:value="hms" /> |
val isHmsAvailable = HuaweiApiAvailability.getInstance() | |
.isHuaweiMobileServicesAvailable(context) == ConnectionResult.SUCCESS |
val isFirebaseAvailable = GoogleApiAvailability.getInstance() | |
.isGooglePlayServicesAvailable(context) == ConnectionResult.SUCCESS |
<dependencies> | |
<androidPackages> | |
<androidPackage spec="co.ronash.android:pushe-base:1.6.3"> | |
<repositories> | |
<repository>https://maven.google.com</repository> | |
</repositories> | |
</androidPackage> | |
</androidPackages> | |
</dependencies> |
--------- beginning of system | |
12-08 15:08:25.093 2105 2105 D Telephony-AccountEntry: isEmergencyPreferredAccount: subId=-1, activeData=-1 | |
12-08 15:08:25.093 2105 2105 D Telephony-AccountEntry: isEmergencyPreferredAccount: Device does not require preference. | |
12-08 15:08:25.093 2105 3153 D Mapcon : TelephonyAdapter: [getWfcMode]slotId=1, isRoaming=false, mode=WIFI_PREFER | |
12-08 15:08:25.093 2105 3153 D Mapcon : VoiceManager-5-ImsDomainConfig: [start]start,modemDomain=WIFI_PREFER | |
12-08 15:08:25.093 2105 3153 D Mapcon : TelephonyAdapter: [setImsDomainConfig]phoneId=1, domain=WIFI_PREFER | |
12-08 15:08:25.094 2105 2105 D Telephony-AccountEntry: isEmergencyPreferredAccount: subId=-1, activeData=-1 | |
12-08 15:08:25.094 2105 2105 D Telephony-AccountEntry: isEmergencyPreferredAccount: Device does not require preference. | |
12-08 15:08:25.094 2105 2105 D Telephony-AccountEntry: isEmergencyPreferredAccount: subId=-1, activeData=-1 | |
12-08 15:08:25.094 2105 2105 D Telephony-AccountEntry: isEmergencyPreferredAcc |
Module name | Size(KB) | Description | |
---|---|---|---|
base | 15 | Integrates other module that are common | |
base-mini | 1B | Same as base but imports custom minifed java | |
core | 700 | Responsible to provide core functionality of the SDK | |
analytics | 255 | Analytics functions providing Segmentation feature | |
notification | 476 | Adds notification related features | |
datalytics | 260 | Responsible for collecting analytical data for console charts | |
inappmessaging | 280 | InAppMessaging feature | |
fcm | 72 | FCM service. Adds support for sending and receiving messages using Firebase cloud messaging (Google play devices) | |
hms | 56 | HMS service. Adds support for sending and receiving messages using Huawei PushKit (Hms core devices) |
python3 -c """ | |
import shutil | |
import glob | |
for i in glob.glob('**/build/',recursive=True): | |
print(f'Deleting {i}') | |
try: | |
shutil.rmtree(i) | |
except OSError: | |
print(f'Failed to remove {i}') |
static boolean isApplicationForeground(Context context) { | |
KeyguardManager keyguardManager = | |
(KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE); | |
if (keyguardManager != null && keyguardManager.isKeyguardLocked()) { | |
return false; | |
} | |
ActivityManager activityManager = | |
(ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
#! /bin/bash | |
##################################################### | |
# Fetch DNS configurations from shecan.ir # | |
##################################################### | |
set -e | |
reset=`tput sgr0` | |
red=`tput setaf 1` |