Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to download plugins in new Corona Native
Started by mor.maslati Aug 08 2019 01:29 AM

9 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mor.maslati

[GLOBAL: userInfoPane.html]
mor.maslati
  • Observer

  • 8 posts
  • Corona SDK

Hello,

 

Moving our Android app to Native Corona. In the past we would run the "android/download_plugins.sh" script, as stated here, but I don't see it in the android folder as of at least Corona 3502.

 

So, how do we download the plugins?

 

thank you,

Mor from Mars Team



[TOPIC: post.html]
#2

edkayce

[GLOBAL: userInfoPane.html]
edkayce
  • Observer

  • 21 posts
  • Corona SDK

  • hi! Im getting crazy with these corona upgrade! I finished my app in corona 2017 version, i tryied to release at play store but the API 28 stoped me! Since last week im trying to find the solution, but nothing is working! here my corona simulator logout:
  • https://pastebin.com/Z5jaXh9z


[TOPIC: post.html]
#3

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,031 posts
  • Corona Staff

Hello. Native underwent major update as well. I would suggest migrating to new template. It has gradle target 'setupCoronaAppAndPlugins' which would completely integrate plugins and build.settings into the project.

gmHf9vz.png

Basically, Native and Simulator apps are using similar build system now.

Note, that every time you execute setUpCoronaAppAndPlugins, it will rewrite the manifest. Also, see this thread.



[TOPIC: post.html]
#4

mor.maslati

[GLOBAL: userInfoPane.html]
mor.maslati
  • Observer

  • 8 posts
  • Corona SDK

So, a few things that I'm encountering:

 

1. When I clicked "run" on Android Studio it seems that the "setUpCoronaAppAndPlugins" script isn't running. When I ran it by itself it only then seemed to download my plugins.

 

2. Then, I got an error that one of my plugins minimum sdk was 16, and my project was 15. So, I've added:

"minSdkVersion = "16","

to the android portion of build.settings. I ran the app and the "setUpCoronaAppAndPlugins" script, that didn't fix the issue. I had to change the default number from 15 to 16 in the build.gradle.kts file, under coronaMinSdkVersion.

 

3. Now, I'm getting this message when I run the app:

Corona: Developer Error 

App does not target the Google Play store, but includes Google Plays Services.

This is adding unnecessary bloat to your app as Google Play Services depends on the Google Play store.

Please remove Google Play Services from build that do not target Google Play.

 

I'm assuming that I need to target the Play Store, as the message states that I currently do not.

How do I do that?

* Building the app using Corona Simulator works fine, only crashes when reaching our created plugin.

* I also wanted to know how to set the App Name? as we normally set that in the Corona Simulator.

 

Thank you,

Mor from Mars



[TOPIC: post.html]
#5

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,031 posts
  • Corona Staff

MinSdkVersion should be automatically imported in very last version, but target store should be fixed manually. Edit AndroidManifest.xml, change “none” to “google” for store metadata entry.

[TOPIC: post.html]
#6

mor.maslati

[GLOBAL: userInfoPane.html]
mor.maslati
  • Observer

  • 8 posts
  • Corona SDK

That worked! Which is odd.

 

Isn't the rule of thumb is to not change things in the Manifest file, because it will be overridden anyway?

 

Anyway, Thank you.



[TOPIC: post.html]
#7

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,031 posts
  • Corona Staff

setupCoronaAppAndPlugins is to be started manually and it will overwrite manifest. But it’s fine to edit manifest after. And you should run it only when adding/removing plugins.
Problem is, that the value of target store doesn’t come from build.settings.
But I’ll see what I can do.

[TOPIC: post.html]
#8

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 627 posts
  • Corona SDK

Vlads, I'm NOT RUNNING NATIVE, but I'm getting the exact error. How can I update my app?



[TOPIC: post.html]
#9

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,031 posts
  • Corona Staff

I’m not sure what error you’re getting. Please elaborate since topic is very specially about how to setup native.

[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,615 posts
  • Enterprise

In a new thread please...




[topic_controls]
[/topic_controls]