Hey Steve,
thank you very much for your help. I'm trying out the build hints you
mentioned, but I'm getting the following error when sending the build to
Android:
Executing: /home/ec2-user/android/gradle-4.6/bin/gradle assembleRelease
--no-daemon --stacktrace --info Initialized native services in:
/home/ec2-user/.gradle/native
To honour the JVM settings for this build a new JVM will be forked. Please
consider using the daemon:
https://docs.gradle.org/4.6/userguide/gradle_daemon.html.
Starting process 'Gradle build daemon'. Working directory:
/home/ec2-user/.gradle/daemon/4.6 Command:
/home/ec2-user/jdk1.8.0_45/bin/java -XX:MaxPermSize=512m
-XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dfile.encoding=UTF-8
-Duser.country=US -Duser.language=en -Duser.variant -cp
/home/ec2-user/android/gradle-4.6/lib/gradle-launcher-4.6.jar
org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.6
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 0.927 secs.
The client will now receive all logging from the daemon (pid: 15559). The
daemon log file: /home/ec2-user/.gradle/daemon/4.6/daemon-15559.out.log
Daemon will be stopped at the end of the build stopping after processing
Using 4 worker leases.
Starting Build
Settings evaluated using settings file
'/tmp/build6938342938423561325xxx/Ego/settings.gradle'.
Projects loaded. Root project using build file
'/tmp/build6938342938423561325xxx/Ego/build.gradle'.
Included projects: [root project 'Ego']
Evaluating root project 'Ego' using build file
'/tmp/build6938342938423561325xxx/Ego/build.gradle'.
Compiling build file '/tmp/build6938342938423561325xxx/Ego/build.gradle'
using SubsetScriptTransformer.
FAILURE: Build failed with an exception.
* Where:
Build file '/tmp/build6938342938423561325xxx/Ego/build.gradle' line: 42
* What went wrong:
Could not compile build file
'/tmp/build6938342938423561325xxx/Ego/build.gradle'.
> startup failed:
build file '/tmp/build6938342938423561325xxx/Ego/build.gradle': 42:
expecting ']', found 'lintOptions' @ line 42, column 5.
lintOptions {
^
1 error
I'm not really sure what to do as I haven't touched anything related to the
lintOptions mentioned there. Could you please help me solve this? I attach
the resulting build.gradle file generated in the process.
Thanks!
On Friday, May 24, 2019 at 2:07:30 PM UTC-5, Steve Hannah wrote:
>
> Here are the build hints:
>
> for the maven { url '...} . that appears inside buildscript >
> repositories, you can use the android.repositories build hint
>
> for the classpath 'gradle.plugin.com....' inside buildscript >
> dependencies, you can use the android.topDependency build hint.
>
> for the manifestPlaceholders you can use
> the android.xgradle_default_config build hint.
>
> for the implementation 'com...' inside dependencies, you can use the
> android.gradleDep build hint.
>
> Steve
>
> On Fri, May 24, 2019 at 11:24 AM Mario Barón <[email protected]
> <javascript:>> wrote:
>
>> Hey guys,
>>
>> can you please help me with this?
>>
>> I greatly appreciate your help.
>>
>> El lunes, 20 de mayo de 2019, 23:16:58 (UTC-5), Mario Barón escribió:
>>>
>>> Hey guys,
>>>
>>> I need to integrate OneSignal with my Codename One app, and while
>>> reading the OneSignal documentation, it came up that I had to add the code
>>> found in the attached screenshot.
>>>
>>> How would I do this? By the way, for the time being, the app will be
>>> Android only.
>>>
>>>
>>> Thanks in advance.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected]
>> <javascript:>.
>> Visit this group at
>> https://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/703aabe9-72bd-43a1-a3d7-415029772181%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/codenameone-discussions/703aabe9-72bd-43a1-a3d7-415029772181%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/f5bbbf92-2c58-4d23-bd34-414462b8682c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
apply plugin: 'com.android.application'
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
buildscript {
repositories {
jcenter()
mavenLocal()
mavenCentral()
google()
maven { url 'https://plugins.gradle.org/m2/'} maven { url
"https://maven.google.com" }
mavenLocal()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.11.0,
0.99.99]' }
}
android {
compileSdkVersion 27
buildToolsVersion '27'
dexOptions {
preDexLibraries = false
incremental false
jumboMode = true
javaMaxHeapSize "3g"
}
defaultConfig {
applicationId "com.guarumo.ego"
minSdkVersion 22
targetSdkVersion 27
versionCode 138
versionName "1.38"
manifestPlaceholders = [ onesignal_app_id:
'aa074f00-9ccf-414a-8a00-e8ec0277af1e', // Project number pulled from
dashboard, local value is ignored. onesignal_google_project_number:
'338736970077' ] }
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
}
lintOptions {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
signingConfigs {
release {
storeFile file("keyStore")
storePassword "password"
keyAlias "alias"
keyPassword "password"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.release
}
}
}
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/'} maven { url
"https://maven.google.com" }
mavenLocal()
mavenCentral()
google()
flatDir{
dirs 'libs'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:27.+'
implementation 'com.android.support:appcompat-v7:27.+'
compile ('com.facebook.android:facebook-android-sdk:4.7.0'){ exclude module:
'bolts-android' }
compile 'com.google.android.gms:play-services-location:8.3.0'
implementation 'com.onesignal: OneSignal: (3.9.2, 3.99.99)' }