Open JanC opened 7 years ago
Is there a solution for this? I believe I am running into the same issue.
Hi,
I want to download the SDK from repository using credentials. If I use Native development, i can create separate pod file and can keep URL as well as Credentials. Here if I use private POD file in plugin.xml how can i provide URL and credential?
Please help me
Thanks Mani
How do you include it when doing native development? Depending on how it's done I might be able to add support for it. But if its private how would anyone using your plugin make use of it? It probably makes more sense to specify the information as a variable or access it from an environment variable if its sensitive data like a password.
On Tue, Apr 9, 2019, 10:26 AM maniveltvl notifications@github.com wrote:
Hi,
I want to download the SDK from repository with credentials. If I use Native development, i can create separate pod file and can keep URL as well as Credentials. Here if I use private POD file in plugin.xml how can i provide URL and credential?
Please help me
Thanks Mani
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blakgeek/cordova-plugin-cocoapods-support/issues/35#issuecomment-481274977, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyU3ncXrKXJxGK88g2we6LpBbsAn7KKks5vfKMcgaJpZM4MfAtK .
provide URL and credential?
Hi Team, Thanks for the quick reply. @maniveltvl - He is my Team Lead. So, am replying on behalf of him We are trying to create a Custom Cordova Plugin where we are trying to download ios SDK via cocoaPods Here is the steps that we had used in Native development to access Private repository by credentials
Created a Podfile as follows
platform :ios, '12.0' use_frameworks! plugin 'cocoapods-art', :sources => ['Source Name'] source 'Source URL'
target 'ProjectTiltle' do pod 'PODNAME', '~> PODVersion' end
Created a .netrc file in home directory of MacOS which has URL and User credential details. .netrc file as follows machine URL login USERNAME password PASSWORD machine URL login USERNAME password PASSWORD
Then Pod installation has been done by sudo gem in Terminal. Automatically Pod file will download the library by accessing .netrc files for credentials and it will download the library and its dependency files
So, we are using Private repository in our app only not in Public access Could you please help us how to achieve this same thing by this framework in Custom Cordova project? Advance thanks for any help. Have a great day!
Hi Team, Thanks for the quick reply. Sorry, we couldn't provide URL and Credential because of Client Confidentiality Agreement. Could you please help us by accessing some other Private Repository(In case URL and credential available with you) which follows the same procedure? Or Is there any other workaround is possible? Advance thanks for any help. Have a great day!
provide URL and credential?
Hi Team, Thanks for the quick reply. @maniveltvl - He is my Team Lead. So, am replying on behalf of him We are trying to create a Custom Cordova Plugin where we are trying to download ios SDK via cocoaPods Here is the steps that we had used in Native development to access Private repository by credentials
- Created a Podfile as follows
platform :ios, '12.0' use_frameworks! plugin 'cocoapods-art', :sources => ['Source Name'] source 'Source URL'
target 'ProjectTiltle' do pod 'PODNAME', '~> PODVersion' end
- Created a .netrc file in home directory of MacOS which has URL and User credential details. .netrc file as follows machine URL login USERNAME password PASSWORD machine URL login USERNAME password PASSWORD
- Then Pod installation has been done by sudo gem in Terminal. Automatically Pod file will download the library by accessing .netrc files for credentials and it will download the library and its dependency files
So, we are using Private repository in our app only not in Public access Could you please help us how to achieve this same thing by this framework in Custom Cordova project? Advance thanks for any help. Have a great day!
Hi, @blakgeek
We are looking for your reply on the above query. Could you please help us?
Thanks Manivel
Hi, when I add a private podspec using
The pod installation fails because the podspecs are not updated:
It can be manually fixed by running
pod repo update
but it has to be run in the generated xcode project folder which is not convenient.