Current Path : /www/sites/www.coderblog.in/index/
Url:

NameSizeOptions
App_DataDIRnone
backupDIRnone
cgi-binDIRnone
cssDIRnone
imgDIRnone
metaDIRnone
wp-adminDIRnone
wp-contentDIRnone
wp-includesDIRnone
.htaccess3.35 KBDEL
.htaccess.bk1.84 KBDEL
404.html0.13 KBDEL
ads.txt1.07 KBDEL
favicon.ico2.19 KBDEL
index.php0.40 KBDEL
license.txt19.44 KBDEL
php.ini0.58 KBDEL
readme.html7.25 KBDEL
service.php0.00 KBDEL
web.config2.87 KBDEL
wp-activate.php7.21 KBDEL
wp-blog-header.php1.21 KBDEL
wp-comments-post.php2.27 KBDEL
wp-config-sample.php3.26 KBDEL
wp-config.php2.98 KBDEL
wp-cron.php5.49 KBDEL
wp-links-opml.php2.44 KBDEL
wp-load.php3.84 KBDEL
wp-login.php50.21 KBDEL
wp-mail.php8.52 KBDEL
wp-settings.php29.38 KBDEL
wp-signup.php33.71 KBDEL
wp-trackback.php4.98 KBDEL
xmlrpc.php3.13 KBDEL
android – Coder Blog https://www.coderblog.in Join the coding revolution! Learn, share, and grow together! Sat, 27 Apr 2019 01:22:38 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.1 React Native – Run the app in Genymotion Android emulator https://www.coderblog.in/2019/04/react-native-run-the-app-in-genymotion-android-emulator/ https://www.coderblog.in/2019/04/react-native-run-the-app-in-genymotion-android-emulator/#comments Sat, 27 Apr 2019 00:14:40 +0000 https://www.coderblog.in/?p=187 I am trying to use React Native these days, it works fine in iOS simulator, but when I

<p>The post React Native – Run the app in Genymotion Android emulator first appeared on Coder Blog.</p>

]]>
I am trying to use React Native these days, it works fine in iOS simulator, but when I try to run the app in android emulator, I encountered some problems!

1.The Java SDK issue.

I have developed the android app with flutter before, so I also have installed the android SDK, and I suppose that will be smooth in RN right now, but when I execute below command to try to run the android:

react-native run-android

I got the error that missed the Java SDK, and I need to go to Java website for download it.

2.But after installed the Java SDK, I got another error.

It also need to set the [su_label type=”important”]JAVA_HOME[/su_label] and [su_label type=”important”]ANDROID_HOME[/su_label], I use MacOS, so that’s need to set in the [su_label type=”info”]~/.bash_profile[/su_label] file as below:

export JAVA_HOME=$(/usr/libexec/java_home)
export ANDROID_HOME=/Volumes/SourceCodes/androidSDK/android-sdk-macosx

But the problem still not finish… 😨

3. When everything are ok, I still got below error

This error is very strange, I spend many of times for that, fortunately, I found the solution:

1)Create an [su_label type=”important”]assets[/su_label] folder in below

yourApp_root/anddroid/app/src/main

2)Execute below command

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

after that it will auto generate the [su_label type=”info”]index.android.bundle[/su_label] file in assets folder, and now execute below command for run the android

react-native run-android

The app can be run successfully😁

Loading

<p>The post React Native – Run the app in Genymotion Android emulator first appeared on Coder Blog.</p>

]]>
https://www.coderblog.in/2019/04/react-native-run-the-app-in-genymotion-android-emulator/feed/ 11
How to release an iOS app for testing in Flutter https://www.coderblog.in/2019/03/how-to-release-an-ios-app-for-testing-in-flutter/ https://www.coderblog.in/2019/03/how-to-release-an-ios-app-for-testing-in-flutter/#comments Sat, 30 Mar 2019 16:14:04 +0000 https://www.coderblog.in/?p=146 Flutter allows you to build beautiful native apps on iOS and Android from a single codebase. It is

<p>The post How to release an iOS app for testing in Flutter first appeared on Coder Blog.</p>

]]>
Flutter allows you to build beautiful native apps on iOS and Android from a single codebase. It is an open-source mobile application development framework created by Google .

You can easy to create the cross platform apps with Flutter, because it already include most of the UI elements what you need. As my point, I just think the UI layout is the the difficult for create an app, especially for cross platform app, you need to handle difference layout in difference devices, but Flutter will let it easier.

If you want to release your app, for android, you just need to use below command:

flutter build apk

and then you will get an apk file, just send to client for testing and is ok!

But for iOS, it will be more complex, please find below [su_label type=”warning”]normal[/su_label] steps for release a testing:

  • Run below command for build the project
  • Open the xcode project in /iOS folder, should be the Runner.xcodeproj xcode project file
  • For release the app, you need to use Archive the project
  • If everything is ok, you will need to generate the ipa file and upload to Testflight or other testing service website for your client testing.

Ok, the above steps just for the normal case, but I just have some problems when I archive the project in xcode as below 🙁

I have tried many of ways before but still can’t fix it. And maybe you will also get another error in this step, I don’t know why, but I just found a solution, the problem is you can’t open the iOS project by double click directly , you should use below command to open it.

Go to you flutter project’s iOS folder, and run below:

open -a Xcode .

In this time, you will can build or archive in xcode!

And next you can distribute your app as below:

Select the Ad Hoc for release for testing

If your iOS certificate is ok, you will generate the ipa file in the end 😄

Loading

<p>The post How to release an iOS app for testing in Flutter first appeared on Coder Blog.</p>

]]>
https://www.coderblog.in/2019/03/how-to-release-an-ios-app-for-testing-in-flutter/feed/ 9