|
Post by Dmitry Soldatenkov on Sept 8, 2018 3:23:04 GMT
|
|
|
Post by egghead on Sept 8, 2018 4:57:43 GMT
OK, my default bundle_decrypter helper function when the project was created was looking funny, so I replaced its contents with clean code and now it buillds. Now ready to decrypt...
|
|
|
Post by egghead on Sept 8, 2018 5:22:51 GMT
rhoconfig.txt, app_manifest.txt also encrypted. Great
|
|
|
Post by egghead on Sept 8, 2018 10:45:45 GMT
OK, my default bundle_decrypter helper function when the project was created was looking funny, so I replaced its contents with clean code and now it buillds. Now ready to decrypt... Alas, it didn't seem to decrypt. App launches OK in Rhosimulator, but the data isn't populated. APK installs in device but crashes on startup. In application.rb I have : catalog = CryptoTest.find(:all) if catalog.empty? filepath = File.join(Rho::RhoApplication::get_model_path('app','CryptoTest'), 'state.txt.encrypted') decrypted_text = BundleDecrypter.decrypt_file(filepath, "aH9D52xfJJ89xgi3gGWTNmO0PU0rV8aHmm/P4tGHApM=") jsonContent = Rho::JSON.parse(decrypted_text) jsonContent.each { |json| CryptoTest.create("state_code" => json['state_code'], "state" => json['state'], "website" => json['website']) } What did I do wrong?
|
|
|
Post by Dmitry Soldatenkov on Sept 8, 2018 13:12:28 GMT
|
|
|
Post by egghead on Sept 10, 2018 4:00:59 GMT
OK. So what do I do at my end?
|
|
|
Post by Dmitry Soldatenkov on Sept 10, 2018 4:47:53 GMT
?
|
|
|
Post by egghead on Sept 10, 2018 4:49:08 GMT
I mean how to apply the fix?
|
|
|
Post by Dmitry Soldatenkov on Sept 10, 2018 5:09:41 GMT
1. wait next realease 2. apply by self manually - it is simple change
|
|
|
Post by egghead on Sept 10, 2018 5:12:30 GMT
OK. Thanks. Another silly question. Maybe weekend hangover Sorry
|
|
|
Post by egghead on Sept 21, 2018 15:42:50 GMT
I changed jake.rb accordingly, and this is my application.rb snippet : ######### Crypto Start Code ########## if catalog.empty? filepath = File.join(Rho::RhoApplication::get_model_path('app','CryptoTest'), 'state.txt'+'.encrypted') decrypted_text = BundleDecrypter.decrypt_file(filepath, "aH9D52xfJJ89xgi3gGWTNmO0PU0rV8aHmm/P4tGHApM=") jsonContent = Rho::JSON.parse(decrypted_text) jsonContent.each { |json| State.create("state_code" => json['state_code'], "state" => json['state'], "website" => json['website']) } ######### Crypto End Code ########## Unfortunately, it didn't load any data into the model on application start. I did not encrypt the model.
|
|
|
Post by Dmitry Soldatenkov on Sept 21, 2018 15:58:36 GMT
Prepare complete test application and send to me: dsoldatenkov@tau-technologies.com Describe expected behavior.
|
|
|
Post by egghead on Sept 21, 2018 17:51:04 GMT
Email bounced. I shared it in OneDrive. Hope you got the intimation email
|
|
|
Post by Dmitry Soldatenkov on Sept 22, 2018 3:15:34 GMT
1. bundle encryption works only on iOS and Adnroid ! Not on RhoSimulator ! 2. you should add "openssl" extension to your build.yml ! 3. you should add "require 'app/helpers/bundle_decrypter' to begin of application.rb !
after that changes your application is worked fine on iOS and Android
|
|
|
Post by egghead on Sept 22, 2018 4:18:19 GMT
1. bundle encryption works only on iOS and Adnroid ! Not on RhoSimulator ! 2. you should add "openssl" extension to your build.yml ! 3. you should add "require 'app/helpers/bundle_decrypter' to begin of application.rb ! after that changes your application is worked fine on iOS and Android Yes, I tested on Android device. Yes, added openssl, digest to build.yml Will add bundle_decrypter to application. rb and test today. Will keep you informed.
|
|