Expo eas retrieve app archive download url - expo

After migrating from expo-cli to eas-cli, I make the app build by using command eas build -p android.
Then, in order to be able to use it within my custom CI, I get the app archive download url. I used to use expo url:apk. This command is not working anymore, since I make the build with eas.
Does anyone know how to get the download url using eas?

eas build:list --json --limit=1 --platform=android | jq '.[0].artifacts.buildUrl'

Related

Expo EAS Submit, where to store service account key

I am looking into using EAS (expo Application Services) to submit a build to the Google Play Store. As per the docs, a serviceAccountKeyPath is required:
https://docs.expo.dev/submit/eas-json/#serviceaccountkeypath
I have successfully submitted a build by running eas submit -p android and entering the path to the JSON service account key when prompted.
As this is sensitive information, I don't want it to be added to my git repo. Should I just add it to my .gitignore, or is there a better way e.g. store it within my expo account somehow?
You only need to provide serviceAccountKeyPath the first time you run eas submit -p android for an specific project. You have to do manually the first time. The next you run eas submit expo takes the previus provided file.

Use eas-cli to set up Android Keystore non-interactively from command line?

Is it possible to use eas-cli to set up the Android keystore for a project non-interactively from the command line?
Adding -non-interactive to eas build --platform android fails if I haven't previously interactively set up the Android keystore.
e.g. I want some command like eas build --platform android --non-interactive --initialize-keystore or eas credentials --non-interactive --initialize-keystore
(For context: for a project I'm working on, I want to be able to create and build new Expo automatically)

How to generate Apk file with Expo's Manage Work flow

I have project with expo managed work flow , my problem is how to generate APK , please help me
This command you can use to generate APK.
expo build:android
To generate an Android APK you have to run the command:
expo build:android
Then Expo will give you an URL to follow your build status, normally it takes like an hour depending on your projects size and expo's queue, and after the build is done you can download it from that URL or on your Expo Build Dashboard expo.

How do I access the AWS PHP SDK on EC2?

I have gotten to know that the AWS SDK comes with the default operating system installed on AWS EC2 when provisioned via Elastic Beanstalk.
I would like to know if I can access the PHP version of the SDK.
Or does it need to be installed separately.
Thank you.
You have to Install it using phar or composer , Please Refer AWS Documentation for this:
To use Composer with the AWS SDK for PHP:
Open a terminal window and navigate to the directory where your
project is stored. Composer is installed on a per-project basis.
Download and install Composer in your project directory. If you have
curl installed, you can use the following command:
curl -sS https://getcomposer.org/installer | php
Create a file at the root level of your project called composer.json
and add the following dependency for the AWS PHP SDK:
{
"require": {
"aws/aws-sdk-php": "2.*"
}
}
Install the dependencies by running Composer's install command:
php composer.phar install
This will create a vendor directory in your project with the required libraries and an autoloader script used to load them for your project.
Require Composer's autoloader by adding the following line to your
code's bootstrap process (typically in index.php):
require '/path/to/sdk/vendor/autoload.php';
Your code is now ready to use the AWS SDK for PHP!

AWS cognito user authentication with laravel

We are trying to implement Amazon Cognito services for user authentication with our built in laravel 5.1 application. We are looking for a composer package for laravel 5.1 that allow to Amazon Cognito User Pools, registering user's into User Pools, password resets etc.
You can use AWS SDK for PHP using Composer. See the following quoted steps of this guide.
Open a terminal window and navigate to the directory where your project is stored. Composer is installed on a per-project basis.
Download and install Composer in your project directory. If you have curl installed, you can use the following command:
curl -sS https://getcomposer.org/installer | php
When the installation script finishes, a composer.phar file will be created in the directory where you ran the installer.
Create a file at the root level of your project called composer.json and add the following dependency for the AWS PHP SDK:
{
"require": {
"aws/aws-sdk-php": "2.*"
}
}
Install the dependencies by running Composer's install command:
php composer.phar install
This will create a vendor directory in your project with the required libraries and an autoloader script used to load them for your
project.
Require Composer's autoloader by adding the following line to your code's bootstrap process (typically in index.php):
require '/path/to/sdk/vendor/autoload.php';
Your code is now ready to use the AWS SDK for PHP!
AWS has added Cognito User Pools management in Version 3.32.7. You may have a look at AWS Service Provider for Laravel as well for more information.
This question is quite old, but for someone looking for such package check this out, I think this is what you need
https://github.com/black-bits/laravel-cognito-auth