2025-10-22

This commit is contained in:
xsean 2025-10-22 10:34:40 +08:00
parent ff5e105937
commit c60341a350
11 changed files with 32 additions and 36 deletions

View File

@ -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):

1
ips.txt Normal file
View File

@ -0,0 +1 @@
192.168.31.254

View File

@ -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"]

View File

@ -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 */

View File

@ -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

View File

@ -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()
}
/*

View File

@ -50,11 +50,7 @@ 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
}
self.adids = self.allAdIds
}
///

View File

@ -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

View File

@ -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 */

View File

@ -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

View File

@ -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()
}
/*