generated from solar2d/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
232 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,10 @@ | ||
# Plugin template | ||
|
||
To make it work for Solar2D plugins directory add your plugin content into the plugins directory. Then in revision, which is minimum requirement to run the plugin. Repository name must me `com.publisher.name-plugin.name` as it would be in build settings `["plugin.name"] = { publisherId = "com.publisher.name"}`. | ||
|
||
For example, `mkdir -p plugins/2020.2600/<platform>a`. | ||
|
||
|
||
Example platforms are: | ||
* `android-kindle` will use `android` if not found | ||
* `android` any android platform | ||
* `macos` only desktop build | ||
* `mac-sim` desktop build or simulator | ||
* `win32` only desktop build | ||
* `win32-sim` desktop build or simulator | ||
* `web` for html5 builds | ||
* `html5` same as `web` | ||
* `iphone` iOS device | ||
* `iphone-sim` iOS simulator | ||
* `tvos` AppleTV device | ||
* `tvos-sim` Apple TV simulator | ||
* `lua` used if no other applicable platform found | ||
# CAS Solar2d plugin | ||
|
||
-- | ||
-- Plugins section | ||
-- | ||
plugins = { | ||
["plugin.cas"] = { | ||
publisherId = "com.cleveradssolution", | ||
}, | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"contact": "[email protected]", | ||
"url": "https://cleveradssolutions.com", | ||
"pluginName": "plugin.cas", | ||
"publisherId": "com.cleveradssolutions" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
repositories { | ||
google() | ||
mavenCentral() | ||
maven { url "https://android-sdk.is.com/" } //IronSource | ||
maven { url "https://aa-sdk.s3-eu-west-1.amazonaws.com/android_repo" } //SuperAwesome | ||
maven { url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea" } //Mintegral | ||
maven { url "https://artifact.bytedance.com/repository/pangle" } //Pangle | ||
maven { url "https://s3.amazonaws.com/smaato-sdk-releases/" } // Smaato | ||
maven { url "https://sdk.tapjoy.com/" } //TapJoy | ||
} | ||
|
||
dependencies { | ||
implementation 'com.cleveradssolutions:cas:2.5.3' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
local metadata = | ||
{ | ||
plugin = | ||
{ | ||
format = 'jar', -- Valid values are 'jar' | ||
manifest = | ||
{ | ||
permissions = {}, | ||
usesPermissions = | ||
{ | ||
}, | ||
usesFeatures = {}, | ||
applicationChildElements = | ||
{ | ||
}, | ||
}, | ||
}, | ||
coronaManifest = { | ||
dependencies = { | ||
}, | ||
}, | ||
} | ||
|
||
return metadata |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local metadata = | ||
{ | ||
plugin = | ||
{ | ||
format = 'staticLibrary', | ||
|
||
-- This is the name without the 'lib' prefix. | ||
-- In this case, the static library is called: libSTATIC_LIB_NAME.a | ||
staticLibs = { 'STATIC_LIB_NAME', }, | ||
|
||
frameworks = {}, | ||
frameworksOptional = {}, | ||
}, | ||
coronaManifest = { | ||
dependencies = { | ||
-- Example dependencies: | ||
--["plugin.memoryBitmap"] = "com.coronalabs", | ||
}, | ||
}, | ||
} | ||
|
||
return metadata |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local metadata = | ||
{ | ||
plugin = | ||
{ | ||
format = 'staticLibrary', | ||
|
||
-- This is the name without the 'lib' prefix. | ||
-- In this case, the static library is called: libSTATIC_LIB_NAME.a | ||
staticLibs = { 'STATIC_LIB_NAME', }, | ||
|
||
frameworks = {}, | ||
frameworksOptional = {}, | ||
}, | ||
coronaManifest = { | ||
dependencies = { | ||
-- Example dependencies: | ||
--["plugin.memoryBitmap"] = "com.coronalabs", | ||
}, | ||
}, | ||
} | ||
|
||
return metadata |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
-- Clever Ads Solution plugin | ||
|
||
local Library = require "CoronaLibrary" | ||
|
||
-- Create library | ||
local lib = Library:new{ name="plugin.cas", publisherId="com.cleveradssolution", version=1 } | ||
|
||
------------------------------------------------------------------------------- | ||
-- BEGIN | ||
------------------------------------------------------------------------------- | ||
|
||
-- This sample implements the following Lua: | ||
-- | ||
-- local cas = require "plugin.cas" | ||
-- cas.init() | ||
-- | ||
|
||
local function showWarning(functionName) | ||
print( functionName .. " WARNING: The Clever Ads Solution plugin is only supported on Android & iOS devices. Please build for device") | ||
end | ||
|
||
function lib.init() | ||
showWarning("cas.init()") | ||
end | ||
|
||
function lib.validateIntegration() | ||
showWarning("cas.validateIntegration()") | ||
end | ||
|
||
function lib.setDebugMode() | ||
showWarning("cas.init()") | ||
end | ||
|
||
function lib.isAdReady() | ||
showWarning("cas.isAdReady()") | ||
end | ||
|
||
function lib.setBannerPosition() | ||
showWarning("cas.setBannerPosition()") | ||
end | ||
|
||
function lib.setBannerSize() | ||
showWarning("cas.setBannerSize()") | ||
end | ||
|
||
function lib.showBanner() | ||
showWarning("cas.showBanner()") | ||
end | ||
|
||
function lib.hideBanner() | ||
showWarning("cas.hideBanner()") | ||
end | ||
|
||
function lib.showInterstitial() | ||
showWarning("cas.showInterstitial()") | ||
end | ||
|
||
function lib.showRewarded() | ||
showWarning("cas.showRewarded()") | ||
end | ||
|
||
------------------------------------------------------------------------------- | ||
-- END | ||
------------------------------------------------------------------------------- | ||
|
||
-- Return an instance | ||
return lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
-- Clever Ads Solution plugin | ||
|
||
local Library = require "CoronaLibrary" | ||
|
||
-- Create library | ||
local lib = Library:new{ name="plugin.cas", publisherId="com.cleveradssolution", version=1 } | ||
|
||
------------------------------------------------------------------------------- | ||
-- BEGIN | ||
------------------------------------------------------------------------------- | ||
|
||
-- This sample implements the following Lua: | ||
-- | ||
-- local cas = require "plugin.cas" | ||
-- cas.init() | ||
-- | ||
|
||
local function showWarning(functionName) | ||
print( functionName .. " WARNING: The Clever Ads Solution plugin is only supported on Android & iOS devices. Please build for device") | ||
end | ||
|
||
function lib.init() | ||
showWarning("cas.init()") | ||
end | ||
|
||
function lib.validateIntegration() | ||
showWarning("cas.validateIntegration()") | ||
end | ||
|
||
function lib.setDebugMode() | ||
showWarning("cas.init()") | ||
end | ||
|
||
function lib.isAdReady() | ||
showWarning("cas.isAdReady()") | ||
end | ||
|
||
function lib.setBannerPosition() | ||
showWarning("cas.setBannerPosition()") | ||
end | ||
|
||
function lib.setBannerSize() | ||
showWarning("cas.setBannerSize()") | ||
end | ||
|
||
function lib.showBanner() | ||
showWarning("cas.showBanner()") | ||
end | ||
|
||
function lib.hideBanner() | ||
showWarning("cas.hideBanner()") | ||
end | ||
|
||
function lib.showInterstitial() | ||
showWarning("cas.showInterstitial()") | ||
end | ||
|
||
function lib.showRewarded() | ||
showWarning("cas.showRewarded()") | ||
end | ||
|
||
------------------------------------------------------------------------------- | ||
-- END | ||
------------------------------------------------------------------------------- | ||
|
||
-- Return an instance | ||
return lib |