1. Tested the "ExportedToAndroidStudio" project downloaded GitHub in Android Studio. (worked OK)
2. Installed Gideros version 2016.12.1 (latest version from https://github.com/gideros/gideros/releases)
3. Exported my project to Android Studio using Gideros v2016.12.1.
4. Set the following in the the app build.gradle:
a) minSdkVersion 15
b) targetSdkVersion 23
5. Tested my project in Android Studio. (worked OK)
6. Updated AndroidManifest.xml using "ExportedToAndroidStudio" as a refernce.
7. Add the following to SpeedyGramActivity:
System.loadLibrary("ads");
static private String[] externalClasses = {
//Line below is a marker for plugin insertion scripts. Do not remove or change
//GIDEROS-EXTERNAL-CLASS//
"com.giderosmobile.android.plugins.ads.Ads",
null
};
8. Copied files from "ExportedToAndroidStudio\app\libs to:
D:\gideros-exports\2016-12-1\SpeedyGram\app\libs
Directory of D:\gideros-exports\2016-12-1\SpeedyGram\app\libs
2016-10-14 10:40 PM 232,400 applovin-6.3.0.jar
2016-10-14 10:40 PM 3,948,242 appodeal-1.15.7.jar
2016-10-14 10:40 PM 415,698 chartboost-6.5.1.jar
2016-10-14 10:40 PM 255,217 flurry-analytics-6.5.0.jar
2017-01-09 01:55 AM 67,933 gideros.jar
2016-10-14 10:40 PM 389,513 my-target-4.5.10.jar
2016-10-14 10:40 PM 344,234 unity-ads-2.0.4.jar
2016-10-14 10:40 PM 352,642 yandex-metrica-2.41.jar
9. Added the the following file dependencies to the app gradle.build (this is NOT in your instructions):
compile files('libs/my-target-4.5.10.jar')
compile files('libs/yandex-metrica-2.41.jar')
compile files('libs/chartboost-6.5.1.jar')
compile files('libs/unity-ads-2.0.4.jar')
compile files('libs/applovin-6.3.0.jar')
compile files('libs/appodeal-1.15.7.jar')
compile files('libs/flurry-analytics-6.5.0.jar')
compile 'com.google.android.gms:play-services-ads:9.6.1'
compile 'com.google.android.gms:play-services-location:9.6.1'
compile project(":cheetah-mobile-3.4.7")
10. Copied plugin folder and all sub-folders/files from ExportedToAndroidStudio to my project:
to: SpeedyGram\app\src\main\java\com\giderosmobile\android folder
Directory of D:\gideros-exports\2016-12-1\SpeedyGram\app\src\main\java\com\giderosmobile\android\plugins\ads
2017-02-03 01:43 PM
.
2017-02-03 01:43 PM ..
2016-10-14 10:40 PM 14,233 Ads.java
2016-10-14 10:40 PM 692 AdsInterface.java
2016-10-14 10:40 PM 2,848 AdsManager.java
2016-10-14 10:40 PM 1,434 AdsState.java
2016-10-14 10:40 PM 163 AdsStateChangeListener.java
2017-02-03 04:03 PM frameworks
5 File(s) 19,370 bytes
Directory of D:\gideros-exports\2016-12-1\SpeedyGram\app\src\main\java\com\giderosmobile\android\plugins\ads\frameworks
2017-02-03 04:03 PM .
2017-02-03 04:03 PM ..
2016-10-14 10:40 PM 6,552 AdsAppodeal.java
1 File(s) 6,552 bytes
Total Files Listed:
1 File(s) 6,552 bytes
11. I got a build error at this point, so I imported cheetah-mobile-3.4.7 arr file (NOT in Appodeal instructions)
12. Problem was resolved.
13. Added the following to AndroidManifest: (NOT in Appodeal instructions)
14. Added the admob adapter to my admob account for speedy banner and interstitials.
15. Added these globals to my Lua file (Appodeal website and the demo Gideros project have different values)
-- AppoDeal vars - from their website
--INTERSTITIAL = 1
--VIDEO = 2
--BANNER = 4
--BANNER_BOTTOM = 8
--BANNER_TOP = 16
--NATIVE_AD = 32
--REWARDED_VIDEO = 128
--ALL = 191
-- AppoDeal vars - from the demo project
NONE = 0;
INTERSTITIAL = 1;
SKIPPABLE_VIDEO = 2;
BANNER = 4;
BANNER_BOTTOM = 8;
BANNER_TOP = 16;
REWARDED_VIDEO = 128;
NON_SKIPPABLE_VIDEO = 128;
ALL = 159;
16. Added this code to my project:
require('bit')
require('ads')
self.appodeal = Ads.new("appodeal")
self.appodeal:setKey("fee50c333ff3825fd6ad6d38cff78154de3025546d47a84f", ALL, "false", "false", "false", "true", "false")
--self.appodeal:setKey("f47c5b1dbbe336589e752efdeccb041e355bd5cac857834a", ALL, "false")
17. All seems to work OK.