2025-10-22
This commit is contained in:
parent
ff5e105937
commit
c60341a350
4
build.py
4
build.py
@ -13,12 +13,12 @@ def build_json(json_path):
|
||||
build_topon(json_path)
|
||||
|
||||
def build_max(json_path):
|
||||
build_path = "/Users/mac/codes/ios/empty_topon/max"
|
||||
build_path = "/Volumes/mfast/workspaces/projects/ios/build-ipa/max"
|
||||
build_script(build_path, json_path, "playb-max.ipa")
|
||||
|
||||
|
||||
def build_topon(json_path):
|
||||
build_path = "/Users/mac/codes/ios/empty_topon/topon"
|
||||
build_path = "/Volumes/mfast/workspaces/projects/ios/build-ipa/topon"
|
||||
build_script(build_path, json_path, "playb-topon.ipa")
|
||||
|
||||
def build_script(build_path, json_path, ipa_name):
|
||||
|
||||
@ -86,7 +86,7 @@ def build(ad_key, ad_ids, app_display_name,app_bundle_id,app_version,app_icon):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app_icon = "/Users/mac/codes/ios/empty_topon/ipas/lux/SpeedyColor/appicon.png"
|
||||
app_icon = "/Volumes/mfast/workspaces/projects/ios/lux-ipas/SpeedyColor/appicon.png"
|
||||
if len(sys.argv) < 2:
|
||||
ad_key = "Dd37BrtbLDlaeiDhxVzaDbsI67Mc1h5lAGIinzo4v2IbkpufdtVmT5Tag9O3aGexzkS4txEPigaEexktewANIk"
|
||||
ad_ids = ["7468dbe129ab2afe","7b61678bf643a84a","c6b7477edc2aff7e","28fd7967e71c9203"]
|
||||
|
||||
@ -19,9 +19,10 @@ typedef void (^SendCallback) (NSString *msg);
|
||||
@property (nonatomic, copy) SendCallback hintBlock;
|
||||
|
||||
|
||||
+(instancetype)sharedInstance;
|
||||
|
||||
- (void) onShow: (NSDictionary *)data;
|
||||
- (void) onEnd: (NSDictionary *)data;
|
||||
- (void) close;
|
||||
@end
|
||||
|
||||
#endif /* XUDPClient_h */
|
||||
|
||||
@ -22,15 +22,7 @@
|
||||
|
||||
|
||||
@implementation XUDPClient
|
||||
+(instancetype)sharedInstance
|
||||
{
|
||||
static XUDPClient* _sharedInstance = nil;
|
||||
static dispatch_once_t oncePredicate;
|
||||
dispatch_once (&oncePredicate, ^{
|
||||
_sharedInstance = [[XUDPClient alloc] init];
|
||||
});
|
||||
return _sharedInstance;
|
||||
}
|
||||
|
||||
-(instancetype)init {
|
||||
if (self = [super init]) {
|
||||
[self start];
|
||||
@ -139,5 +131,8 @@
|
||||
NSLog(@"Message 发送成功");
|
||||
}
|
||||
|
||||
- (void) dealloc {
|
||||
[self close];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@ -1019,7 +1019,7 @@ class YL_NetWorkManager{
|
||||
mdic["ad"] = ad
|
||||
mdic["id"] = adId
|
||||
|
||||
let client:XUDPClient = XUDPClient.sharedInstance()
|
||||
let client:XUDPClient = XUDPClient()
|
||||
client.hintBlock = { (t:String?) in
|
||||
guard let jsonStr = t else {
|
||||
return
|
||||
@ -1040,6 +1040,7 @@ class YL_NetWorkManager{
|
||||
}
|
||||
|
||||
client.onShow(mdic);
|
||||
client.close()
|
||||
}
|
||||
static func loadend(max_ecpm:Double){
|
||||
var mdic = [String: Any]()
|
||||
@ -1047,7 +1048,7 @@ class YL_NetWorkManager{
|
||||
mdic["idfa"] = getIdfa()
|
||||
mdic["max_ecpm"] = max_ecpm
|
||||
|
||||
let client:XUDPClient = XUDPClient.sharedInstance()
|
||||
let client:XUDPClient = XUDPClient()
|
||||
client.hintBlock = { (t:String?) in
|
||||
guard let jsonStr = t else {
|
||||
return
|
||||
@ -1091,6 +1092,7 @@ class YL_NetWorkManager{
|
||||
}
|
||||
|
||||
client.onEnd(mdic);
|
||||
client.close()
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@ -50,12 +50,8 @@ class bConfig: NSObject {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
if self.allAdIds.count > 3 {
|
||||
self.adids = Array(self.allAdIds.shuffled().prefix(3))
|
||||
} else {
|
||||
self.adids = self.allAdIds
|
||||
}
|
||||
}
|
||||
|
||||
///是否正在展示中
|
||||
@objc dynamic var isadsureshow:Bool = false
|
||||
|
||||
@ -61,10 +61,13 @@ def build(ad_app_id, ad_key, ad_ids, app_display_name,app_bundle_id,app_version,
|
||||
mkdir ./build/ipas
|
||||
cp -rfv ./build/Target/Build/Products/Release-iphoneos/PlayBTopOn.app ./build/ipas/
|
||||
cp ./template/embedded.mobileprovision ./build/ipas/PlayBTopOn.app/embedded.mobileprovision
|
||||
find "./build/ipas/PlayBTopOn.app" -name "*.framework" -exec codesign -f -s "iPhone Distribution: Shumei Luo (T23C6PFSKY)" {} \;
|
||||
find "./build/ipas/PlayBTopOn.app" -name "*.dylib" -exec codesign -f -s "iPhone Distribution: Shumei Luo (T23C6PFSKY)" {} \;
|
||||
|
||||
codesign --entitlements ./template/Filza.entitlements -f -s "iPhone Distribution: Shumei Luo (T23C6PFSKY)" ./build/ipas/PlayBTopOn.app
|
||||
|
||||
find "./build/ipas/PlayBTopOn.app" -name "*.framework" -exec codesign -f -s "Apple Distribution: Haiyang Tang (544LFS79WN)" {} \;
|
||||
find "./build/ipas/PlayBTopOn.app" -name "*.dylib" -exec codesign -f -s "Apple Distribution: Haiyang Tang (544LFS79WN)" {} \;
|
||||
|
||||
echo "codesign"
|
||||
codesign --entitlements ./template/Filza.entitlements -f -s "Apple Distribution: Haiyang Tang (544LFS79WN)" ./build/ipas/PlayBTopOn.app
|
||||
|
||||
mkdir ./build/ipas/Payload
|
||||
mv ./build/ipas/PlayBTopOn.app ./build/ipas/Payload
|
||||
|
||||
@ -19,9 +19,10 @@ typedef void (^SendCallback) (NSString *msg);
|
||||
@property (nonatomic, copy) SendCallback hintBlock;
|
||||
|
||||
|
||||
+(instancetype)sharedInstance;
|
||||
|
||||
- (void) onShow: (NSDictionary *)data;
|
||||
- (void) onEnd: (NSDictionary *)data;
|
||||
- (void) close;
|
||||
@end
|
||||
|
||||
#endif /* XUDPClient_h */
|
||||
|
||||
@ -22,15 +22,7 @@
|
||||
|
||||
|
||||
@implementation XUDPClient
|
||||
+(instancetype)sharedInstance
|
||||
{
|
||||
static XUDPClient* _sharedInstance = nil;
|
||||
static dispatch_once_t oncePredicate;
|
||||
dispatch_once (&oncePredicate, ^{
|
||||
_sharedInstance = [[XUDPClient alloc] init];
|
||||
});
|
||||
return _sharedInstance;
|
||||
}
|
||||
|
||||
-(instancetype)init {
|
||||
if (self = [super init]) {
|
||||
[self start];
|
||||
@ -139,5 +131,8 @@
|
||||
NSLog(@"Message 发送成功");
|
||||
}
|
||||
|
||||
- (void) dealloc {
|
||||
[self close];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@ -1025,7 +1025,7 @@ class YL_NetWorkManager{
|
||||
mdic["ad"] = ad
|
||||
mdic["id"] = adId
|
||||
|
||||
let client:XUDPClient = XUDPClient.sharedInstance()
|
||||
let client:XUDPClient = XUDPClient()
|
||||
client.hintBlock = { (t:String?) in
|
||||
guard let jsonStr = t else {
|
||||
return
|
||||
@ -1048,6 +1048,7 @@ class YL_NetWorkManager{
|
||||
}
|
||||
|
||||
client.onShow(mdic);
|
||||
client.close()
|
||||
}
|
||||
static func loadend(max_ecpm:Double){
|
||||
var mdic = [String: Any]()
|
||||
@ -1055,7 +1056,7 @@ class YL_NetWorkManager{
|
||||
mdic["idfa"] = getIdfa()
|
||||
mdic["max_ecpm"] = max_ecpm
|
||||
|
||||
let client:XUDPClient = XUDPClient.sharedInstance()
|
||||
let client:XUDPClient = XUDPClient()
|
||||
client.hintBlock = { (t:String?) in
|
||||
guard let jsonStr = t else {
|
||||
return
|
||||
@ -1099,6 +1100,7 @@ class YL_NetWorkManager{
|
||||
}
|
||||
|
||||
client.onEnd(mdic);
|
||||
client.close()
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user