abdurrahmanekr / bana-istedigini-sor

Yeni paylaştığım yazılardan haberdar olmak için bloguma abone olun:
https://avarekodcu.com
12 stars 1 forks source link

Developer Modu Kapatma #43

Closed MuhammetAdamoglu closed 6 years ago

MuhammetAdamoglu commented 6 years ago

Merhabalar, react native ile proje geliştirmekteyim ve genellikle sizi takip etmekteyim. Projemi tamamladım ancak geliştirici modundan çıkamadım, telefonu sallayınca karşıma dev menü geliyor veya could not connect hatası alıyorum. Bunları nasıl kapatıp uygulamayı hazır hale getiririm. Saygılar

abdurrahmanekr commented 6 years ago

Telefonu sallayınca dediğinize göre ios için diyorsunuz.En basit şekliyle bu komutla yapabilirsiniz:

react-native run-ios --configuration Release

Olmadıysa

XCode üzerinden projeyi açıp Product → Scheme → Edit Scheme ekranından Build Configuration değerini release yapın. ardından AppDelegate.m dosyasındaki jsCodeLocation değerini şununla değiştirin (derleme aşamasında bu main.jsbundle dosyası olşumuştur onu xcode'a referans etmelisiniz):

jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

Eğer main.jsbundle dosyasını oluşturamadıysanız buraya göz atın: https://medium.com/react-native-development/deploying-a-react-native-app-for-ios-pt-1-a79dfd15acb8

Daha detaylı bilgi istiyorsanız dokümanından faydalanmanızı öneriyorum. İyi çalışmalar

MuhammetAdamoglu commented 6 years ago

Aslında android için soruyordum, sallama olayı android de de var,eksik bilgi verdiğim için kusura bakmayın.

react-native run-android --configuration Release kodu işe yararmı?

2018-04-09 19:35 GMT+03:00 Avare Kodcu notifications@github.com:

Closed #43 https://github.com/abdurrahmanekr/bana-istedigini-sor/issues/43.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abdurrahmanekr/bana-istedigini-sor/issues/43#event-1564267895, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah0OnfkjCxvz80UtEdndJEsp0yqrN0Chks5tm43qgaJpZM4TMuvs .

abdurrahmanekr commented 6 years ago

Hayır onun komutu farklı. Size belirttiğim dokümandan aldım bende orada da dediği gibi android için şu komutu çalıştırmalısınız:

react-native run-android --variant=release

Eğer o da olmazsa şöyle yapabilirsiniz:

cd android && ./gradlew assembleRelease
MuhammetAdamoglu commented 6 years ago

android için denediğimde unknow option '--configuration' hatası aldım

9 Nis 2018 Pzt 19:39 tarihinde muhammet adamoglu muhammetadamoglu@gmail.com şunu yazdı:

Aslında android için soruyordum, sallama olayı android de de var,eksik bilgi verdiğim için kusura bakmayın.

react-native run-android --configuration Release kodu işe yararmı?

2018-04-09 19:35 GMT+03:00 Avare Kodcu notifications@github.com:

Closed #43 https://github.com/abdurrahmanekr/bana-istedigini-sor/issues/43.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abdurrahmanekr/bana-istedigini-sor/issues/43#event-1564267895, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah0OnfkjCxvz80UtEdndJEsp0yqrN0Chks5tm43qgaJpZM4TMuvs .

MuhammetAdamoglu commented 6 years ago

bu kodu denemiştim ama sürekli bu hatayı alıyorum

9 Nis 2018 Pzt 19:42 tarihinde Avare Kodcu notifications@github.com şunu yazdı:

Hayır onun komutu farklı. Size belirttiğim dokümandan aldım bende orada da dediği gibi android için şu komutu çalıştırmalısınız:

react-native run-android --variant=release

Eğer o da olmazsa şöyle yapabilirsiniz:

cd android && ./gradlew assembleRelease

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abdurrahmanekr/bana-istedigini-sor/issues/43#issuecomment-379816695, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah0OnV8twcyYXSkFlq3XBl1slk7e6nfUks5tm49rgaJpZM4TMuvs .

abdurrahmanekr commented 6 years ago

Aldığınız hatayı göremiyorum

MuhammetAdamoglu commented 6 years ago

9 Nisan 2018 19:53 tarihinde Avare Kodcu notifications@github.com yazdı:

Aldığınız hatayı göremiyorum

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abdurrahmanekr/bana-istedigini-sor/issues/43#issuecomment-379819895, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah0Ond4hh6w7PHn7loqClPFGtD4nsuNMks5tm5HugaJpZM4TMuvs .

abdurrahmanekr commented 6 years ago

Hmm, bir keystore dosyası oluşturmalısınız ve bunu gradle.properties dosyasında belirtmelisiniz. Bu tür adımları buradan öğrenebilirsiniz.

MuhammetAdamoglu commented 6 years ago

Bugün app-release.apk yı çıkarttım, develop modundan çıktı yani. Her şey için çok teşekkür ederim. Saygılar..

9 Nisan 2018 21:14 tarihinde Avare Kodcu notifications@github.com yazdı:

Hmm, bir keystore dosyası oluşturmalısınız ve bunu gradle.properties dosyasında belirtmelisiniz. Bu tür adımları buradan https://facebook.github.io/react-native/docs/signed-apk-android.html öğrenebilirsiniz.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abdurrahmanekr/bana-istedigini-sor/issues/43#issuecomment-379844323, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah0OnUT_YDOzbHMcvEtji8QK54DLRLoHks5tm6TpgaJpZM4TMuvs .

abdurrahmanekr commented 6 years ago

Sorununuzu çözdüğünüz için sevindim. İyi çalışmalar :)