File tree Expand file tree Collapse file tree 11 files changed +25
-21
lines changed
java/com/onesignal/sdktest/application
notifications/src/main/java/com/onesignal/notifications/internal/display/impl Expand file tree Collapse file tree 11 files changed +25
-21
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ plugins {
33}
44
55android {
6+ namespace ' com.onesignal.sdktest'
67 compileSdkVersion 34
78 defaultConfig {
89 minSdkVersion 21
@@ -61,10 +62,11 @@ android {
6162 }
6263
6364 task flavorSelection() {
64- if (getGradle(). getStartParameter(). getTaskRequests(). toString(). contains(" Gms" )) {
65+ def tasksList = gradle. startParameter. taskRequests. toString()
66+ if (tasksList. contains(' Gms' )) {
6567 apply plugin : ' com.google.gms.google-services'
6668 googleServices { disableVersionCheck = true }
67- } else {
69+ } else if (tasksList . contains( ' Huawei ' )) {
6870 apply plugin : ' com.huawei.agconnect'
6971 }
7072 }
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools"
4- xmlns : amazon =" http://schemas.amazon.com/apk/res/android"
5- package =" com.onesignal.sdktest" >
4+ xmlns : amazon =" http://schemas.amazon.com/apk/res/android" >
65
76 <uses-permission android : name =" com.android.vending.BILLING" />
87
Original file line number Diff line number Diff line change 2121import com .onesignal .notifications .IDisplayableNotification ;
2222import com .onesignal .notifications .INotificationLifecycleListener ;
2323import com .onesignal .notifications .INotificationWillDisplayEvent ;
24- import com .onesignal .sdktest .BuildConfig ;
2524import com .onesignal .sdktest .R ;
2625import com .onesignal .sdktest .constant .Tag ;
2726import com .onesignal .sdktest .constant .Text ;
@@ -39,9 +38,8 @@ public class MainApplication extends MultiDexApplication {
3938 private static final int SLEEP_TIME_TO_MIMIC_ASYNC_OPERATION = 2000 ;
4039
4140 public MainApplication () {
42- // run strict mode default in debug mode to surface any potential issues easier
43- if (BuildConfig .DEBUG )
44- StrictMode .enableDefaults ();
41+ // run strict mode to surface any potential issues easier
42+ StrictMode .enableDefaults ();
4543 }
4644
4745 @ SuppressLint ("NewApi" )
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ buildscript {
1212 maven { url ' https://developer.huawei.com/repo/' }
1313 }
1414 dependencies {
15- classpath ' com.android.tools.build:gradle:7.2 .2'
15+ classpath ' com.android.tools.build:gradle:8.8 .2'
1616 classpath ' com.google.gms:google-services:4.3.10'
17- classpath ' com.huawei.agconnect:agcp:1.6.2.300 '
17+ classpath ' com.huawei.agconnect:agcp:1.9.1.304 '
1818
1919 // TODO: Do not place your application dependencies here; they belong
2020 // in the individual module build.gradle files
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.3.3 -all.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -all.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ buildscript {
88 targetSdkVersion : 34 ,
99 minSdkVersion : 21
1010 ]
11- androidGradlePluginVersion = ' 7.2.0 '
11+ androidGradlePluginVersion = ' 8.8.2 '
1212 googleServicesGradlePluginVersion = ' 4.3.10'
13- huaweiAgconnectVersion = ' 1.6.2.300 '
13+ huaweiAgconnectVersion = ' 1.9.1.304 '
1414 huaweiHMSPushVersion = ' 6.3.0.304'
1515 huaweiHMSLocationVersion = ' 4.0.0.300'
1616 kotlinVersion = ' 1.7.10'
Original file line number Diff line number Diff line change 2323# Remove when creating an .aar build.
2424# android.enableAapt2=false
2525
26- android.databinding.incremental = false
27- kapt.incremental.apt = false
28- android.testConfig.useRelativePath = false
26+ org.gradle.jvmargs =-Xmx1536m
2927
3028# Enables D8 for all modules.
3129android.enableD8 = true
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.3.3 -all.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -all.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 11plugins {
22 id ' com.android.library'
3+ // There isn't Kotlin or Java code in this top-level project,
4+ // however consumers look for an .aar file, which this causes it
5+ // to be created.
6+ id ' kotlin-android'
37}
48
59android {
@@ -25,6 +29,8 @@ android {
2529 targetCompatibility JavaVersion . VERSION_1_8
2630 }
2731 namespace ' com.onesignal'
32+
33+ kotlinOptions. freeCompilerArgs + = [' -module-name' , namespace]
2834}
2935
3036ext {
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ afterEvaluate {
6666
6767 publications {
6868 release(MavenPublication ) {
69- from components. release
69+ afterEvaluate {
70+ from components. findByName(' release' )
71+ }
7072
7173 pom {
7274 name = projectName
You can’t perform that action at this time.
0 commit comments