How to upload iOS Unity build APP to the App Store

1. GO TO https://developer.apple.com/account/ios/identifier/bundle
2. GENERATE APP ID
3. GENERATE PROVISIONING PROFILE (ALL)

3.1 DOWNLOAD AND EXECUTE THE FILE.
4. GO TO THE YOUR APP STORE AND CREATE THE NEW APP WITH THE SAME PACKAGE / BUNDLE LIKE YOU DID IN THE GENERATE APP ID.

https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app

5.DOWLOAD the GoogleMobileAds.framework from here https://developers.google.com/admob/ios/download

5.1 PUT THE GoogleMobileAds.framework inside the LIBRARIES/PLUGINS/IOS folder of your project.

6. Into your xcode project GENERAL -> LINKED FRAMEWORKS AND LIBRARIES ADD A NEW PATH TO the GoogleMobileAds.framework of the step before.
7. GO TO BUILD SETTINGS IN XCODE and set to YES Enable modules (C and objective -C)
8. ALANYZE (optional i think with archive do the same)
9. ARCHIVE / UPLOAD TO THE APP STORE

Add Admob to Unity

https://github.com/jjjuande/EasyGoogleMobileAds

Install Admob

Install EasyMobileAds library

EasyGoogleMobileAds.GetInterstitialManager().PrepareInterstitial("ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX");

EasyGoogleMobileAds.GetInterstitialManager().ShowInterstitial();

How to resize Virtual Box machine

1. Shut down your virtual machine and create security backup of your virtual machine .vdi
2. Open the cmd console and use the following commant to your .vdi path and the total size you want for your virtual machine.

C:\Archivos de programa\oracle\VirtualBox>vboxmanage modifyhd --resize 55000 "D:\MAY_A\MAY_A.vdi

3. Enable your new space on your vm

3.1 Open your virtual machine
3.2 Press Windows + R buttons to open this window and type diskmgmt.msc

3.3 Right click on your old disk volume and press extend

3.4 Select disk and press next. By default will increase all the space you set by cmd.

Upload repository / Android library to jitpack.io via github

REFERENCE LINK

https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0

1) In the project

buildscript {
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' // Add this line


2) In the library gradle

apply plugin: 'com.github.dcendents.android-maven'

group='com.github.YourUsername'

3)in the android studio console project path

./gradlew install

git tag 1.0
git push --tags

4) go to your github account , your project and go to releases and create a new one with the same tag you push before

5) go to https://jitpack.io/ search your github path Fespuna/AndroidEasyRate and choose your version in this case 1.0

6) use your repository / library in any project using the methods below

IMPORTANT PUT THIS LINES ON ALLPROJECTS INSIDE THRE PROJECT GRADLE

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

dependencies {
implementation 'com.github.Fespuna:AndroidEasyRate:1.0'
}

followed tutorial:
https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0

Volley invalidate SSL request error Android

try {
TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {
X509Certificate[] myTrustedAnchors = new X509Certificate[0];
return myTrustedAnchors;
}

@Override
public void checkClientTrusted(X509Certificate[] certs, String authType) {}

@Override
public void checkServerTrusted(X509Certificate[] certs, String authType) {}
}
};

SSLContext sc = SSLContext.getInstance("SSL");
sc.init(null, trustAllCerts, new SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
@Override
public boolean verify(String arg0, SSLSession arg1) {
return true;
}
});
} catch (Exception e) {
}

Angular modal pass data to controller and view

ANGULAR SCRIPT

var $ctrlb = this;

$ctrl.edit = function (item, size, parentSelector) {

$scope.app_data={};
$scope.app_data.ad_name = item.ad_name;
$scope.app_data.ad_package = item.ad_package;
$scope.app_data.ad_description = item.ad_description;
$scope.app_data.ad_icon = item.ad_icon;

var parentElem = parentSelector ?
angular.element($document[0].querySelector('.modal-demo ' + parentSelector)) : undefined;
var modalInstance = $uibModal.open({
scope: $scope,
animation: $ctrl.animationsEnabled,
ariaLabelledBy: 'modal-title',
ariaDescribedBy: 'modal-body',
templateUrl: 'editadmodal.html',
controller: 'editad',
controllerAs: '$ctrlb',
size: size,
appendTo: parentElem,
resolve: {

app_data: function () {
return $scope.app_data;
}
}
});

modalInstance.result.then(function (selectedItem) {
$ctrl.selected = selectedItem;
}, function () {
// $log.info('Modal dismissed at: ' + new Date());
});
}

HTML

CONTROLLER

 app.controller('editad', function ($scope, $uibModalInstance, $http, $cookies, Upload, $window) {

$scope.ok = function () {

alert($scope.editad.appname);

$uibModalInstance.dismiss('cancel');

}
$scope.cancel = function () {
$uibModalInstance.dismiss('cancel');
};
});