[codenameone-discussions] How i Can Initialize Firebase in cn1?

2019-04-04 Thread bedspeed97
hi, 
i need to add firebase to my cn1app with these attributes

buildscript {
  // ...
  dependencies {
// ...
// Add the following line:
classpath 'com.google.gms:google-services:4.2.0'  // Google Services plugin
  }
}

apply plugin: 'com.android.application'

android {
  // ...
}

// Add the following line to the bottom of the file:
apply plugin: 'com.google.gms.google-services'  // Google Play services Gradle 
plugin

apply plugin: 'com.android.application'

android {
  // ...
}

// Add the following line to the bottom of the file:
apply plugin: 'com.google.gms.google-services'  // Google Play services Gradle 
plugin





apply plugin: 'com.android.application'

android {
  // ...
}

// Add the following line to the bottom of the file:

apply plugin: 'com.google.gms.google-services'  // Google Play services 
Gradle plugin 


dependencies {
 // ...
 implementation 'com.google.firebase:firebase-core:16.0.8'

 // Getting a "Could not find" error? Make sure that you've added
 // Google's Maven repository to your root-level build.gradle file
}





i tried to add these hints

 android.gradlePlugin=apply plugin: 'com.google.gms.google-services';
android.gradleDep=compile 'com.google.gms:google-services:4.2.0'; 
implementation 'com.google.firebase:firebase-core:16.0.8';


but i get this error

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/build812279652249867934xxx/MyApplication/build.gradle' line: 2

* What went wrong:
A problem occurred evaluating root project 'MyApplication'.
> Plugin with id 'com.google.gms.google-services' not found.




how i can fix it?
how i can add classpath dependencies in gradel project file?

-- 
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 codenameone-discussions+unsubscr...@googlegroups.com.
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/e360a54f-6a9b-40e2-a1a7-9f9fd968f3bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
User-level: 1000
Request Args: 
-
android.gradleDep=compile 'com.google.gms:google-services:4.2.0'; 
implementation 'com.google.firebase:firebase-core:16.0.8';
java.version=8
ios.newStorageLocation=true
android.gradlePlugin=apply plugin: 'com.google.gms.google-services';
---
Executing: /home/ec2-user/android-sdk/tools/android create project --target 
android-27 --name MyApplication --path 
/tmp/build812279652249867934xxx/MyApplication --activity MyApplicationStub 
--package com.bedspeed.cn1init --gradle --gradle-version 3.0.1 Created 
directory /tmp/build812279652249867934xxx/MyApplication/src/main/java
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/main/java/com/bedspeed/cn1init
Added file 
/tmp/build812279652249867934xxx/MyApplication/src/main/java/com/bedspeed/cn1init/MyApplicationStub.java
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/androidTest/java
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/androidTest/java/com/bedspeed/cn1init
Added file 
/tmp/build812279652249867934xxx/MyApplication/src/androidTest/java/com/bedspeed/cn1init/MyApplicationStubTest.java
Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/values
Added file 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/values/strings.xml
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/layout
Added file 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/layout/main.xml
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-xhdpi
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-hdpi
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-mdpi
Created directory 
/tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-ldpi
Added file 
/tmp/build812279652249867934xxx/MyApplication/src/main/AndroidManifest.xml
Added file /tmp/build812279652249867934xxx/MyApplication/build.gradle
Created directory /tmp/build812279652249867934xxx/MyApplication/gradle/wrapper
Process return code is 0
Executing: /home/ec2-user/jdk1.8.0_45/bin/java 
-Dretrolambda.inputDir=/tmp/build812279652249867934xxx/Classes 
-Dretrolambda.classpath=/tmp/build812279652249867934xxx/Classes:/tmp/temp6222423730603957483.jar
 -Dretrolambda.outputDir=/tmp/build812279652249867934xxx/Classes_retrolamda 
-Dretrolambda.bytecodeVersion=49 -Dretrolambda.defaultMethods=true -jar 
/tmp/temp4495235761897469049.jar Retrolambda 2.5.1
00:00  INFO: Bytecode version: 49 (Java 5)
00:00  INFO: Default methods:  true
00:00  INFO: Input directory:  

[codenameone-discussions] Does Braintree available for Israel or Arab countries?

2019-03-13 Thread bedspeed97
I used Braintree in my cn1 app but when reading a faq for it 
I wondered if i can use it from Israel or Arab countries
I see here on question 3. just 8 
country support for merchants 

if does not support, is there any other way can use it for that?

-- 
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 codenameone-discussions+unsubscr...@googlegroups.com.
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/fcf0a6c7-6e8d-46db-92fb-aa1861d1ef82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.